Pre-training data synthesis method and system based on knowledge blind area and value entropy

By utilizing knowledge blind spots and value entropy to locate knowledge blind spots and generate high-value data during the vertical domain pre-training of large language models, the problems of excessive redundant information and low training efficiency are solved, thereby improving the model's long context reasoning ability.

CN123138376APending Publication Date: 2026-11-20BEIJING BIG DATA ADVANCED TECH RES INST
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611303084.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-26
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

In the continuous pre-training process of existing large language models in vertical domains, the generated training data contains a lot of redundant information, has low training efficiency, and is prone to pattern overfitting, which cannot effectively improve the model's generalization performance for long context tasks.

Method used

By constructing evaluation questions to identify knowledge gaps, using value entropy to quantify entity relationships in the knowledge graph, generating high-value pre-training data, and combining it with a large language model, the diversity and coverage of the corpus can be precisely controlled.

Benefits of technology

It improved training efficiency, reduced computational waste, enhanced the model's inference performance with long contexts, and generated high-value long text training data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123138376A_ABST
    Figure CN123138376A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of data processing, and discloses a pre-training data synthesis method and system based on a knowledge blind area and value entropy. The method comprises the following steps: constructing a plurality of evaluation questions based on a target knowledge field and a to-be-processed document, testing a target question and answer model, determining a blind area anchor point paragraph according to the answer of the model, constructing a cross-document knowledge graph based on entities and relationships in all to-be-processed documents, calculating the value entropy of each directed edge in the knowledge graph, searching the knowledge graph with the entities in the blind area anchor point paragraph as the starting point to obtain at least one target path with an average value entropy greater than a first threshold, and fusing all entities contained in the blind area anchor point paragraph and the target path by a first large language model to generate pre-training data for the target question and answer model. The method can generate high-value vertical field pre-training data, improve pre-training efficiency, and improve model reasoning accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data processing technology, specifically to a method and system for synthesizing pre-trained data based on knowledge blind spots and value entropy. Background Technology

[0002] In the continuous pre-training (CPT) stage of large language models (LLM) for vertical domains, by synthesizing pre-training data with relevant domain knowledge, the model can break through the scale bottleneck of human-generated corpora. This approach has gradually become a key means of injecting domain knowledge and improving the model's foundational capabilities.

[0003] Traditional training data synthesis schemes for large language models mainly fall into two categories: meta-knowledge extraction schemes based on existing domain knowledge bases and heuristic data synthesis schemes based on knowledge graphs. These schemes often exhibit strong randomness in synthesizing training data, generating a large amount of redundant information and wasting pre-training computational resources. This leads to low training efficiency and is prone to pattern overfitting, reducing the model's ability to follow general instructions and its performance on long-context tasks. Furthermore, these schemes cannot precisely control the diversity of the corpus at the semantic level, resulting in training data that is mostly short, fragmented, and logically rigid low-value text data. Using such low-value text for model training easily leads to pattern overfitting due to its uniform format, resulting in poor modeling ability for macro-logical coherence in long contexts and affecting generalization performance on complex tasks involving long texts.

[0004] Therefore, how to synthesize high-value long-text pre-training data from vertical domains to improve the training effect of large language models is a problem that needs to be solved. Summary of the Invention

[0005] The purpose of this application is to provide a method and system for synthesizing pre-trained data based on knowledge blind spots and value entropy, so as to synthesize high-value long text pre-trained data in vertical domains.

[0006] To achieve the above objectives, the technical solution of this application is as follows: In a first aspect, embodiments of this application provide a method for synthesizing pre-trained data based on knowledge blind spots and value entropy, the method comprising: Multiple evaluation questions are constructed based on the documents to be processed in the target knowledge domain; The evaluation questions are input into the target question-answering model, and the blind anchor point paragraphs in the document to be processed are determined based on the answers output by the target question-answering model. Based on the entities and relationships in all documents to be processed, a cross-document knowledge graph is constructed; the nodes in the knowledge graph represent entities, and the directed edges represent the relationship types between two entities. Based on the knowledge graph and the error rate of the answers output by the target question answering model, the value entropy of each directed edge in the knowledge graph is calculated; the higher the value entropy of the directed edge, the better the type diversity of the directed edge, the greater the connection breadth, and the higher the value of the knowledge blind spot. Using the entities in the blind zone anchor segment as the starting point, search the knowledge graph to obtain at least one target path with an average value entropy greater than the first threshold. The first language model fuses the text sentences belonging to the blind anchor paragraphs and all entity pairs contained in the target path according to the target path, generating pre-training data for the target question answering model.

[0007] Secondly, embodiments of this application provide a pre-trained data synthesis system based on knowledge blind spots and value entropy, used to perform the steps in the method provided in the first aspect of embodiments of this application. The system includes: The blind spot localization module is configured to construct multiple evaluation questions based on the document to be processed in the target knowledge domain; input the evaluation questions into the target question answering model, and determine the blind spot anchor point paragraph in the document to be processed based on the answer output by the target question answering model; The knowledge graph construction module is configured to build a cross-document knowledge graph based on the entities and relationships in all documents to be processed; the nodes in the knowledge graph represent entities, and the directed edges represent the relationship types between two entities. The relationship filtering module is configured to calculate the value entropy of each directed edge in the knowledge graph based on the error rate of the answers output by the target question answering model. The higher the value entropy of the directed edge, the better the type diversity of the directed edge, the greater the connection breadth, and the higher the value of the knowledge blind spot. Taking the entity in the blind spot anchor segment as the starting point, the knowledge graph is searched to obtain at least one target path with an average value entropy greater than a first threshold. The synthesis module is configured to use a first language model to fuse the text statements belonging to the blind anchor paragraphs and all entity pairs contained in the target path according to the target path, thereby generating pre-training data for the target question answering model.

[0008] Thirdly, embodiments of this application provide an electronic device including a processor, a memory, and a program or instructions stored in the memory and executable on the processor, wherein the program or instructions, when executed by the processor, implement the steps in the method provided in the first aspect of embodiments of this application.

[0009] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps in the method provided in the first aspect of embodiments of this application.

[0010] The method provided in this application first tests the target question-answering model to be trained using evaluation questions in the target knowledge domain, thereby accurately locating the model's knowledge blind spots (i.e., blind spot anchor paragraphs). Then, starting with entities in the blind spot anchor paragraphs identified in the test, a target path is searched in a cross-document knowledge graph. During this process, value entropy is used to quantify the value diversity of semantic relationships between entities within the cross-document knowledge graph. Combined with a custom entropy value range, the diversity of semantic knowledge types and the breadth of connections in the generated path are precisely controlled. This achieves precise control over corpus diversity, avoids generating low-value data with "superficial diversity," and improves the coverage of knowledge blind spots in the synthesized data, reducing the generation of redundant information. Based on this, multiple text statements are fused and reasoned based on the target path, resulting in high-value long-text training data with accurately located knowledge blind spots and macro-level logical relationships. Using the long-text training data generated by this scheme for continuous pre-training of a large language model in the target knowledge domain can achieve the effects of saving computing power, improving training efficiency, and enhancing the model's reasoning performance in long contexts. Attached Figure Description

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

[0012] Figure 1 This is a flowchart of a pre-training data synthesis method based on knowledge blind spots and value entropy proposed in an embodiment of this application; Figure 2 This is a schematic diagram of the process of synthesizing pre-training data in one embodiment of this application; Figure 3 This is a schematic diagram of a pre-trained data synthesis system based on knowledge blind spots and value entropy proposed in an embodiment of this application; Figure 4 This is a schematic diagram of an electronic device according to an embodiment of this application. Detailed Implementation

[0013] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0014] It should be understood that the phrase "one embodiment" or "an embodiment" throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of this application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments.

[0015] In the various embodiments of this application, it should be understood that the sequence number of each process described below does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0016] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects as detailed in this application.

[0017] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other.

[0018] Traditional meta-knowledge extraction schemes based on existing domain knowledge bases primarily guide models to generate new questions with the same complex reasoning patterns from raw text by extracting reusable "meta-knowledge" (i.e., a structured process of transforming knowledge into complex questions) from the original text. Heuristic data synthesis schemes based on knowledge graphs, on the other hand, sample paths from the knowledge graph to ultimately transform it into multiple-choice questions or short reasoning data with thought processes. However, these schemes do not consider the cognitive state of the model being trained when synthesizing data, resulting in synthesized data filled with redundant information already familiar to the model, while ignoring long-tail knowledge that the model has not yet mastered. Using data generated by traditional schemes for continuous domain pre-training of the model wastes significant computational resources, is inefficient, and is prone to pattern overfitting. Furthermore, when traditional schemes attempt to increase corpus diversity during data synthesis, they fail to distinguish the value of knowledge at the semantic level. For example, heuristic solutions based on knowledge graphs often rely on rules such as reciprocal frequency and uniform randomness. The path search process lacks quantitative benchmarks based on information theory, failing to distinguish between valuable rare knowledge combinations and meaningless noise patchwork. This results in fragmented, logically rigid, and short low-value texts (mostly single-step reasoning trajectories). For instance, when synthesizing data, it might awkwardly string together phrases like "A's target is B, and B is related to disease C." Such low-value texts not only fail to improve the model's logical reasoning ability but are also memorized by the model, contaminating its foundation.

[0019] The present application will now be described in detail with reference to the accompanying drawings and embodiments.

[0020] Figure 1 This is a flowchart of a pre-training data synthesis method based on knowledge blind spots and value entropy proposed in an embodiment of this application. Figure 1 As shown, the method includes: S1: Construct multiple evaluation questions based on the documents to be processed in the target knowledge domain; S2: Input the evaluation questions into the target question-answering model, and determine the blind anchor point paragraphs in the document to be processed based on the answers output by the target question-answering model; S3: Construct a cross-document knowledge graph based on the entities and relationships in all documents to be processed; the nodes in the knowledge graph represent entities, and the directed edges represent the relationship types between two entities; S4: Based on the knowledge graph and the error rate of the answers output by the target question answering model, calculate the value entropy of each directed edge in the knowledge graph; the higher the value entropy of the directed edge, the better the type diversity of the directed edge, the greater the connection breadth, and the higher the value of the knowledge blind spot; S5: Using the entities in the blind zone anchor segment as the starting point, search the knowledge graph to obtain at least one target path with an average value entropy greater than the first threshold. S6: Using the first language model, based on the target path, the text sentences belonging to the blind anchor paragraph and all entity pairs contained in the target path are fused to generate pre-training data for the target question answering model.

[0021] In this embodiment, based on the target knowledge domain that the target question-answering model (large language model) needs to be continuously pre-trained, multiple documents to be processed in this domain are obtained for pre-training data generation. First, multiple evaluation questions are constructed based on the content of these documents to be processed, and these evaluation questions are input into the target question-answering model to be trained. The knowledge blind spots of the model are determined based on the answers output by the target question-answering model. In this embodiment, the constructed evaluation questions are in the form of multiple-choice questions, and each evaluation question has a corresponding correct answer. When constructing the evaluation questions, the text paragraphs in the documents to be processed corresponding to each evaluation question are recorded. Then, based on the model's answers to each evaluation question, the text paragraphs where the model's knowledge blind spots are located are determined, i.e., the blind spot anchor paragraphs.

[0022] In this embodiment, a cross-document knowledge graph is constructed based on all documents to be processed in the target knowledge domain. In the knowledge graph, each node is an entity in the document to be processed, and the directed edge connecting two entities represents the relationship type between the entity pairs. For each directed edge in the knowledge graph, the corresponding value entropy is calculated to measure the semantic type diversity and connection breadth of each directed edge.

[0023] During the path search phase, a preset value entropy threshold (i.e., the first threshold) serves as a constraint on path traversal. Adjusting the first threshold accurately controls the diversity of the synthetic data in terms of cross-document association breadth and knowledge novelty. Specifically, under the constraint of the first threshold, starting from entities in the blind anchor paragraph of the target question-answering model, path searching is performed in the knowledge graph to find target paths where the average value entropy of the entire path is greater than the first threshold. After obtaining the target path, a pre-trained large language model is used to fuse the text statements belonging to each entity pair in the path, as well as the blind anchor paragraph where the path starts, to obtain high-value long text data that can be used for continuous pre-training in the target knowledge domain.

[0024] In this embodiment, model cognitive blind spot localization is used as a pre-filtering step for pre-training corpus synthesis. By pre-locating blind spot anchor paragraphs and using entities within these paragraphs as starting points for path finding, the selection of the data synthesis starting point is transformed from "graph topology driven" in traditional heuristic sampling schemes to "model cognitive state driven." This ensures that the subsequently generated data addresses the model's actual capability shortcomings, fundamentally solving the problems of wasted computing power, low pre-training efficiency, and pattern overfitting caused by blindly synthesizing already familiar data. Furthermore, this application designs a value entropy specifically for quantifying the diversity of directed edge types and the breadth of connections. Path selection is performed by setting a range for the average value entropy of paths. Compared to traditional knowledge graph-based heuristic sampling methods, this scheme achieves intelligent and precise control over the "cross-document breadth," "knowledge category diversity," and "knowledge blind spot coverage" of the pre-training corpus.

[0025] As one implementation of this application, multiple evaluation questions are constructed based on the documents to be processed in the target knowledge domain, including: Multiple triples are extracted from the document to be processed in the target knowledge domain, and the text statement and text paragraph to which each triple belongs are recorded; wherein each triple consists of a corresponding subject, predicate and object; The first prompt word is constructed based on the triple and the text paragraph to which it belongs; Based on the first prompt word, a multiple-choice question is constructed using the first large language model and identified as the evaluation question corresponding to the triple; wherein, the incorrect option in the multiple-choice question belongs to the text paragraph corresponding to the triple.

[0026] In one embodiment, by constructing evaluation questions and calling the target question-answering model to be trained to answer them, knowledge blind spots in the document to be processed are pre-identified before synthesizing the pre-training corpus, thereby reducing the generation of redundant information in subsequent stages.

[0027] Specifically, based on the documents to be processed in the target knowledge domain, multiple multiple-choice questions are constructed as evaluation items using a pre-trained first-level language model. Specifically, all documents to be processed are added to a document set D, and an information extraction tool based on the pre-trained language model is used to extract all subject-verb-object triples (represented as...) from document set D.<s,p,o> For example, the extracted triples are <Li Jing, Commander, Dragon King of the Four Seas>, where the subject s is "Li Jing", the predicate p is "Commander", and the object o is "Dragon King of the Four Seas". For each extracted triple and the text paragraph to which it belongs, a first prompt word is constructed and input into the first large language model so that the model outputs the corresponding multiple-choice question. The first large language model fixes the correct option of the multiple-choice question as the object entity of the triple and searches for other entities besides those in the triple from the text paragraph to which the triple belongs as incorrect distractors for the multiple-choice question. In practical applications, a generative large language model (such as Qwen) can be selected as the first large language model according to application requirements; this embodiment does not impose any restrictions on this.

[0028] All generated multiple-choice questions are used as evaluation questions and input into the target question-answering model to be trained for reasoning, obtaining the answers output by the target question-answering model. Based on the correct answers of the evaluation questions and the model's answers, the correctness of the model's answers is determined, and the corresponding Boolean values ​​are recorded for subsequent identification of knowledge gaps in the target question-answering model.

[0029] In one embodiment, a cross-document knowledge graph is constructed based on all triples extracted from the document to be processed. Specifically, firstly, entity disambiguation and coreference resolution are performed on all triples, unifying different representations of the same entity into a unique node (e.g., mapping "Li Jing" and "Li Jing, the Pagoda-Bearing Heavenly King" to the same entity). Then, the predicate p in each triple is mapped to the corresponding relation type. It is worth noting that when performing the mapping from predicate to relation type, each relation type can correspond to one or more predicates p. For example, the predicates "cause," "initiate," and "cause" are all mapped to the same relation type "causation." Optionally, a general generative large language model is used to automatically identify the semantic relationships between entity pairs in each triple and map them to predefined relation types. In practical applications, relation types can also be customized according to requirements; this embodiment does not impose any restrictions on this.

[0030] Based on all processed entity pairs and their corresponding relation types, each triple (s, p, o) is mapped to a directed edge r, where the head entity node h (corresponding to the subject s) and the tail entity node t (corresponding to the object o) are unique entities in the knowledge graph. The directed edge carries a relation type label, corresponding to the relation type mapped to the predicate p. All relation types are extracted from the knowledge graph to construct a relation type set R (e.g., the relation type set includes: causality, membership, contrast, temporal sequence, adaptation, spiritual evolution, etc.); all nodes corresponding to all entities are extracted from the knowledge graph to construct a node set V; and all directed edges are extracted from the knowledge graph to construct a directed edge set E. Thus, a cross-document directed heterogeneous knowledge graph G=(V, E, R) is generated.

[0031] It is worth noting that the set of nodes V represents the unique entity designation after disambiguation; the set of directed edges... Each directed edge r carries a label indicating the relationship type between the connected entity pairs. In subsequent stages, the set of relationship types R provides top-level logical constraints for knowledge graph-based path traversal.

[0032] As one embodiment of this application, determining blind spot anchor paragraphs in the document to be processed based on the answer output by the target question-answering model includes: Based on the answers output by the target question answering model and the correct answers to the corresponding evaluation questions, as well as the text paragraphs corresponding to each evaluation question, the average error rate of each text paragraph in the document to be processed is calculated. Text paragraphs with an average error rate greater than a second threshold are selected from the documents to be processed and identified as blind spot anchor paragraphs of the target question answering model.

[0033] In one embodiment, based on the Boolean value (indicating whether the answer is correct) corresponding to each answer output by the target question-answering model, and the text paragraph to which each evaluation question belongs, the average error rate corresponding to each text paragraph in the document to be processed is calculated: .

[0034] Then, the average error rate of each text segment is compared with a second threshold (e.g., the second threshold is set to 0.6), and text segments with an average error rate greater than the second threshold are selected as blind spot anchor segments where the target question answering model's current knowledge blind spot is located. Subsequently, in the cross-document knowledge graph path search process, entities are determined from the blind spot anchor segments as path starting points, so as to forcibly anchor the starting point of the pre-training corpus synthesis to the cognitive blind spot of the target question answering model.

[0035] As one implementation of this application, based on the knowledge graph and the error rate of the answers output by the target question-answering model, the value entropy of each directed edge in the knowledge graph is calculated, including: Based on the total number of directed edges in the knowledge graph and the frequency of occurrence of the target relation type corresponding to the target directed edge, the probability of occurrence of the target relation type is calculated and determined as the rarity factor. Based on the frequency of occurrence of the two target entities connected by the directed edge in the document to be processed, and the average error rate of each text paragraph in the document to be processed, the average error rate of the two target entities is calculated and determined as the knowledge blind spot factor. The number of all entity pairs connected by directed edges of the target relation type in the knowledge graph is counted and determined as the diversity factor. The value entropy of the target directed edge is calculated based on the rarity factor, the knowledge blind spot factor, and the diversity factor.

[0036] In one embodiment, the value entropy of each directed edge in the knowledge graph is calculated based on the knowledge blind spots of the target question-answering model. This value entropy serves as a quantitative indicator to measure the quality of any relation type in the knowledge graph at the current training stage. Specifically, the corresponding value entropy is calculated for each directed edge. The expression is defined as follows: ; in, As a rarity factor, it follows the definition of self-information in information theory, characterizing the rarity of the relation type of the directed edge r itself; Representing relation types in a knowledge graph The probability of it appearing in the following formula is calculated using the following expression: ; As a diversity factor, it is used to reflect the breadth of the ability of the directed edge relationship type to connect knowledge points across documents, and is determined based on the number of different entity pairs connected by the relationship type in the knowledge graph; These are trainable hyperparameters; The knowledge blind spot factor is used to characterize the average blind spot error rate of all entity pairs connected by relation type r in the knowledge graph within the document to be processed. The knowledge blind spot factor is a crucial bridge connecting the static knowledge graph and the dynamic model state. This embodiment introduces the knowledge blind spot factor to inject the model's current capability deficiencies as weights into the entropy value calculation.

[0037] In this embodiment, after testing the target question-answering model using evaluation questions, the entity... The frequency of occurrence in text paragraph d is used as the weight. A weighted average is then applied to the average error rate of the text paragraphs to obtain the entity. Corresponding entity-level error rate : ; in, The frequency of entity v in text paragraph d; Let d be the average error rate of the text paragraph.

[0038] Furthermore, based on the entity-level error rate corresponding to each entity, the average error rate of the entities at both ends of a directed edge r in the knowledge graph is calculated, and the average is taken over all directed edges using this relation type to obtain the knowledge blind spot factor corresponding to the directed edge r. The specific calculation process is as follows: For the relation type corresponding to the directed edge r, the set of all entity pairs connected in the knowledge graph is: Where h is the head entity, r is the relation type, t is the tail entity, and E is the set of relation types. The knowledge blind spot factor of directed edge r. Calculate based on the following expression: ; in, Let h be the set of all entity pairs; h is the head entity; t is the tail entity. The entity-level error rate for the head entity; The entity-level error rate for the tail entity.

[0039] This embodiment provides a method for quantifying the value of relationships in a knowledge graph. It deeply couples "frequency and diversity," representing information gain, with "unknowns," representing the model's cognitive state, through quantitative calculation. This allows for a precise mathematical measurement of the value of entity relationships to the target question-answering model. Furthermore, in the subsequent path traversal phase, the calculation of value entropy can accurately measure whether the entity relationships included in the path represent long-tail, high-value knowledge that the model has not yet learned.

[0040] A higher value entropy indicates that the relation type simultaneously possesses: rarity (low frequency of occurrence, corresponding to long-tail or deep knowledge), high connectivity breadth (able to connect a large number of different entity pairs, possessing cross-document bridging capabilities), and high knowledge blind spot (the model generally answers incorrectly on the entities involved in the relation, i.e., the model currently struggles to grasp this type of knowledge). High-value entropy relation types are high-quality data for synthesizing high-value pre-training corpora. Path walking based on high-value entropy relations yields a path framework that is highly likely to fill the knowledge blind spot of the target question-answering model, and possesses high information gain and logical novelty.

[0041] The lower the value entropy, the more likely at least one of the following situations exists: the relation type appears frequently (such as common relation types like "belongs to" or "has attributes"), the connected entity pairs are singular (can only associate a few fixed entities), and the model has basically mastered the entity knowledge involved in the relation (low entity-level error rate). Based on this type of relation, it is easy to synthesize redundant information that the model is already familiar with or superficial co-occurrence data lacking logical depth, resulting in a waste of resources and low training efficiency for continuous pre-training, and limited improvement on model performance. Therefore, in the path search phase, it is necessary to avoid selecting directed edges with low value entropy to join the path as much as possible.

[0042] As one implementation of this application, the entity in the blind zone anchor segment is used as the starting point to search the knowledge graph and obtain at least one target path with an average value entropy greater than a first threshold, including: Add the node corresponding to the entity that appears most frequently in each blind zone anchor point segment to the starting point set; Using each node in the set of starting points as a starting point, search the knowledge graph to obtain at least one target path, including: Search the knowledge graph for nodes that are connected to the most recently added node in the current target path, and use them as candidate nodes. Calculate the average value entropy of the target path after the candidate node is added to the current target path, and compare it with a first threshold; If the average value entropy is greater than the first threshold, the candidate node is added to the current target path.

[0043] In one embodiment, when traversing paths in the knowledge graph, the node corresponding to the most frequently occurring entity in each blind spot anchor segment is used as the anchor entity. By using the nodes corresponding to each anchor entity as the starting point for path traversal in the knowledge graph, the core knowledge that the target question-answering model has not mastered can be precisely targeted, ensuring that the synthesized pre-training corpus directly addresses the model's shortcomings.

[0044] Specifically, the node corresponding to the most frequently occurring entity in each blind spot anchor segment is added to the starting point set. Based on each node in the starting point set, a constrained breadth-first search or a biased random walk is performed to search for connected entity nodes in the knowledge graph as candidate nodes. When expanding the path, for each candidate node, it is calculated whether the average value entropy of the entire path is greater than a first threshold if the candidate node is added to the current path. If the average value entropy of the path is greater than the first threshold, the candidate node is added to the current path. Conversely, if the average value entropy of the path is less than or equal to the first threshold when the candidate node is added to the current path, it indicates that the value of the knowledge corresponding to the directed edge connected to the candidate node to the current path is low, so the candidate node is discarded. After a new candidate node is added to the current path, nodes connected to the newly added node and not inferior to the current path are used as new candidate nodes, and path walking continues until none of the candidate nodes meet the constraint of average value entropy, or the number of hops of the current path reaches the user-preset hop count threshold. Then, all the obtained paths are determined as target paths for subsequent long text corpus synthesis.

[0045] By using a path-walking approach based on value entropy constraints, the path-walking operation of the knowledge graph can be precisely adjusted according to training needs. For example, when continuous pre-training only requires a slight expansion of the model's knowledge boundaries, a lower first threshold is used; when continuous pre-training requires a significant exploration of the model's knowledge blind spots and improvement of the model's cross-domain reasoning ability, a higher first threshold is used.

[0046] Table 1 below shows the comparative results of value entropy evaluation for three relation types related to the document materials on "Evolution of Historical Images of Animated Films and Mythological Figures". For each of the three relation types, evaluations were conducted based on knowledge scarcity, diversity, and average knowledge blind spot factor, and the corresponding value entropy was calculated. It can be seen that calculating value entropy can accurately measure the semantic value of each relation type. In contrast, traditional heuristic knowledge graph sampling strategies, based on inverse frequency or random walk path searching, cannot accurately distinguish the essential difference in training value between "box office revenue" and "mythological dominance".

[0047] Table 1

[0048] Based on these documents, a path search based on value entropy constraints was performed to generate a value evolution path from hierarchical order to individual awakening. Part of the path search process is as follows: (1) Path start: The anchor entity "Li Jing, the Pagoda-Bearing Heavenly King" is searched along the directed edge "Command" to find the candidate node "Four Seas Dragon King". The value entropy of the edge corresponding to this candidate node is greater than the first threshold, so it is added to the path and the search continues; (2) Starting from node “Four Seas Dragon Kings”, follow the directed edge “adapted into a villain” to reach candidate node “Film B”. The value entropy of its corresponding edge is much greater than the first threshold, so add it to the path and continue the search. Among them, the directed edge “adapted into a villain” realizes the leap from the mythological system to the modern film and television text, which is the core connection of the logical pattern; (3) Starting from node “Film B”, link across documents along the directed edge “Value Comparison” to the candidate node “Man Will Conquer Nature” in another document. The value entropy of its corresponding edge is much greater than the first threshold. Add it to the path and continue the search.

[0049] As one embodiment of this application, before searching the knowledge graph using entities in the blind zone anchor point segment as the starting point, the method further includes: Extract the relation types corresponding to each directed edge from the knowledge graph to construct a first relation type set; construct a second prompt word based on the first relation type set; input the second prompt word into the first large language model to generate multiple logical templates that match the document to be processed and display them on the user interface; the logical template is a logical association sequence composed of multiple relation types; based on the target logical template specified by the user on the user interface, obtain all relation types of the target logical template and construct a second relation type set; If the average value entropy is greater than the first threshold, the method further includes: Detect whether the relation type of the directed edge corresponding to the candidate node belongs to the second relation type set; if the relation type of the directed edge corresponding to the candidate node belongs to the second relation type set, add the candidate node to the current target path.

[0050] In one embodiment, in addition to constraining path traversal using a value entropy threshold, a logical template is also used to constrain the direction of path expansion from the perspective of macro-level textual logical legitimacy. By combining value entropy with a logical template for dual constraints, flexible control over path search is achieved, resulting in high-value target paths that strongly match the semantic logic of the specified logical template. Introducing a pre-defined logical template as the top-level constraint for knowledge graph path querying not only addresses the problems of weak logic, fragmented knowledge, and inability to generate long texts inherent in traditional knowledge graph heuristic sampling schemes, but also further strengthens the contextual logical relevance of the generated pre-training corpus.

[0051] In this embodiment, one or more general logical templates can be pre-defined, including causal reasoning, contrastive contradictions, and inductive summarization. Before performing pre-training corpus synthesis, the user can specify one or more target logical templates from the predefined general logical templates. During the path search process, firstly, based on the target logical template specified by the user, all relation types contained in the template are obtained, and a second set of relation types is constructed. For example, all relation types corresponding to the logical template "causal reasoning" are obtained, including: because, therefore, leading to, causing, resulting in, and so on.

[0052] While filtering candidate nodes with high value entropy using a first threshold, it is also determined whether the relation type of the directed edges connecting the candidate node to the current path belongs to the second relation type set corresponding to the specified target logical template. For example, it is determined whether the relation type "cause" belongs to the second relation type set corresponding to the logical template "causal reasoning". Only when both constraints are satisfied is it determined that the candidate node can be added to the current path.

[0053] In one embodiment, a generative large language model can be used to create one or more matching logical templates based on the content of the document to be processed, thereby generating a target path with strong logicality and enhancing the semantic logic of the final synthesized pre-training corpus. Specifically, the steps for constructing logical templates are as follows: (1) Obtain the set of relation types R corresponding to the knowledge graph (i.e., the first set of relation types), and construct the second prompt word based on this set of relation types. For example, the following is a partial example of the second prompt word: You are a knowledge graph logical structure design expert. Given the following set of knowledge graph relation types: [First relation type set]. Please design a macro-logical template for the generation of the pre-training corpus. Requirements: Each template must contain a clear logical goal (e.g., causal reasoning pattern, contrastive contradiction pattern, inductive summary pattern, cultural archetype evolution pattern, etc.). Each template must define a valid cross-document path sequence to guide subsequent knowledge graph traversal. The sequence format is: entity, relation, entity, relation, entity... (the total number of hops in the path should be 3-5). The relationships in the path sequence must be selected from the set of relationship types, and the sequence must conform to the natural textual logic of the set target logic template (for example, the sequence of the causal reasoning pattern must be from cause to effect). Please output in JSON format, including the fields: 'Template Name', 'Logical Target Description', and 'Valid Path Sequence'.

[0054] (2) Input the second prompt word into the first language model, guide the first language model to autonomously plan a coherent and meaningful topological walking path based on the semantics of the relational types of directed edges in the existing knowledge graph, and generate one or more legal path sequences (i.e., logic templates) that conform to specific macro-level text logic (such as causal inference, contrast and contradiction, induction and summary). (3) After the logical template is input into the first large language model, the logical template is parsed and its validity is checked by another large language model (e.g., the second large language model) to ensure that the relation types in the logical template sequence actually exist in the first relation type set. After passing the validity check, the logical template is stored in the database, and the generated logical template is sent to the user client for display, so that the user can select a template in the user interface of the client according to the actual needs.

[0055] Before synthesizing the pre-trained corpus, users can specify one or more target logic templates through the user interface. After obtaining the target logic template information returned by the user interface, the system then performs path search on the knowledge graph based on the dual constraints of the target logic template and value entropy.

[0056] Figure 2 This is a schematic diagram of the process for synthesizing pre-training data in one embodiment of this application. For example... Figure 2 As shown, the system extracts triples from multi-source documents in the target knowledge domain and constructs evaluation questions. The target question-answering model is tested using these questions, and the average error rate of each text segment is calculated based on the model's responses to pinpoint the blind spot anchor segment. Simultaneously, a cross-document knowledge graph is constructed based on the extracted triples, mapping the predicates of the triples to their corresponding relation types as labels for the directed edges connecting entity pairs. The value entropy of each directed edge in the knowledge graph is calculated for subsequent path traversal. The entity with the highest frequency of occurrence in each blind spot anchor segment is selected as the anchor entity, and the node corresponding to the anchor entity is used as the path starting point. Under the dual constraints of the average value entropy threshold (i.e., the first threshold) and the user-specified target logic template, path traversal is performed in the knowledge graph to obtain at least one candidate target path. Based on each target path chain, the original text statements to which the entity pairs in the path belong, the blind spot anchor segment corresponding to the path starting point, and the target logic template corresponding to the path, a third prompt word is constructed. Using the first language model, cross-document analysis, reasoning, and information fusion are performed based on the third cue word to ultimately generate logically coherent, high-value long-text pre-training data.

[0057] As one implementation of this application, a first language model fuses the text sentences belonging to the blind anchor paragraphs and all entity pairs contained in the target path according to the target path to generate pre-training data for the target question-answering model, including: Based on each entity pair contained in the target path, extract the text statement to which the entity pair belongs from the document to be processed; Based on the target path and the corresponding target logic template, the blind anchor point paragraph to which the starting point of the target path belongs, and the text statements to which all entity pairs in the target path belong, a third prompt word is constructed. The third prompt word is input into the first large language model, so that the first large language model performs fusion reasoning on the blind anchor paragraph and all text sentences based on the constraints of the target logic template and the target path, and generates text paragraphs for pre-training the target question answering model.

[0058] In one embodiment, using the target paths obtained from knowledge graph search as a framework, a first large language model is used to fuse the text statements belonging to each entity pair in the path with the blind anchor paragraphs corresponding to the starting point of the path to generate pre-training corpus.

[0059] Optionally, before text data fusion, logical consistency checks are performed on all target paths using methods such as rule engines, logical reasoning (e.g., first-order logic, ontology consistency checks), path queries, or subgraph matching. Specifically, explicit conflict detection is performed on target paths using graph query languages ​​(e.g., SPARQL) or rule engines, based on the knowledge graph structure and predefined rules. This includes: temporal consistency checks (e.g., transitivity checks on time-related relationships), cardinality constraint checks (e.g., the same entity cannot have mutually exclusive attribute values), and type constraint checks (e.g., certain relationships are only allowed to appear between entities of specific types). Target paths with explicit conflicts are removed, and the remaining target paths are used for pre-training corpus synthesis.

[0060] In one embodiment, semantic redundancy identification and filtering are further performed on the target paths that pass explicit conflict detection. Specifically, the degree of overlap of the entity sets contained in each of the remaining target paths is calculated using Jacaran similarity. If the Jacaran similarity of two paths is higher than a preset threshold (e.g., 0.9), it indicates that the two target paths are highly similar semantically. Therefore, removing one of the target paths in this case can further improve the information density of the final synthesized pre-training corpus.

[0061] After explicit conflict detection, pre-trained data synthesis is performed for each retained target path. First, for each entity pair in the path, the original text statement belonging to that entity pair is extracted from the document to be processed. Based on the extracted text statement, the blind anchor paragraph to which the starting point of the target path belongs, and the target path chain, a third prompt word is constructed, including: role assignment, data generation requirements, output format requirements, etc. When the user specifies a target logic template, in addition to the extracted text statement, blind anchor paragraph, and target path chain, the corresponding target logic template is also combined to construct the third prompt word. The following is a partial example of constructing the third prompt word in a real-world scenario: You are a professional in-depth content analysis expert and pre-trained corpus generator. Your task is to generate a long text analysis document with a macro-logical structure and coherent arguments, based on provided basic facts (triples) and reference texts, strictly following the specified [target logical pattern].

[0062] [Input Information]: Reference original text excerpts: {Original Text 1} {Original Text 2}...... Cross-document logical path (knowledge triple sequence): {triple 1}{triple 2}...... Target logic pattern requirements: {Specific logical pattern name and its defined argument structure}; (e.g., Cultural archetype vs. commercial adaptation comparison pattern: must include three parts: anchor knowledge introduction, cross-document correlation analysis, logical deduction and conclusion) [Generation Requirements]: Structural Constraints: Please strictly adhere to the argumentative structure specified in the [Target Logic Pattern] and do not arbitrarily alter the logical flow of the text. Ensure that the text contains in-depth causal reasoning, contrasting contradictions, or inductive summaries, rather than simply presenting a straightforward narrative; Information fusion: The relationships and entities in the [target path] and the core information in the [reference text excerpt] are naturally and seamlessly integrated into the argument of the long text, and all the provided triple information must be covered; Prohibited behaviors: Generating short question-and-answer (QA) content is strictly prohibited; mechanically listing triples is strictly prohibited; and expressions containing explicit prompts such as "based on triples..." are strictly prohibited. Word count and quality: The generated long text should be logically rigorous, semantically coherent, and demonstrate a deep analytical ability regarding cross-document knowledge connections, with a word count of no less than 500 words; please directly output the generated long analysis document content.

[0063] The constructed third prompt word is input into the first language model. Based on the third prompt word, the first language model performs correlation analysis on the input cross-document sentences and performs logical reasoning to derive conclusions not explicitly stated in the document to be processed. Finally, the first language model fuses the original text sentences, blind anchor paragraphs, and the reasoned conclusions to generate long text data that can be used for continuous pre-training of the target question answering model.

[0064] In this embodiment, both the traditional knowledge graph-based heuristic sampling scheme and the data synthesis scheme provided in this application are used to synthesize pre-training corpora based on multiple documents to be processed in the same knowledge domain. The generated pre-training data is as follows: (1) Example of a long text section synthesized using this scheme: According to relevant research on the genealogy of mythological figures, Li Jing, the Pagoda-Bearing Heavenly King, clearly possessed the authority to "command the heavenly soldiers and control the dragon gods" in his duties in the Heavenly Court, and the Four Sea Dragon Kings were his subordinate gods in the administrative hierarchy (this is a factual statement introduced by anchor knowledge). However, in the narrative construction of the film "Ne Zha", the above hierarchical relationship was intentionally weakened. The Four Sea Dragon Kings were portrayed as calamity-level villains with independent threatening capabilities, while the focus of Li Jing's image shifted from the military commander of the Heavenly Court to the guardian of Chen Tang Pass and a tragic father (this is a logical comparison of cross-document association). This adaptation strategy is not an isolated creative choice, but is consistent with the core theme of "My fate is in my own hands, not in the heavens" established by the previous film "Ne Zha". By dismantling the traditional theocratic order, the film reduces the focus of conflict from the battle between gods and demons to the confrontation between family ethics and individual will, thereby realizing the value reconstruction of classical mythological prototypes in the context of modern film and television industry (this is the conclusion of the model's causal deduction).

[0065] (2) Using a traditional knowledge graph-based heuristic sampling scheme, the generated pre-training data example is: Li Jing, the Pagoda-Bearing Heavenly King, commands the Four Dragon Kings of the Heavenly Court. The film "Ne Zha" changed the Four Dragon Kings of the Heavenly Court into villains. Li Jing became the guardian of Chen Tang Pass. Ne Zha's value is "My fate is in my own hands, not in the heavens."

[0066] It can be seen that traditional pre-training corpus synthesis schemes simply perform linear text concatenation or mechanical translation of triples on multi-hop paths, resulting in fragmented and logically rigid pre-training data. In contrast, the long texts synthesized using this scheme contain complex structures of factual statements, logical comparisons, and causal deductions, effectively training the target question-answering model's ability to model macroscopic logical threads within long contexts, significantly improving data utilization efficiency and model generalization performance during the pre-training stage.

[0067] In one embodiment, after the first language model fuses text statements according to each target path detected by explicit conflict to obtain a long pre-training corpus (natural language text), a second language model is further invoked to determine factual contradictions or logical conflicts in the natural language text output by the first language model. The second language model identifies implicit semantic inconsistencies in the natural language text generated by the first language model based on factual statements and context within the target paths, outputs descriptions of the identified conflicts, and simultaneously outputs corrected suggested text.

[0068] This approach uses the cognitive ability localization of the target question-answering model as a prerequisite for synthesizing pre-training data, introduces multi-dimensional value entropy as a path traversal constraint, and controls the generation of long texts with a specified logical template. This enables the automatic synthesis of high-value long-text pre-training corpora, solving the problems of blind synthesis, lack of diversity, rigid logic, and fragmentation in traditional approaches.

[0069] To verify the effectiveness of this scheme, this embodiment also conducts comparative experiments with traditional heuristic sampling schemes (using random walks or frequency sampling) based on multiple literatures in the biomedical field. The input configuration of this system in the experiments is as follows: Document Collection: A corpus containing 1000 biomedical documents; Logical pattern selection: Causal reasoning pattern; Target entropy value (first threshold): .

[0070] The execution process is as follows: (1) The system extracted approximately 1.5 million triples from 1,000 documents; (2) Construct assessment questions and call the target question-and-answer model to answer them, automatically marking approximately 23,000 blind spot anchor points; (3) Construct a cross-document knowledge graph containing approximately 800,000 entities and 3 million directed edges, and automatically label the corresponding relation types for all relation edges; (4) Calculate the value entropy of all relation types. Starting with 23,000 anchor entities, automatically perform path walking based on causal reasoning patterns and the first threshold to generate approximately 47,000 candidate target paths; (6) After logical consistency verification, approximately 12,000 high-value paths were retained; (7) The first language model was called to synthesize approximately 12,000 long text pre-training corpora with causal reasoning structures in batches.

[0071] Based on experimental comparisons, the coverage of knowledge not mastered by the model in long text data synthesized using this method is more than 40% higher than that of traditional methods. Furthermore, with the same training computing power budget, the long text synthesized using this method requires fewer samples for continuous pre-training (reducing a significant amount of redundant information), improving training efficiency by approximately 10%-20% compared to traditional methods. Moreover, the accuracy of the trained target question-answering model in the domain-specific knowledge question-answering task is improved by approximately 5%-8% compared to traditional methods, and the accuracy in logical reasoning tasks is improved by approximately 3%-5%.

[0072] Based on the same inventive concept, one embodiment of this application provides a pre-trained data synthesis system based on knowledge blind spots and value entropy. Figure 3 This is a schematic diagram of a pre-trained data synthesis system 100 based on knowledge blind spots and value entropy, as proposed in an embodiment of this application. Figure 3 As shown, the system includes: The blind spot localization module 101 is configured to construct multiple evaluation questions based on the document to be processed in the target knowledge domain; input the evaluation questions into the target question answering model, and determine the blind spot anchor point paragraph in the document to be processed based on the answer output by the target question answering model; The knowledge graph construction module 102 is configured to construct a cross-document knowledge graph based on the entities and relationships in all documents to be processed; the nodes in the knowledge graph represent entities, and the directed edges represent the relationship types between two entities. The relationship filtering module 103 is configured to calculate the value entropy of each directed edge in the knowledge graph based on the error rate of the answers output by the knowledge graph and the target question answering model; the higher the value entropy of the directed edge, the better the type diversity of the directed edge, the greater the connection breadth, and the higher the value of the knowledge blind spot; taking the entity in the blind spot anchor point paragraph as the starting point, the knowledge graph is searched to obtain at least one target path with an average value entropy greater than a first threshold; The synthesis module 104 is configured to use a first language model to fuse the text statements belonging to the blind anchor paragraph and all entity pairs contained in the target path according to the target path, thereby generating pre-training data for the target question answering model.

[0073] In one embodiment of this application, the blind spot localization module 101 is configured to construct multiple evaluation questions based on the document to be processed in the target knowledge domain, including: Multiple triples are extracted from the document to be processed in the target knowledge domain, and the text statement and text paragraph to which each triple belongs are recorded; wherein each triple consists of a corresponding subject, predicate and object; The first prompt word is constructed based on the triple and the text paragraph to which it belongs; Based on the first prompt word, a multiple-choice question is constructed using the first large language model and identified as the evaluation question corresponding to the triple; wherein, the incorrect option in the multiple-choice question belongs to the text paragraph corresponding to the triple.

[0074] As one embodiment of this application, the blind spot localization module 101 is configured to determine the blind spot anchor point paragraph in the document to be processed based on the answer output by the target question-answering model, including: Based on the answers output by the target question answering model and the correct answers to the corresponding evaluation questions, as well as the text paragraphs corresponding to each evaluation question, the average error rate of each text paragraph in the document to be processed is calculated. Text paragraphs with an average error rate greater than a second threshold are selected from the documents to be processed and identified as blind spot anchor paragraphs of the target question answering model.

[0075] As one embodiment of this application, the relationship filtering module 103 is configured to calculate the value entropy of each directed edge in the knowledge graph based on the error rate of the answers output by the target question-answering model, including: Based on the total number of directed edges in the knowledge graph and the frequency of occurrence of the target relation type corresponding to the target directed edge, the probability of occurrence of the target relation type is calculated and determined as the rarity factor. Based on the frequency of occurrence of the two target entities connected by the directed edge in the document to be processed, and the average error rate of each text paragraph in the document to be processed, the average error rate of the two target entities is calculated and determined as the knowledge blind spot factor. The number of all entity pairs connected by directed edges of the target relation type in the knowledge graph is counted and determined as the diversity factor. The value entropy of the target directed edge is calculated based on the rarity factor, the knowledge blind spot factor, and the diversity factor.

[0076] As one embodiment of this application, the relationship filtering module 103 is configured to take the entities in the blind anchor paragraphs as the starting point, search the knowledge graph, and obtain at least one target path with an average value entropy greater than a first threshold, including: adding the node corresponding to the entity with the highest frequency of occurrence in each blind anchor paragraph to the starting point set. Using each node in the starting point set as a starting point, the knowledge graph is searched to obtain at least one target path, including: searching the knowledge graph for nodes connected to the most recently added node in the current target path as candidate nodes; calculating the average value entropy of the target path after the candidate node is added to the current target path, and comparing it with a first threshold; if the average value entropy is greater than the first threshold, the candidate node is added to the current target path.

[0077] As one embodiment of this application, the system further includes a template construction module configured to perform the following steps: extracting the relation types corresponding to each directed edge from the knowledge graph to construct a first relation type set; constructing a second prompt word based on the first relation type set; inputting the second prompt word into the first large language model to generate multiple logical templates that match the document to be processed, and displaying them on the user interface; the logical template is a logical association sequence composed of multiple relation types; The relationship filtering module 103 is configured to, based on the target logical template specified by the user in the user interface, obtain all relationship types of the target logical template and construct a second relationship type set; and, if the average value entropy is greater than the first threshold, detect whether the relationship type of the directed edge corresponding to the candidate node belongs to the second relationship type set; and if the relationship type of the directed edge corresponding to the candidate node belongs to the second relationship type set, add the candidate node to the current target path.

[0078] In one embodiment of this application, the synthesis module 104 is specifically configured to perform the following steps: Based on each entity pair contained in the target path, extract the text statement to which the entity pair belongs from the document to be processed; Based on the target path and the corresponding target logic template, the blind anchor point paragraph to which the starting point of the target path belongs, and the text statements to which all entity pairs in the target path belong, a third prompt word is constructed. The third prompt word is input into the first large language model, so that the first large language model performs fusion reasoning on the blind anchor paragraph and all text sentences based on the constraints of the target logic template and the target path, and generates text paragraphs for pre-training the target question answering model.

[0079] Based on the same inventive concept, one embodiment of this application provides an electronic device. Figure 4 This is a schematic diagram of an electronic device according to an embodiment of this application. Figure 4As shown, the electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When executed by the processor, the computer program implements the steps in the pre-trained data synthesis method based on knowledge blind spots and value entropy as described in any of the above embodiments of this application.

[0080] Regarding the systems in the above embodiments, the specific methods by which each module performs its operations have been described in detail in the embodiments related to the method, and will not be elaborated upon here. The above descriptions are merely preferred embodiments of this application and are not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

[0081] For the sake of simplicity, the method embodiments are described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and components involved are not necessarily essential to this application.

[0082] Those skilled in the art will understand that embodiments of this application can be provided as methods, apparatus, or computer program products. Therefore, embodiments of this application can take the form of entirely hardware embodiments, entirely software embodiments, or embodiments combining software and hardware aspects. Furthermore, embodiments of this application can take the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0083] This application describes embodiments with reference to flowchart illustrations and / or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0084] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing terminal device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0085] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal equipment, causing a series of operational steps to be performed on the computer or other programmable terminal equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable terminal equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0086] Although preferred embodiments of the present application have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, this application is to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the embodiments of this application.

[0087] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal device. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal device that includes said element.

[0088] The above provides a detailed description of the pre-training data synthesis method and system based on knowledge blind spots and value entropy provided in this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A method for synthesizing pre-trained data based on knowledge blind spots and value entropy, characterized in that, include: Multiple evaluation questions are constructed based on the documents to be processed in the target knowledge domain; The evaluation questions are input into the target question-answering model, and the blind anchor point paragraphs in the document to be processed are determined based on the answers output by the target question-answering model. Based on the entities and relationships in all documents to be processed, a cross-document knowledge graph is constructed; the nodes in the knowledge graph represent entities, and the directed edges represent the relationship types between two entities. Based on the knowledge graph and the error rate of the answers output by the target question answering model, the value entropy of each directed edge in the knowledge graph is calculated; the higher the value entropy of the directed edge, the better the type diversity of the directed edge, the greater the connection breadth, and the higher the value of the knowledge blind spot. Using the entities in the blind zone anchor segment as the starting point, search the knowledge graph to obtain at least one target path with an average value entropy greater than the first threshold. The first language model fuses the text sentences belonging to the blind anchor paragraphs and all entity pairs contained in the target path according to the target path, generating pre-training data for the target question answering model.

2. The pre-training data synthesis method based on knowledge blind spots and value entropy according to claim 1, characterized in that, Multiple evaluation questions are constructed based on the documents to be processed in the target knowledge domain, including: Multiple triples are extracted from the document to be processed in the target knowledge domain, and the text statement and text paragraph to which each triple belongs are recorded; wherein each triple consists of a corresponding subject, predicate and object; The first prompt word is constructed based on the triple and the text paragraph to which it belongs; Based on the first prompt word, a multiple-choice question is constructed using the first large language model and identified as the evaluation question corresponding to the triple; wherein, the incorrect option in the multiple-choice question belongs to the text paragraph corresponding to the triple.

3. The pre-training data synthesis method based on knowledge blind spots and value entropy according to claim 1, characterized in that, Based on the answer output by the target question-answering model, blind anchor point paragraphs in the document to be processed are determined, including: Based on the answers output by the target question answering model and the correct answers to the corresponding evaluation questions, as well as the text paragraphs corresponding to each evaluation question, the average error rate of each text paragraph in the document to be processed is calculated. Text paragraphs with an average error rate greater than a second threshold are selected from the documents to be processed and identified as blind spot anchor paragraphs of the target question answering model.

4. The pre-training data synthesis method based on knowledge blind spots and value entropy according to claim 3, characterized in that, Based on the knowledge graph and the error rate of the answers output by the target question-answering model, the value entropy of each directed edge in the knowledge graph is calculated, including: Based on the total number of directed edges in the knowledge graph and the frequency of occurrence of the target relation type corresponding to the target directed edge, the probability of occurrence of the target relation type is calculated and determined as the rarity factor. Based on the frequency of occurrence of the two target entities connected by the directed edge in the document to be processed, and the average error rate of each text paragraph in the document to be processed, the average error rate of the two target entities is calculated and determined as the knowledge blind spot factor. The number of all entity pairs connected by directed edges of the target relation type in the knowledge graph is counted and determined as the diversity factor. The value entropy of the target directed edge is calculated based on the rarity factor, the knowledge blind spot factor, and the diversity factor.

5. The pre-training data synthesis method based on knowledge blind spots and value entropy according to claim 1, characterized in that, Using entities in the blind zone anchor segments as starting points, the knowledge graph is searched to obtain at least one target path with an average value entropy greater than a first threshold, including: adding the node corresponding to the entity with the highest frequency of occurrence in each blind zone anchor segment to the starting point set; Using each node in the starting point set as a starting point, the knowledge graph is searched to obtain at least one target path, including: searching the knowledge graph for nodes connected to the most recently added node in the current target path as candidate nodes; calculating the average value entropy of the target path after the candidate node is added to the current target path, and comparing it with a first threshold; if the average value entropy is greater than the first threshold, the candidate node is added to the current target path.

6. The pre-training data synthesis method based on knowledge blind spots and value entropy according to claim 5, characterized in that, Before searching the knowledge graph using entities in the aforementioned blind zone anchor paragraphs as starting points, the process also includes: Extract the relation types corresponding to each directed edge from the knowledge graph to construct a first relation type set; construct a second prompt word based on the first relation type set; input the second prompt word into the first large language model to generate multiple logical templates that match the document to be processed and display them on the user interface; the logical template is a logical association sequence composed of multiple relation types; based on the target logical template specified by the user on the user interface, obtain all relation types of the target logical template and construct a second relation type set; If the average value entropy is greater than the first threshold, the method further includes: Detect whether the relation type of the directed edge corresponding to the candidate node belongs to the second relation type set; if the relation type of the directed edge corresponding to the candidate node belongs to the second relation type set, add the candidate node to the current target path.

7. The pre-training data synthesis method based on knowledge blind spots and value entropy according to claim 6, characterized in that, The first language model, based on the target path, fuses the text sentences belonging to the blind anchor paragraphs and all entity pairs contained in the target path to generate pre-training data for the target question-answering model, including: Based on each entity pair contained in the target path, extract the text statement to which the entity pair belongs from the document to be processed; Based on the target path and the corresponding target logic template, the blind anchor point paragraph to which the starting point of the target path belongs, and the text statements to which all entity pairs in the target path belong, a third prompt word is constructed. The third prompt word is input into the first large language model, so that the first large language model performs fusion reasoning on the blind anchor paragraph and all text sentences based on the constraints of the target logic template and the target path, and generates text paragraphs for pre-training the target question answering model.

8. A pre-trained data synthesis system based on knowledge blind spots and value entropy, characterized in that, For performing the method as described in any one of claims 1-7, comprising: The blind spot localization module is configured to construct multiple evaluation questions based on the document to be processed in the target knowledge domain; input the evaluation questions into the target question answering model, and determine the blind spot anchor point paragraph in the document to be processed based on the answer output by the target question answering model; The knowledge graph construction module is configured to build a cross-document knowledge graph based on the entities and relationships in all documents to be processed; the nodes in the knowledge graph represent entities, and the directed edges represent the relationship types between two entities. The relationship filtering module is configured to calculate the value entropy of each directed edge in the knowledge graph based on the error rate of the answers output by the target question answering model. The higher the value entropy of the directed edge, the better the type diversity of the directed edge, the greater the connection breadth, and the higher the value of the knowledge blind spot. Taking the entity in the blind spot anchor segment as the starting point, the knowledge graph is searched to obtain at least one target path with an average value entropy greater than a first threshold. The synthesis module is configured to use a first language model to fuse the text statements belonging to the blind anchor paragraphs and all entity pairs contained in the target path according to the target path, thereby generating pre-training data for the target question answering model.

9. An electronic device, characterized in that, It includes a processor, a memory, and a program or instructions stored in the memory and executable on the processor, wherein the program or instructions, when executed by the processor, implement the steps of the method as described in any one of claims 1-7.

10. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions that, when executed by a processor, implement the steps of the method as described in any one of claims 1-7.