An AI large model-based rejection reason automatic analysis method

By semantically mapping and classifying risk control rejection codes, and combining compliance rewriting with a large language model, accurate explanations of loan approval rejection reasons are generated. This solves the problems of inaccurate explanations and low maintenance efficiency in existing technologies, and achieves automated, accurate, and controllable explanations of rejection reasons.

CN123160253APending Publication Date: 2026-11-24ZHONGKE JUXIN INFORMATION TECH BEIJING CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611178636.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-05
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

In existing loan approval systems, the interpretation of risk control rejection codes relies on static rules and manual maintenance, which makes it difficult to adapt to the differences in expression under different rejection scenarios, resulting in inaccurate and non-compliant interpretations and low maintenance efficiency.

Method used

By obtaining the risk control rejection code, performing format verification and semantic mapping, generating standardized rejection semantic descriptions, and classifying them using a scenario classification model, combining the script templates and large language models for compliance rewriting, generating accurate and compliant explanatory scripts, and updating the script template library by comparing semantic similarity.

Benefits of technology

It enables automated, accurate, and controllable interpretation of risk control rejection reasons, improves the accuracy of rejection reason analysis and the consistency of speech generation, reduces the risk of reason drift and non-compliant expression, and improves maintenance efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123160253A_ABST
    Figure CN123160253A_ABST
Patent Text Reader

Abstract

This invention relates to the field of artificial intelligence financial risk control technology, specifically to an automatic analysis method for rejection reasons based on an AI large-scale model, comprising the following steps: S1: Obtain the risk control rejection code corresponding to the loan application rejection and obtain the corresponding standardized rejection semantic description; S2: Classify the scenarios and output the corresponding rejection scenario tags; S3: Generate initial explanation statements; S4: Rewrite for compliance and output compliant explanation statements; S5: Perform semantic similarity comparison and output the final explanation statements. This invention, through progressive processing of rejection code semantic conversion, rejection scenario classification, template slot generation, anchor constraint rewriting, and similarity update judgment, enables accurate, compliant, and controllable generation of explanation statements for loan rejection reasons, and improves the continuous maintenance capability of the statement template library.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of artificial intelligence financial risk control technology, and in particular to an automatic analysis method for rejection reasons based on a large AI model. Background Technology

[0002] With the development of internet finance, consumer credit, and online lending, the loan approval process increasingly relies on risk control rule engines, scoring card models, machine learning models, and multi-dimensional data verification mechanisms. When a loan application is rejected, the system typically generates a corresponding risk control rejection code to identify the main reason for the failure. However, these risk control rejection codes are usually coded fields designed for internal systems, and their expression is relatively abstract, making them unsuitable for direct explanation to applicants. To improve the understandability of rejection reason feedback, existing systems often convert rejection codes into corresponding rejection explanations through manual configuration of fixed phrases, rule mapping, or simple template filling. However, these methods rely heavily on static rules and manual maintenance, making it difficult to adapt to the differences in expression under different rejection scenarios, and also struggling to ensure the accuracy, compliance, and naturalness of the explanation.

[0003] Existing methods for explaining rejection reasons suffer from the following problems: First, templated statements can only be filled in with fixed information, making it difficult to categorize and differentiate them according to the specific rejection scenario. Second, when using large language models to rewrite statements, the lack of anchoring constraints for rejection reasons can lead to reason drift, scenario shift, reason expansion, or promise-based expressions, causing the explanation to deviate from the actual risk control rejection reasons. Third, the lack of an effective similarity comparison and update mechanism between historical and newly generated statements easily results in duplicate, redundant, or inefficiently maintained statement template libraries. Therefore, it is necessary to provide an automated rejection reason analysis method based on AI large models to automate, accurately, and controllably generate rejection reasons from internal risk control code to compliant explanation statements. Summary of the Invention

[0004] To achieve the above objectives, this invention provides an automatic rejection reason analysis method based on a large AI model.

[0005] An automated method for analyzing rejection reasons based on a large AI model includes the following steps: S1: Obtain the risk control rejection code corresponding to the loan application being rejected, and match the risk control rejection code with the pre-configured rejection code-semantic mapping table to obtain the standardized rejection semantic description corresponding to the risk control rejection code; S2: Input the standardized rejection semantic description obtained in S1 into the preset scene classification model to classify the scene and output the corresponding rejection scene label; S3: Based on the rejection scenario label output by S2, retrieve the basic dialogue template that matches the rejection scenario label from the dialogue template library, and fill the rejection reason semantic slot of the basic dialogue template with the standardized rejection semantic description obtained in S1 to generate the initial explanation dialogue. S4: Based on the standardized rejection semantic description obtained in S1 and the rejection scenario label output in S2, generate rejection reason anchoring information, and input the rejection reason anchoring information and the initial explanation statement generated in S3 into the large language model that has been fine-tuned by compliant corpus. Under the constraint of the rejection reason anchoring information, the initial explanation statement is rewritten for compliance and the compliant explanation statement is output. S5: Compare the semantic similarity of the compliance explanation script output by S4 with the historical compliance explanation scripts under the same rejection scenario label. Based on the semantic similarity comparison results, update the script template library and output the final explanation script.

[0006] Optionally, S1 specifically includes: S11: Obtain the risk control rejection code generated when the loan application is rejected, and perform format validation on the risk control rejection code, remove empty value codes, abnormal character codes and incomplete temporary codes to obtain a valid risk control rejection code; S12: Using the valid risk control rejection code as the matching index, perform field matching in the pre-configured rejection code-semantic mapping table. The rejection code-semantic mapping table includes the risk control rejection code field, the standardized rejection semantic description field, and the candidate rejection scenario field. S13: When a valid risk control rejection code matches the risk control rejection code field in the rejection code-semantic mapping table, read the standardized rejection semantic description field in the corresponding record to obtain the standardized rejection semantic description corresponding to the risk control rejection code.

[0007] Optionally, S2 specifically includes: S21: Perform word segmentation and stop word filtering on the standardized rejection semantic description to obtain a rejection semantic word sequence; S22: Input the rejection semantic word sequence into the text encoding layer for vectorization representation to obtain the rejection semantic feature vector; S23: Input the rejection semantic feature vector into the classification output layer of the scene classification model to obtain the classification probability corresponding to each preset rejection scene; S24: Determine the preset rejection scenario with the highest classification probability as the rejection scenario label corresponding to the standardized rejection semantic description, and output the classification confidence corresponding to the rejection scenario label.

[0008] Optionally, S3 specifically includes: S31: Store the basic dialogue templates in the dialogue template library according to the rejection scenario tags, so that each rejection scenario tag corresponds to at least one basic dialogue template. S32: Using the rejection scenario tags output by S2 as search criteria, search for the basic script templates under the corresponding category in the script template library; S33: When multiple basic script templates are found, they are filtered according to the template's activation status, template version number, and template usage priority to obtain the basic script template that matches the rejection scenario tag.

[0009] Optionally, S3 further includes: S34: Identify the semantic slots for reasons of refusal in the basic script template, wherein the basic script template includes scenario prompts, semantic slots for reasons of refusal, and compliance prompts; S35: Write the standardized rejection semantic description obtained in S1 into the rejection reason semantic slot, and retain the scenario guidance and compliance prompts in the basic script template; S36: According to the preset sentence arrangement order in the basic script template, the scenario introductory text, the filled rejection reason semantic slots and compliance prompts are spliced ​​together to generate the initial explanation script.

[0010] Optionally, generating the rejection reason anchoring information in S4 specifically includes: S41: Extract the rejection reason keywords from the standardized rejection semantic description obtained in S1 to obtain a set of rejection reason keywords; S42: Based on the rejection scenario label output by S2, determine the allowed interpretation range corresponding to the rejection scenario label; S43: Combine the risk control rejection code, standardized rejection semantic description, rejection scenario label, rejection reason keyword set, and allowed interpretation range to generate rejection reason anchoring information.

[0011] Optionally, the step of inputting the rejection reason anchoring information and the initial explanatory statement generated in S3 into the large language model fine-tuned by the compliant corpus in S4 includes: S44: Set the rejection reason anchor information as a constraint input and the initial explanation statement as an input to be rewritten; S45: Generate rewrite constraint prompts based on constraint inputs. The rewrite constraint prompts include constraints that the rejection reason cannot be replaced, the rejection reason cannot be expanded, and the rejection scenario cannot be shifted. S46: Input the rewriting constraint prompts and the input to be rewritten into the large language model that has been fine-tuned by the compliant corpus, so that the large language model can rewrite the initial explanatory statement in compliance while maintaining the consistency of the rejection reasons.

[0012] Optionally, in step S4, under the constraint of the rejection reason anchoring information, the initial explanatory statement is rewritten for compliance, and the output compliant explanatory statement includes: S47: Identify absolute statements, promises, ambiguous statements, and extended statements that go beyond the scope of the reasons for refusal in the initial explanation script; S48: Based on the rejection reason anchoring information, replace the identified absolute statements, commitment statements, ambiguous statements and extended statements with neutral explanatory expressions; S49: Adjust the fluency of the replaced explanatory text and complete the compliance prompts to obtain a compliant explanatory text.

[0013] Optionally, the semantic similarity comparison in S5 includes: S51: Retrieve historical compliance explanation scripts from the script template library that are identical to the rejection scenario tags output by S2; S52: Semantically vectorize the compliance explanation script output by S4 and the historical compliance explanation script respectively to obtain the semantic vector of the current script and the semantic vector of the historical script. S53: Calculate the cosine similarity between the semantic vector of the current discourse and the semantic vector of the historical discourse to obtain the semantic similarity.

[0014] Optionally, the final explanatory statement output in S5 includes: S54: Compare the semantic similarity with the preset similarity threshold; S55: When the semantic similarity is lower than the preset similarity threshold, the compliant explanation statement output by S4 is written as a candidate update statement into the statement template library under the corresponding rejection scenario label, and the compliant explanation statement output by S4 is output as the final explanation statement. S56: When the semantic similarity is not lower than the preset similarity threshold, keep the script template library under the corresponding rejection scenario label unchanged, and use the compliant explanation script output by S4 as the final explanation script output.

[0015] The beneficial effects of this invention are: This invention transforms the risk control rejection code generated when a loan application is rejected into a standardized rejection semantic description, and then categorizes the rejection scenarios and matches them with script templates. This allows the originally internalized and coded rejection reasons to be transformed into a structured and understandable explanatory basis. As a result, the subsequently generated explanatory scripts no longer rely on manual configuration line by line, nor do they directly use difficult-to-understand internal risk control codes. Instead, they can form initial explanatory content with clear scenario orientation around the real rejection reasons, improving the accuracy of rejection reason analysis and the consistency of script generation.

[0016] This invention constrains the rewriting process of a large language model by anchoring rejection reasons, ensuring that the rejection reasons are not replaced, the rejection scenarios are not shifted, and the scope of explanation is not expanded during compliance rewriting. This reduces the risk of cause drift and non-compliant expressions caused by free generation. Simultaneously, by comparing the semantic similarity of compliant explanations with historical compliant explanations and updating the expression template library based on the comparison results, the invention avoids redundant accumulation of templates, allowing the expression template library to continuously absorb compliant expressions with differentiated value, thus improving the controllability, maintainability, and adaptability of rejection reason explanations. Attached Figure Description

[0017] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only for this invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0018] Figure 1 This is a schematic diagram of the automatic rejection reason analysis method according to an embodiment of the present invention; Figure 2 This is a schematic diagram of the scenario classification process in an embodiment of the present invention. Detailed Implementation

[0019] The present invention will now be described in detail with reference to the accompanying drawings and specific embodiments. It should also be noted that, to make the embodiments more comprehensive, the following embodiments are the best and preferred embodiments, and those skilled in the art can use other alternative methods to implement some well-known technologies; moreover, the accompanying drawings are only for more specific description of the embodiments and are not intended to specifically limit the present invention.

[0020] It should be noted that the use of terms such as "an embodiment," "an embodiment," "an exemplary embodiment," and "some embodiments" in the specification indicates that the described embodiment may include a specific feature, structure, or characteristic, but not every embodiment necessarily includes that specific feature, structure, or characteristic. Furthermore, when a specific feature, structure, or characteristic is described in connection with an embodiment, implementing such a feature, structure, or characteristic in conjunction with other embodiments (whether explicitly described or not) should be within the knowledge of those skilled in the art.

[0021] Generally, terms can be understood at least partly from their use in context. For example, depending at least partly on the context, the term "one or more" as used herein can be used to describe any feature, structure, or characteristic in a singular sense, or a combination of features, structures, or characteristics in a plural sense. Additionally, the term "based on" can be understood not necessarily to convey an exclusive set of factors, but rather, alternatively, depending at least partly on the context, to allow for the presence of other factors that are not necessarily explicitly described.

[0022] like Figures 1-2 As shown, an automatic rejection reason analysis method based on an AI large model includes the following steps: S1: Obtain the risk control rejection code corresponding to the loan application being rejected, and match the risk control rejection code with the pre-configured rejection code-semantic mapping table to obtain the standardized rejection semantic description corresponding to the risk control rejection code; S1 specifically includes: S11: Obtain the risk control rejection code generated when the loan application is rejected, and perform format validation on the risk control rejection code, remove empty value codes, abnormal character codes and incomplete temporary codes to obtain a valid risk control rejection code; S12: Using the valid risk control rejection code as the matching index, perform field matching in the pre-configured rejection code-semantic mapping table. The rejection code-semantic mapping table includes the risk control rejection code field, the standardized rejection semantic description field, and the candidate rejection scenario field. S13: When a valid risk control rejection code matches the risk control rejection code field in the rejection code-semantic mapping table, read the standardized rejection semantic description field in the corresponding record to obtain the standardized rejection semantic description corresponding to the risk control rejection code.

[0023] Specifically, in step S11, the risk control rejection code output by the risk control system when a loan application is rejected is obtained, and the format of the risk control rejection code is validated. Format validation includes null value validation, character validity validation, length validation, and temporary code status validation. Null value validation determines whether the risk control rejection code is empty or contains only invalid placeholders; character validity validation determines whether the risk control rejection code contains only letters, numbers, underscores, or connectors within a preset character range; length validation determines whether the character length of the risk control rejection code is within a preset length range, which can be set to 4-64 characters; temporary code status validation determines whether the risk control rejection code is a temporary code generated by the risk control system during the approval process but not yet confirmed. Through the above validations, null value codes, abnormal character codes, and incompletely generated temporary codes are removed, resulting in a valid risk control rejection code.

[0024] In S12, the valid risk control rejection code obtained in S11 is used as the matching index to perform field matching in the pre-configured rejection code-semantic mapping table. The rejection code-semantic mapping table includes at least a risk control rejection code field, a standardized rejection semantic description field, and a candidate rejection scenario field. Specifically, the risk control rejection code field stores the internal code corresponding to each risk control rejection reason; the standardized rejection semantic description field stores the unified natural language description corresponding to the risk control rejection code; and the candidate rejection scenario field records the rejection scenario category to which the standardized rejection semantic description may belong.

[0025] Table 1. Examples of Rejection Code-Semantic Mapping Representations: In Table 1 above, the risk control rejection code field stores rejection codes output internally by the risk control system; the standardized rejection semantic description field converts internal codes into unified and understandable rejection reason text; the candidate rejection scenario field provides a basic reference for scenario classification in subsequent S2; and the code status determines whether the code is a usable official code, preventing temporary or obsolete codes from entering subsequent processing. During the matching process, valid risk control rejection codes can be precisely matched against the risk control rejection code field in the rejection code-semantic mapping table. When a valid risk control rejection code matches a certain risk control rejection code field in the table, that record is determined to be a hit record. This matching method avoids mismatches between different rejection codes due to character similarity, thus ensuring the accuracy of the rejection reason conversion results.

[0026] Here's an example: Suppose a user submits a loan application, and the initial rejection code output by the risk control system is RC_DEBT_003.

[0027] First, the format of the rejection code is validated in S11. Since RC_DEBT_003 is not empty, the characters consist of letters, underscores and numbers, the length is within the preset length range, and it is not a temporary code, the code is determined to be a valid risk control rejection code.

[0028] Then, in S12, using RC_DEBT_003 as the matching index, a search is performed in the pre-configured rejection code-semantic mapping table. The system finds the corresponding record in row 3 of the table, where the risk control rejection code field is RC_DEBT_003.

[0029] Finally, in S13, the standardized rejection semantic description field in the hit record is read, and the corresponding standardized rejection semantic description is obtained as a high current debt level and a large overall debt repayment pressure. Simultaneously, the candidate rejection scenario field in this record indicates a high debt level scenario, which serves as reference information for scenario classification in subsequent S2. Through the above steps, this implementation method does not directly input the risk control rejection code into a large language model to generate an explanation. Instead, it first performs validity verification and semantic mapping on the risk control rejection code, converting the internalized and encoded rejection reasons into a unified, stable, and model-recognizable standardized rejection semantic description.

[0030] S2: Input the standardized rejection semantic description obtained in S1 into the preset scene classification model to classify the scene and output the corresponding rejection scene label; In S2, to further categorize the standardized rejection semantic description obtained in S1 into specific rejection scenario categories, this implementation inputs the standardized rejection semantic description into a preset scenario classification model for scenario classification. Since the standardized rejection semantic description has already been converted from the risk control rejection code in S1, its text content can reflect the main reasons for loan application rejection. However, this text still belongs to the information at the reason description level and cannot be directly used for subsequent script template retrieval. Therefore, it needs to be converted into a unified rejection scenario label through the scenario classification model, so that S3 can retrieve the corresponding basic script template from the script template library according to the rejection scenario label. Specifically, the standardized rejection semantic description is processed by word segmentation and stop word filtering to obtain a rejection semantic word sequence. Word segmentation is used to split the continuous standardized rejection semantic description into multiple semantically meaningful terms; stop word filtering is used to remove general words, conjunctions, and modal words that contribute little to the identification of rejection reasons, thereby retaining the core terms that can represent the rejection reasons. Let the standardized rejection semantic description be a text sequence D, and the rejection semantic word sequence obtained after word segmentation and stop word filtering is represented as follows: ,in, Indicates rejection of the semantic word sequence. Indicates the first A rejection semantic word, This indicates the number of terms in the rejection semantic word sequence. This processing can reduce the interference of irrelevant terms on the subsequent scene classification results, allowing the scene classification model to focus more on terms that are directly related to the reason for rejection, such as overdue payments, debts, income, missing information, and identity verification.

[0031] Then, the sequence of rejection semantic words is input into the text encoding layer for vectorization representation to obtain the rejection semantic feature vector; specifically, the text encoding layer first converts each rejection semantic word into a vector. Mapped to the corresponding word vectors It is represented as: ,in, This represents the preset word vector mapping function. Indicates the first Each rejection semantic word corresponds to a word vector. Subsequently, the text encoding layer performs semantic fusion on these word vectors to obtain the rejection semantic feature vector corresponding to the standardized rejection semantic description. In one implementation, a weighted fusion method can be used to obtain the rejection semantic feature vector: ,in, This indicates a rejection semantic feature vector. Indicates the first The semantic weights corresponding to each rejection semantic word, satisfying the following: Semantic weight This is used to represent the importance of different rejection semantic words in scene classification. Words that clearly characterize the reason for rejection have higher semantic weights; auxiliary words have lower semantic weights. In this way, the rejection semantic feature vector can be optimized. To more accurately express the core reasons for rejection in the standardized rejection semantic description.

[0032] Next, the rejection semantic feature vector will be... The classification output layer of the input scene classification model is used to obtain the classification probability corresponding to each preset rejection scene. Let the number of preset rejection scenes be . , No. The classification scores corresponding to the preset rejection scenarios are: The classification score can then be expressed as: ,in, Indicates the first Classification scores for each preset rejection scenario. Indicates the first The classification weights corresponding to the preset rejection scenarios Indicates the first The bias term corresponding to each preset rejection scenario. This indicates a rejection semantic feature vector.

[0033] Finally, the preset rejection scenario with the highest classification probability is determined as the rejection scenario label corresponding to the standardized rejection semantic description, and the classification confidence score corresponding to this rejection scenario label is output. Specifically, this can be represented as: ; ,in, This indicates the rejection scenario label in the final output. Indicates the first The classification probability corresponding to each preset rejection scenario This represents the classification confidence score corresponding to the rejection scenario label. In other words, when the classification probability corresponding to a certain rejection scenario is the highest, that rejection scenario is taken as the classification result of the current standardized rejection semantic description, and this highest classification probability is output as the classification confidence score. Through this process, the standardized rejection semantic description can be transformed from a natural language reason description into a structured rejection scenario label, avoiding the misselection problem caused by subsequent script template retrieval relying solely on keyword matching. Simultaneously, by outputting the classification confidence score, a reliable basis can be provided for subsequent template retrieval, rejection reason anchoring information generation, and compliance explanation script generation, giving the entire automatic rejection reason analysis process a more stable semantic classification foundation.

[0034] S3: Based on the rejection scenario label output by S2, retrieve the basic dialogue template that matches the rejection scenario label from the dialogue template library, and fill the rejection reason semantic slot of the basic dialogue template with the standardized rejection semantic description obtained by S1 to generate the initial explanation dialogue. S3 specifically includes: S31: Store the basic dialogue templates in the dialogue template library according to the rejection scenario tags, so that each rejection scenario tag corresponds to at least one basic dialogue template. S32: Using the rejection scenario tags output by S2 as search criteria, search for the basic script templates under the corresponding category in the script template library; S33: When multiple basic script templates are found, they are filtered according to the template's activation status, template version number, and template usage priority to obtain the basic script template that matches the rejection scenario tag.

[0035] In step S3, to ensure that the generated initial explanation script matches the rejection scenario, this implementation retrieves the corresponding basic explanation template from the script template library based on the rejection scenario tags output in S2. This step converts the structured rejection scenario tags obtained in S2 into a templated expression framework that can be used to generate the explanation script. This allows subsequent steps to simply fill the corresponding semantic slots with the standardized rejection semantic descriptions obtained in S1 to form a scenario-specific initial explanation script. For loan rejection explanation scenarios, the explanation content should correspond as closely as possible to the actual reasons for rejection, avoiding inaccurate reason expression due to the use of only general templates. Specifically, the basic explanation templates in the script template library are categorized and stored according to rejection scenario tags, ensuring that each rejection scenario tag corresponds to at least one basic explanation template. Rejection scenario tags include scenarios with abnormal credit records, insufficient repayment ability, high debt levels, insufficient document completeness, abnormal identity verification, insufficient cash flow, and insufficient comprehensive score. The basic explanation template is a pre-configured, fillable text structure that does not directly represent the final explanation result but rather serves as an expression framework to carry the semantic content of the rejection reason.

[0036] Specifically, each basic script template can include a template identifier, a rejection scenario tag, a scenario introductory phrase, a rejection reason semantic slot, a compliance prompt, template activation status, template version number, and template usage priority. The template identifier distinguishes different templates; the rejection scenario tag determines the template's category; the scenario introductory phrase forms the opening expression of the explanatory script; the rejection reason semantic slot receives the standardized rejection semantic description obtained from S1; the compliance prompt suggests that applicants can improve their subsequent application conditions by providing supplementary information, improving credit history, or optimizing repayment ability; the template activation status determines whether the template is available for use; the template version number distinguishes different iterations of the template within the same scenario; and the template usage priority is used to select the appropriate template when multiple templates simultaneously meet the search criteria. Then, using the rejection scenario tag output from S2 as the search criteria, the system searches the script template library for the basic script template under the corresponding category. In other words, the system does not directly perform full-text matching based on the standardized rejection semantic description, but first uses the rejection scenario tag obtained from S2 to limit the template scope, and then searches for basic script templates under the corresponding scenario category. This avoids incorrectly calling script templates from different scenarios. For example, when the rejection scenario tag output by S2 is "high debt level scenario," only the basic script template corresponding to this scenario tag is retrieved from the script template library, without calling the basic script templates for scenarios with insufficient data integrity or abnormal identity verification. When multiple basic script templates are found, they are filtered according to template activation status, template version number, and template usage priority to obtain the basic script template matching the rejection scenario tag. Specifically, templates with activation status of "disabled" or "pending review" are first removed, and only basic script templates with activation status are retained; then, among the activation basic script templates, the template with the newest version number is selected to ensure that the called script structure conforms to the current business rules and compliance expression requirements; when multiple basic script templates exist under the same version, they are sorted according to template usage priority, and the basic script template with the highest priority is selected as the template used to generate the initial explanation script.

[0037] The script template library should be configured as follows: Here's an example: If the rejection scenario label output by S2 is "high debt level scenario," then using this label as a search condition, the system retrieves two basic script templates from the script template library, identified as TPL_DEBT_01 and TPL_DEBT_02. It then checks if both templates are enabled, and compares their version numbers and usage priorities. Since TPL_DEBT_01 has version number V2.1 and a usage priority of 1, the system determines TPL_DEBT_01 as the basic script template matching the current rejection scenario label. This method ensures a stable correspondence between the script template retrieval process and the rejection scenario label, avoiding scenario shifts caused by directly generating explanation scripts freely from a large language model. Furthermore, by filtering based on template enablement status, version number, and usage priority, the system ensures that the called basic script templates are available, relatively new, and have a high priority, thereby improving the accuracy, stability, and controllability of the initial explanation script generation.

[0038] S3 also includes: S34: Identify the semantic slots for reasons of refusal in the basic script template. The basic script template includes scenario prompts, semantic slots for reasons of refusal, and compliance prompts. S35: Write the standardized rejection semantic description obtained in S1 into the rejection reason semantic slot, and retain the scenario guidance and compliance prompts in the basic script template; S36: According to the preset sentence arrangement order in the basic script template, the scenario introductory text, the filled rejection reason semantic slots and compliance prompts are spliced ​​together to generate the initial explanation script.

[0039] After retrieving the basic script template based on the rejection scenario tags, this implementation further fills the rejection reason semantic slot in the basic script template with the standardized rejection semantic description obtained in S1 to generate the initial explanation script. The purpose is to ensure that the explanation script can both utilize the pre-configured compliance expression framework and accurately convey the specific reasons for the loan application rejection, avoiding overly general rejection reason expressions due to the direct use of a fixed template. Specifically, in S34, the scenario introduction is used to explain to the applicant that the application failed after comprehensive evaluation; the rejection reason semantic slot is used to receive the standardized rejection semantic description obtained in S1; and the compliance reminder is used to provide neutral guidance to the applicant on subsequent document improvement, credit status enhancement, or debt optimization without making an approval commitment. The rejection reason semantic slot can be identified using fixed placeholders, such as {rejection reason}, {standardized rejection semantic description}, or other preset slot markers. Subsequently, the standardized rejection semantic description obtained in S1 is written into the rejection reason semantic slot, while retaining the scenario introduction and compliance reminder from the basic script template. In other words, this implementation method does not directly output the standardized rejection semantic description as a complete explanatory statement, but rather embeds it as the core rejection reason content into the basic statement template. This ensures that the rejection reason corresponds to the risk control rejection code, and also gives the output statement good expressive completeness and compliance controllability. For example, if the standardized rejection semantic description obtained in S1 is that the current debt level is high and the overall debt repayment pressure is large, the rejection scenario tag output in S2 is a high debt level scenario, and the basic statement template retrieved in S3 is: "After comprehensive evaluation, this application has not been approved for the time being, mainly because: {Rejection Reason}. It is recommended that you reasonably arrange your debt and reapply based on your own situation." Then in S35, "current debt level is high and overall debt repayment pressure is large" is filled into the rejection reason semantic slot "{Rejection Reason}". In S36, according to the preset sentence arrangement in the basic statement template, the scenario guidance, the filled rejection reason semantic slot, and the compliance prompt are concatenated to generate the initial explanatory statement. Taking the above example, the generated initial explanation script could be: "After comprehensive evaluation, this application has not been approved at this time. The main reason is: the current debt level is high, and the overall debt repayment pressure is significant. We suggest you reasonably arrange your debt and reapply." Here, "After comprehensive evaluation, this application has not been approved at this time" is the scenario introduction, "the current debt level is high, and the overall debt repayment pressure is significant" is the filled-in semantic content of the rejection reason, and "we suggest you reasonably arrange your debt and reapply" is the compliance prompt. By splicing the script according to the preset template order, the structure of the initial explanation script can be ensured to be stable, avoiding confusion in the script structure under different rejection scenarios. Through this method, standardized rejection semantic descriptions, basic script templates, and rejection reason semantic slots can be linked, giving the initial explanation script both a clear source of rejection reason and a unified templated expression structure.This initial explanatory statement serves as input for the subsequent compliance rewriting of the large language model in S4. It can reduce the problems of causal bias, generalization of expression, or incomplete explanation that may occur when the large language model is freely generated, thereby improving the accuracy and stability of the subsequent compliance explanatory statement generation.

[0040] S4: Based on the standardized rejection semantic description obtained in S1 and the rejection scenario label output in S2, generate rejection reason anchoring information, and input the rejection reason anchoring information and the initial explanation statement generated in S3 into the large language model that has been fine-tuned by compliant corpus. Under the constraint of the rejection reason anchoring information, the initial explanation statement is rewritten for compliance and the compliant explanation statement is output. The specific details of generating rejection reason anchoring information in S4 include: S41: Extract the rejection reason keywords from the standardized rejection semantic description obtained in S1 to obtain a set of rejection reason keywords; S42: Based on the rejection scenario label output by S2, determine the allowed interpretation range corresponding to the rejection scenario label; S43: Combine the risk control rejection code, standardized rejection semantic description, rejection scenario label, rejection reason keyword set, and allowed interpretation range to generate rejection reason anchoring information.

[0041] Specifically, in S41, rejection reason keywords refer to core terms that characterize the main reasons for loan application rejection, including risk factor terms, status description terms, and degree description terms. For example, if the standardized rejection semantic description is "current debt level is high, overall debt repayment pressure is high," then rejection reason keywords such as "debt level," "high," "debt repayment pressure," and "high" can be extracted to form a rejection reason keyword set. By extracting rejection reason keywords, the subsequently generated rejection reason anchoring information can not only retain the complete standardized rejection semantic description but also further highlight the most critical reason elements. In the specific extraction process, the standardized rejection semantic description is first segmented to obtain several candidate terms; then, the candidate terms are matched against a preset rejection reason keyword library to filter out candidate terms related to the rejection reason; subsequently, conjunctions, modal words, and general descriptive words are removed, retaining terms that directly reflect the rejection reason, resulting in a rejection reason keyword set. The preset rejection reason keyword library can include terms related to credit history, debt level, income stability, data completeness, identity verification, account transaction history, and comprehensive scoring. This avoids mistaking irrelevant words as rejection reason keywords, thus improving the accuracy of subsequent anchoring information.

[0042] In S42, the allowed scope of interpretation refers to the boundaries of the rejection reasons that the large language model is allowed to express when rewriting compliance information under the current rejection scenario label. Its function is to restrict the large language model to rewriting only within the semantic scope corresponding to the current rejection scenario label, and to prevent it from generating other rejection reasons across scenarios. For example, when the rejection scenario label is a high debt level scenario, the allowed scope of interpretation can be limited to expressions related to debt level, debt repayment pressure, overall debt situation, repayment burden, etc.; the large language model cannot expand to generate rejection reasons that do not belong to the current scenario, such as overdue credit records, failed identity verification, or missing application materials. Furthermore, the allowed scope of interpretation can be determined according to a preset rejection scenario label-interpretation scope configuration table. This configuration table includes rejection scenario labels, allowed interpretation keywords, prohibited expansion keywords, and allowed prompt directions. Among them, the rejection scenario label is used to determine the scenario to which the current rejection reason belongs; allowed interpretation keywords are used to limit the range of reasons that can be retained or rewritten by the large language model in a near-synonymous manner; prohibited expansion keywords are used to limit the large language model from generating rejection reasons under other scenarios; and allowed prompt directions are used to limit the expression boundaries of subsequent compliance prompts. In this way, abstract rejection scenario labels can be transformed into rewrite boundaries that can be recognized and executed by large language models.

[0043] In S43, the risk control rejection code identifies the source of the rejection reason; the standardized rejection semantic description provides the complete rejection reason text; the rejection scenario tag limits the business scenario to which the current rejection reason belongs; the rejection reason keyword set highlights the core rejection factors; and the allowed interpretation scope limits the rewriteable boundaries of the large language model. All of the above information constitutes the rejection reason anchoring information, enabling the large language model to be constrained simultaneously by the source of the reason, the content of the reason, the scenario category, the keyword elements, and the interpretation boundaries during subsequent compliance rewriting. An example is given below: If the risk control rejection code is RC_DEBT_003, and the standardized rejection semantic description obtained in S1 is "current debt level is high, overall debt repayment pressure is high," and the rejection scenario label output by S2 is "high debt level scenario," then S41 can extract the keyword set of rejection reasons as "debt level," "high," "debt repayment pressure," and "high." S42, based on the "high debt level scenario," determines the permissible explanation scope to revolve around debt level, debt repayment pressure, and repayment burden, and prohibits the introduction of other rejection reasons such as credit delinquency, missing information, or identity verification anomalies. S43 then combines the above information to generate rejection reason anchoring information. When the large language model subsequently rewrites for compliance, it can only rewrite the initial explanation into a more natural and neutral expression, without changing the core rejection reason of "high debt level." Through this method, rejection reason anchoring information can be added before the large language model is rewritten, making the generation process of the large language model no longer a completely open text generation, but a constrained rewriting under the joint limitations of the standardized rejection semantic description and the rejection scenario label. This effectively reduces the risk of inconsistencies between the content generated by the large language model and the actual reasons for rejection, avoiding issues such as reason drift, scenario shift, or over-expansion, thereby improving the accuracy, stability, and controllability of compliance explanations.

[0044] In S4, the rejection reason anchoring information and the initial explanatory statements generated in S3 are jointly input into the large language model that has been fine-tuned with compliant corpus, including: S44: Set the rejection reason anchor information as a constraint input and the initial explanation statement as an input to be rewritten; S45: Generate rewrite constraint hints based on constraint inputs. The rewrite constraint hints include constraints that the rejection reason cannot be replaced, the rejection reason cannot be expanded, and the rejection scenario cannot be shifted. S46: Input the rewriting constraint prompts and the input to be rewritten into the large language model that has been fine-tuned by the compliant corpus, so that the large language model can rewrite the initial explanatory statement in compliance while maintaining the consistency of the rejection reasons.

[0045] After generating the rejection reason anchoring information, this implementation further inputs the rejection reason anchoring information and the initial explanation script generated in S3 into the large language model fine-tuned by the compliant corpus. The core of this step is that instead of directly handing the initial explanation script over to the large language model for free rewriting, the rejection reason anchoring information is first transformed into a constraint input that the large language model can recognize, and then combined with the initial explanation script to form a controlled rewriting input, so that the large language model maintains consistency in rejection reasons, rejection scenarios, and explanation boundaries during the compliant rewriting process. Specifically, in S44, the rejection reason anchoring information is set as the constraint input, and the initial explanation script is set as the input to be rewritten; the rejection reason anchoring information can be denoted as: ,in, The anchor information indicates the reason for rejection. This indicates a risk control rejection code. This indicates a rejection of the semantic description by standardization. Indicates rejection of scene tags. This is a set of keywords indicating reasons for rejection. This indicates the permissible scope of interpretation. The initial interpretation script is denoted as: ,in, This indicates the initial explanation of the script. Indicates scene introduction, This represents the semantic content of the rejection reason after padding. This indicates a compliance prompt. Through the above settings, the anchor information for the rejection reason can be used as the basis for rewriting constraints of the large language model, while the initial explanatory statement can be used as the actual text object that needs to be rewritten, thus creating a clear distinction between the two at the input level.

[0046] In S45, the rewrite constraint hint is generated based on the standardized rejection semantic description, rejection scenario label, rejection reason keyword set, and allowed interpretation range in the rejection reason anchoring information. This includes constraints that the rejection reason cannot be replaced, the rejection reason cannot be expanded, and the rejection scenario cannot be shifted. Specifically, "the rejection reason cannot be replaced" means the large language model cannot replace the actual rejection reason corresponding to the standardized rejection semantic description with another rejection reason; "the rejection reason cannot be expanded" means the large language model cannot add a rejection reason not pointed to by the risk control rejection code or the standardized rejection semantic description during the rewrite process; and "the rejection scenario cannot be shifted" means the compliance explanation generated by the large language model must still belong to the same rejection scenario label output by S2 and cannot jump from the current rejection scenario to other rejection scenarios. In one implementation, the rewrite constraint hint can be expressed as: ,in, This indicates a constraint overwrite hint. Indicates the constraint hint generation function, The anchor information indicates the reason for rejection. This represents a set of constraints. A set of constraints can be represented as: ,in, The reason for refusal cannot be changed. The reason for refusal must not be expanded. The context must not be shifted to indicate rejection.

[0047] More specifically, if the standardized rejection semantic description in the rejection reason anchoring information is "current debt level is high, overall debt repayment pressure is high," the rejection scenario label is "high debt level scenario," and the rejection reason keyword set is "debt level," "high," "debt repayment pressure," and "high," then the generated rewriting constraint prompts include: the meaning of the reason corresponding to "high debt level" or "high debt repayment pressure" must be retained during rewriting, and no new rejection reasons such as credit delinquency, missing information, or abnormal identity verification should be added. Furthermore, the rewritten explanation should still belong to the "high debt level scenario." In S46, the rewriting constraint prompts and the input to be rewritten are jointly input into the large language model, which has been fine-tuned with compliant corpus, so that the large language model can rewrite the initial explanation in compliance while maintaining consistency in the rejection reasons. This process can be represented as: ,in, This represents the compliant explanation of the language output by the large language model. This indicates a large language model that has been fine-tuned with compliant corpora. Indicates model parameters, This indicates a constraint overwrite hint. This indicates the initial explanatory statement.

[0048] Furthermore, to illustrate the judgment method of the large language model in rewriting while maintaining consistency of rejection reasons, keyword retention is calculated for the rewritten compliant explanation. Let the set of rejection reason keywords in the rejection reason anchoring information be denoted as follows. Explaining the wording from a compliance perspective The extracted set of rejection reason keywords is Then, keyword retention can be expressed as: ,in, Indicates keyword retention rate. This represents the set of rejection reason keywords in the rejection reason anchoring information. This represents the set of keywords indicating reasons for rejection extracted from compliance explanation scripts. This indicates the number of keywords shared by both. This indicates the total number of keywords in the anchor information for the rejection reason. When keyword retention... If the retention threshold is not lower than the preset threshold, the compliance explanation script can be considered to have not significantly deviated from the reason for refusal. The preset retention threshold can be set to 0.80, which requires the rewritten compliance explanation script to retain at least [a certain threshold]. The threshold is set to include keywords indicating the reason for rejection or their equivalent semantic expression. This threshold balances linguistic flexibility during large language model rewriting with consistency in the expression of the reason for rejection, preventing the weakening or replacement of the true reason for rejection due to excessive rewriting. It also allows for assessment of scenario consistency. The rewritten compliant explanation statement is then defined. The scene labels obtained by the scene classification model are The original rejection scenario label output by S2 is Then, scene consistency can be expressed as: ,in, This indicates a scenario consistency flag. When... When, it indicates that the revised compliance explanation still falls under the original refusal scenario; when At that time, it was indicated that the rewritten compliance explanation had the risk of deviating from the intended context.

[0049] In actual implementation, when the keyword retention rate meets the requirements... And the scene consistency tag satisfies If the rejection reason anchoring information is within acceptable limits, the large language model can be considered to have completed effective compliance rewriting under the constraints of the rejection reason anchoring information. If the keyword retention rate is below 0.80, or the scenario consistency is marked as 0, it indicates that the output of the large language model may have issues with reason weakening, reason replacement, or scenario deviation, requiring rewriting based on the rewriting constraint prompts. Through this method, the rejection reason anchoring information can be transformed from ordinary text information into constraint input for the large language model. The rewriting constraint prompts explicitly limit the generation scope of the large language model, ensuring that it can only adjust the sentence order, replace sensitive expressions, and complete compliant expressions in the initial explanation, but cannot change the true rejection reason.

[0050] In S4, the initial explanation statement is rewritten for compliance under the constraints of the rejection reason anchoring information. The output compliant explanation statement includes: S47: Identify absolute statements, promises, ambiguous statements, and extended statements that go beyond the scope of the reasons for refusal in the initial explanation script; S48: Based on the rejection reason anchoring information, replace the identified absolute statements, commitment statements, ambiguous statements and extended statements with neutral explanatory expressions; S49: Adjust the fluency of the replaced explanatory text and complete the compliance prompts to obtain a compliant explanatory text.

[0051] A large language model fine-tuned with compliant corpora can employ a language generation model based on a Transformer decoder structure. This structure includes an input construction layer, a word embedding layer, a positional encoding layer, a multi-layer self-attention encoding-generation layer, an anchoring constraint fusion layer, a compliant rewriting output layer, and an output post-processing layer. Specifically, the input construction layer receives rejection reason anchoring information, rewriting constraint prompts, and initial explanatory statements; the word embedding layer converts each word in the input text into a vector representation; the positional encoding layer adds sequence position information to each word; the multi-layer self-attention encoding-generation layer learns the contextual relationships between the input texts; the anchoring constraint fusion layer strengthens the constraint of rejection reason anchoring information on the output content during generation; the compliant rewriting output layer generates the rewritten explanatory statements; and the output post-processing layer performs compliance expression verification and text processing on the generated results. The input to the large language model can include two parts: one part is the constraint input corresponding to the rejection reason anchoring information, and the other part is the input to be rewritten corresponding to the initial explanatory statements. Let the model input sequence be: ;in, Represents the input sequence. The anchor information indicates the reason for rejection. This indicates a constraint overwrite hint. This represents the initial interpretation statement. This input method allows the large language model to simultaneously obtain constraint information such as rejection reasons, rejection scenarios, keyword sets, and allowed interpretation ranges while receiving the text to be rewritten. In the word embedding layer, the input sequence... Each word in the vector is converted into its corresponding word vector, and positional encoding is superimposed to obtain the model input vector, represented as: ,in, Represents the input vector sequence. Word embedding representation, Positional encoding is used to represent the order of words in the input sequence, preventing disruption of the logical order of the interpreted language during rewriting. In the multi-layer self-attention encoding-generation layer, the large language model extracts the relationships between input content through a multi-head self-attention mechanism. For any attention head, the attention calculation can be represented as: ,in, Represents the query vector. Represents the key vector. Represents a value vector. This represents the dimension of the key vector. Through the attention mechanism described above, the model can identify the content to be rewritten in the initial explanatory statement, while simultaneously paying attention to keywords, rejection scenario labels, and allowed interpretation range in the rejection reason anchoring information, ensuring that the generated result does not deviate from the original rejection reason.

[0052] In the anchoring constraint fusion layer, the model uses the set of rejection reason keywords, the allowed interpretation range, and the rejection scenario labels from the rejection reason anchoring information as generation constraints to semantically constrain the output content. Specifically, when generating each candidate lexical unit, the model increases the generation weight of lexical units related to the rejection reason keyword set and the allowed interpretation range, and decreases the generation weight of lexical units related to the prohibited extended reasons, ensuring that the generated result revolves around the original rejection reason. The purpose of this layer is to prevent the model from adding other rejection reasons or replacing the original rejection reason with an inappropriate reason during the compliance rewriting process.

[0053] In S47, absolute statements refer to expressions that easily lead to certainty and extreme interpretations, such as "certainly will not pass" or "completely does not meet the requirements." Promisive statements refer to expressions that may lead the applicant to expect a positive outcome, such as "approval is guaranteed after supplementing materials" or "approval is certain after reducing debt." Ambiguous statements refer to expressions that are unclear and easily misunderstood, such as "poor overall situation" or "high risk." Extended statements refer to new reasons for rejection that exceed the scope of the anchored rejection information, such as generating additional credit records with overdue payments or identity verification anomalies in scenarios with high debt levels. Specifically, during the identification process, the large language model can classify and label each text fragment in the initial explanatory language based on the expression recognition capabilities developed during the fine-tuning of the compliance corpus, obtaining a set of expressions to be replaced. ,in, This represents the set of expressions to be replaced. Indicates the first One expression to be replaced This indicates the number of expressions to be replaced. Each expression to be replaced can be appended with a corresponding expression type tag, which includes absolute expression tags, commitment expression tags, ambiguous expression tags, and extended expression tags.

[0054] In S48, a neutral interpretation refers to an interpretation that does not make definitive commitments, expands the reasons for rejection, introduces no additional judgment factors, and remains consistent with the anchor information of the rejection reason. Specifically, absolute statements are replaced with relatively neutral expressions such as "current product approval requirements are not yet met" or "this application has not been approved." Commitment statements are replaced with non-commitment statements such as "we suggest further improvement based on your own circumstances" or "you can try applying again after your conditions improve." Ambiguous statements are replaced with clear expressions consistent with the standardized rejection semantic description. Extended statements are deleted or replaced based on the anchor information of the rejection reason, returning them to the permissible interpretation range. For example, if the initial interpretation is: "Your debt situation is poor; reducing your debt will definitely lead to approval," and the standardized rejection semantic description corresponding to the anchor information of the rejection reason is "your current debt level is high, and the overall debt repayment pressure is significant," then "poor" is an ambiguous and negative expression, while "definitely will lead to approval" is a commitment statement. After S48 processing, it can be replaced with: "Your current debt level is high, and the overall debt repayment pressure is significant. We suggest you reasonably arrange your debt based on your own circumstances and apply again." The replacement result retains the genuine reasons for refusal, such as high debt levels and significant debt repayment pressure, while avoiding negative or overly committed statements.

[0055] In S49, sentence fluency adjustment is mainly used to eliminate potential issues such as sentence repetition, unnatural transitions, or semantic breaks after replacement; compliance prompt completion is mainly used to supplement neutral and reasonable follow-up prompts without promising the approval result. Compliance prompt completion should be consistent with the rejection scenario label in the rejection reason anchoring information. For example, in a scenario with high debt levels, the completion direction is to reasonably arrange debt or reduce overall debt repayment pressure; in a scenario with insufficient data completeness, the completion direction is to supplement complete application materials; in a scenario with abnormal credit records, the completion direction is to maintain a good repayment record. Through the above processing, the compliance rewriting process has a clear technical path: first, identify risk expressions; then, perform neutral replacement based on the rejection reason anchoring information; and finally, perform sentence adjustment and compliance prompt completion. Compared with directly calling a large language model to freely generate scripts, this method can reduce the risks of rejection reason drift, over-promising, and non-compliant expression, ensuring that the output compliance explanation script accurately corresponds to the risk control rejection reason and has good readability and compliance controllability.

[0056] S5: Compare the semantic similarity of the compliance explanation script output by S4 with the historical compliance explanation scripts under the same rejection scenario label. Based on the semantic similarity comparison results, update the script template library and output the final explanation script. Semantic similarity comparison in S5 includes: S51: Retrieve historical compliance explanation scripts from the script template library that are identical to the rejection scenario tags output by S2; S52: Semantically vectorize the compliance explanation scripts output by S4 and the historical compliance explanation scripts to obtain the semantic vectors of the current scripts and the historical scripts. S53: Calculate the cosine similarity between the semantic vector of the current discourse and the semantic vector of the historical discourse to obtain the semantic similarity.

[0057] Specifically, in S51, due to the significant differences in the semantics of discourse under different rejection scenarios, directly comparing the current compliance explanation discourse with all historical discourses could easily introduce interference from discourses in irrelevant scenarios. Therefore, the rejection scenario label output by S2 is used as a filtering condition, and only historical compliance explanation discourses under the same rejection scenario label are retrieved. For example, when the rejection scenario label output by S2 is a scenario with a high debt level, only historical compliance explanation discourses that have been stored and processed for compliance under this scenario are retrieved from the discourse template library, without retrieving discourse content from scenarios with insufficient data integrity, abnormal identity verification, or abnormal credit records. In S52, the compliance explanation discourse output by S4 can first be input into a preset text vectorization model to obtain the current discourse semantic vector; simultaneously, historical compliance explanation discourses under the same rejection scenario label are input into the same text vectorization model to obtain historical discourse semantic vectors. The text vectorization model can adopt a sentence vector model, a text encoding model, or a semantic encoding model trained on financial compliance discourse corpus, and its function is to convert natural language discourse into a computable vector representation. Let the compliance explanation script output by S4 be... The first under the same rejection scenario tag The historical compliance explanation script is as follows Then it can be expressed as: ; ,in, This represents the semantic vector of the current discourse. This refers to the compliance explanation language output by S4. Indicates the first A semantic vector of historical discourse. Indicates the first A script for explaining compliance with historical regulations. This indicates a predefined text vectorization model.

[0058] In S53, cosine similarity measures the directional proximity of two semantic vectors in the vector space. A higher value indicates a closer semantic relationship between the two statements; a lower value indicates a greater semantic difference. For the current statement's semantic vector... and the Historical term semantic vector Their semantic similarity can be expressed as: ,in, This indicates that the current compliance explanation script is consistent with the first... The semantic similarity between historical compliance explanations and statements. This represents the semantic vector of the current discourse. Indicates the first A semantic vector of historical discourse. Represents the dot product of two vectors. and These represent the magnitudes of the two vectors, respectively. When multiple historical compliance explanation statements exist under the same rejection scenario label, the semantic similarity between the current statement and each historical statement can be calculated separately, and the maximum value is taken as the final semantic similarity between the current statement and the set of historical statements under that rejection scenario. In this approach, this implementation does not solely rely on keyword similarity to determine the degree of statement duplication; instead, it converts the compliance explanation statements and historical compliance explanation statements into semantic vectors and then compares their similarity. This identifies semantic proximity under different expressions, avoiding misjudgment of duplicate statements as new statements due to wording differences, and also provides a more accurate quantitative basis for the dynamic updating of the statement template library.

[0059] The final explanatory statement output in S5 includes: S54: Compare the semantic similarity with the preset similarity threshold; S55: When the semantic similarity is lower than the preset similarity threshold, the compliant explanation statement output by S4 is written as a candidate update statement into the statement template library under the corresponding rejection scenario label, and the compliant explanation statement output by S4 is output as the final explanation statement. S56: When the semantic similarity is not lower than the preset similarity threshold, keep the script template library under the corresponding rejection scenario label unchanged, and use the compliant explanation script output by S4 as the final explanation script output.

[0060] Specifically, semantic similarity Similarity threshold Comparison; semantic similarity The value ranges from 0 to 1. The closer the value is to 1, the closer the current compliance explanation is to the historical compliance explanation; the closer the value is to 0, the greater the semantic difference between the two. A preset similarity threshold is set. This is used to distinguish between semantically repetitive statements and updatable statements; its value is set to 0.85, but it can also be set differently depending on the rejection scenario label. Between. In a preferred embodiment, a preset similarity threshold is used. The threshold is set to 0.85. This is based on the fact that for compliance explanations under the same rejection scenario label, if two explanations have a semantic similarity of 0.85 or higher, it usually indicates that they are highly similar in terms of rejection reasons, expression direction, and compliance prompts, and continuing to add them to the template library could easily lead to template duplication. If the semantic similarity is below 0.85, it indicates that there are certain expression differences between the current explanation and historical explanations, possibly reflecting new compliance expressions or new scenario details, and therefore it can enter the candidate update process. Setting the threshold to 0.85 achieves a good balance between avoiding template duplication and retaining effective new explanations.

[0061] To make the preset similarity threshold adjustable, it can also be determined based on historical samples. Specifically, historical dialogue samples under the same rejection scenario label are selected from the dialogue template library and manually labeled as semantically repeated sample pairs and semantically different sample pairs. The mean semantic similarity of the two types of sample pairs is calculated separately. Let the mean similarity of the semantically repeated sample pairs be... The mean similarity of semantically differing sample pairs is The preset similarity threshold can be determined according to the following formula: ,in, This indicates a preset similarity threshold. This represents the average similarity of semantically repeated sample pairs. This represents the average similarity of semantically differing sample pairs. This method allows the preset similarity threshold to be derived from historical dialogue data, rather than relying entirely on human experience. Furthermore, to avoid the impact of differences in dialogue expression across different rejection scenarios on threshold stability, corresponding thresholds can be set for different rejection scenario labels. For example, for scenarios with insufficient data completeness, since the dialogue expression is usually relatively fixed, the preset similarity threshold can be set to 0.88; for scenarios with insufficient comprehensive scores, since the explanatory expression is more prone to differences, the preset similarity threshold can be set to 0.82; for common scenarios such as high debt levels and abnormal credit records, the preset similarity threshold can be set to 0.85. This makes the template library update judgment more consistent with the dialogue expression characteristics of different rejection scenarios. By using the preset similarity threshold to update compliant explanatory dialogue, the dialogue template library can both absorb compliant dialogue with new expressive value and avoid repeatedly accumulating highly similar dialogue. This forms a closed-loop optimization mechanism of generation—comparison—judgment—update, improving the continuous adaptation capability and maintenance efficiency of the dialogue template library.

[0062] This invention encompasses any substitutions, modifications, equivalent methods, and solutions made within the spirit and scope of this invention. To provide the public with a thorough understanding of this invention, specific details are described in detail in the following preferred embodiments; however, those skilled in the art will fully understand the invention even without these details. Furthermore, to avoid unnecessary misunderstanding of the essence of this invention, well-known methods, processes, procedures, components, and circuits are not described in detail.

[0063] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.

Claims

1. An automatic analysis method for rejection reasons based on a large AI model, characterized in that, Includes the following steps: S1: Obtain the risk control rejection code corresponding to the loan application being rejected, and match the risk control rejection code with the pre-configured rejection code-semantic mapping table to obtain the standardized rejection semantic description corresponding to the risk control rejection code; S2: Input the standardized rejection semantic description obtained in S1 into the preset scene classification model to classify the scene and output the corresponding rejection scene label; S3: Based on the rejection scenario label output by S2, retrieve the basic dialogue template that matches the rejection scenario label from the dialogue template library, and fill the rejection reason semantic slot of the basic dialogue template with the standardized rejection semantic description obtained in S1 to generate the initial explanation dialogue. S4: Based on the standardized rejection semantic description obtained in S1 and the rejection scenario label output in S2, generate rejection reason anchoring information, and input the rejection reason anchoring information and the initial explanation statement generated in S3 into the large language model that has been fine-tuned by compliant corpus. Under the constraint of the rejection reason anchoring information, the initial explanation statement is rewritten for compliance and the compliant explanation statement is output. S5: Compare the semantic similarity of the compliance explanation script output by S4 with the historical compliance explanation scripts under the same rejection scenario label. Based on the semantic similarity comparison results, update the script template library and output the final explanation script.

2. The automatic rejection reason analysis method based on AI large model according to claim 1, characterized in that, S1 specifically includes: S11: Obtain the risk control rejection code generated when the loan application is rejected, and perform format validation on the risk control rejection code, remove empty value codes, abnormal character codes and incomplete temporary codes to obtain a valid risk control rejection code; S12: Using the valid risk control rejection code as the matching index, perform field matching in the pre-configured rejection code-semantic mapping table. The rejection code-semantic mapping table includes the risk control rejection code field, the standardized rejection semantic description field, and the candidate rejection scenario field. S13: When a valid risk control rejection code matches the risk control rejection code field in the rejection code-semantic mapping table, read the standardized rejection semantic description field in the corresponding record to obtain the standardized rejection semantic description corresponding to the risk control rejection code.

3. The automatic rejection reason analysis method based on AI large model according to claim 1, characterized in that, S2 specifically includes: S21: Perform word segmentation and stop word filtering on the standardized rejection semantic description to obtain a rejection semantic word sequence; S22: Input the rejection semantic word sequence into the text encoding layer for vectorization representation to obtain the rejection semantic feature vector; S23: Input the rejection semantic feature vector into the classification output layer of the scene classification model to obtain the classification probability corresponding to each preset rejection scene; S24: Determine the preset rejection scenario with the highest classification probability as the rejection scenario label corresponding to the standardized rejection semantic description, and output the classification confidence corresponding to the rejection scenario label.

4. The automatic rejection reason analysis method based on AI large model according to claim 1, characterized in that, S3 specifically includes: S31: Store the basic dialogue templates in the dialogue template library according to the rejection scenario tags, so that each rejection scenario tag corresponds to at least one basic dialogue template. S32: Using the rejection scenario tags output by S2 as search criteria, search for the basic script templates under the corresponding category in the script template library; S33: When multiple basic script templates are found, they are filtered according to the template's activation status, template version number, and template usage priority to obtain the basic script template that matches the rejection scenario tag.

5. The automatic rejection reason analysis method based on AI large model according to claim 4, characterized in that, S3 further includes: S34: Identify the semantic slots for reasons of refusal in the basic script template, wherein the basic script template includes scenario prompts, semantic slots for reasons of refusal, and compliance prompts; S35: Write the standardized rejection semantic description obtained in S1 into the rejection reason semantic slot, and retain the scenario guidance and compliance prompts in the basic script template; S36: According to the preset sentence arrangement order in the basic script template, the scenario introductory text, the filled rejection reason semantic slots and compliance prompts are spliced ​​together to generate the initial explanation script.

6. The automatic rejection reason analysis method based on AI large model according to claim 1, characterized in that, The specific steps in S4 to generate rejection reason anchoring information include: S41: Extract the rejection reason keywords from the standardized rejection semantic description obtained in S1 to obtain a set of rejection reason keywords; S42: Based on the rejection scenario label output by S2, determine the allowed interpretation range corresponding to the rejection scenario label; S43: Combine the risk control rejection code, standardized rejection semantic description, rejection scenario label, rejection reason keyword set, and allowed interpretation range to generate rejection reason anchoring information.

7. The automatic rejection reason analysis method based on an AI large model according to claim 6, characterized in that, The S4 step, which involves inputting the rejection reason anchoring information and the initial explanatory statement generated in S3 into the large language model fine-tuned by the compliant corpus, includes: S44: Set the rejection reason anchor information as a constraint input and the initial explanation statement as an input to be rewritten; S45: Generate rewrite constraint prompts based on constraint inputs. The rewrite constraint prompts include constraints that the rejection reason cannot be replaced, the rejection reason cannot be expanded, and the rejection scenario cannot be shifted. S46: Input the rewriting constraint prompts and the input to be rewritten into the large language model that has been fine-tuned by the compliant corpus, so that the large language model can rewrite the initial explanatory statement in compliance while maintaining the consistency of the rejection reasons.

8. The automatic rejection reason analysis method based on AI large model according to claim 7, characterized in that, In step S4, the initial explanation statement is rewritten for compliance under the constraint of the rejection reason anchoring information, and the output compliant explanation statement includes: S47: Identify absolute statements, promises, ambiguous statements, and extended statements that go beyond the scope of the reasons for refusal in the initial explanation script; S48: Based on the rejection reason anchoring information, replace the identified absolute statements, commitment statements, ambiguous statements and extended statements with neutral explanatory expressions; S49: Adjust the fluency of the replaced explanatory text and complete the compliance prompts to obtain a compliant explanatory text.

9. The automatic rejection reason analysis method based on AI large model according to claim 1, characterized in that, The semantic similarity comparison in S5 includes: S51: Retrieve historical compliance explanation scripts from the script template library that are identical to the rejection scenario tags output by S2; S52: Semantically vectorize the compliance explanation script output by S4 and the historical compliance explanation script respectively to obtain the semantic vector of the current script and the semantic vector of the historical script. S53: Calculate the cosine similarity between the semantic vector of the current discourse and the semantic vector of the historical discourse to obtain the semantic similarity.

10. The automatic rejection reason analysis method based on AI large model according to claim 1, characterized in that, The final explanatory statement output in S5 includes: S54: Compare the semantic similarity with the preset similarity threshold; S55: When the semantic similarity is lower than the preset similarity threshold, the compliant explanation statement output by S4 is written as a candidate update statement into the statement template library under the corresponding rejection scenario label, and the compliant explanation statement output by S4 is output as the final explanation statement. S56: When the semantic similarity is not lower than the preset similarity threshold, keep the script template library under the corresponding rejection scenario label unchanged, and use the compliant explanation script output by S4 as the final explanation script output.