Method and system for generating question analysis data, and medium
By constructing a propositional reasoning graph and dividing it into atomic logic nodes, generating candidate content and performing multi-dimensional verification, the problem of lack of structured representation of parsed data in existing technologies is solved, thereby improving logical stability and computational efficiency.
Patent Information
- Application Number
- CN202611252680.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-18
- Publication Date
- 2026-11-20
AI Technical Summary
Existing technologies lack structured intermediate representations for generating question analysis content, resulting in unclear logical breakpoints, untraceable reasoning steps, and significant overhead from repeated data transmission and computation.
By constructing a propositional reasoning graph, the parsed data is divided into multiple atomic logic nodes with dependencies. The candidate content generated by the nodes is verified in multiple dimensions to determine the target invalid closure. Only the data within the closure is locally regenerated.
It improves the logical stability and traceability of parsed data, reduces redundant calculations and network transmission overhead, and reduces inconsistencies between graphics and text and multiple error interference items.
Smart Images

Figure CN123139992A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of natural language processing and artificial intelligence, specifically to a method, system, and medium for generating question parsing data. Background Technology
[0002] Currently, in the fields of online education and intelligent tutoring, the generation of question analysis content typically relies on large language models to directly generate complete questions and standard answers end-to-end. However, this generation method has significant technical drawbacks: on the one hand, the model's output analysis process is often linear natural language text, lacking machine-verifiable structured intermediate representations, leading to ambiguous logical breakpoints, untraceable reasoning steps, and problems such as inconsistencies between text and graphics or multiple errors in distractors; on the other hand, when the generated analysis content fails quality verification, existing solutions usually need to resend the complete question context and trigger a complete regeneration, resulting in a large amount of repetitive data transmission, wasted model inference computing power, and image rendering overhead.
[0003] Therefore, there is an urgent need for a method to generate problem parsing data that can accurately locate the range of errors and reduce the overhead of repeated calculations while ensuring the structured and traceable nature of the parsing data. Summary of the Invention
[0004] In view of the deficiencies in the existing technology, the purpose of this invention is to provide a method, system and medium for generating question analysis data.
[0005] A method for generating question analysis data according to the present invention includes: Obtain the parsing data of the target question, construct a propositional reasoning graph based on the parsing data, and divide the parsing data into multiple atomic logic nodes with dependencies based on the propositional reasoning graph; For each atomic logic node, corresponding candidate content is generated, and multi-dimensional verification is performed on the candidate content. In response to the failure of the multi-dimensional verification, the target failure closure is determined based on the dependency relationship between the atomic logic nodes and the verification result, and only the data within the target failure closure is partially regenerated.
[0006] Preferably, the step of constructing a propositional reasoning graph based on the parsed data, and dividing the parsed data into multiple atomic logic nodes with dependencies based on the propositional reasoning graph, includes: Candidate propositions are generated based on the parsed data, and an admission determination is performed on the candidate propositions based on the credibility of the evidence, so as to construct the proposition reasoning graph; The logical breakpoint score is determined based on semantic leaps, dependency increments, changes in reasoning operations, and changes in evidence sets between adjacent candidate propositions. The initial breakpoint is determined based on the logical breakpoint score, and the nodes corresponding to the initial breakpoint are recursively split or merged according to the node atomicity index to obtain the atomic logical nodes.
[0007] Preferably, the formula for calculating the credibility of the evidence is:
[0008] in, For the first The credibility of evidence for each candidate proposition The sequence number of the candidate proposition; The probability implied by the text. For the rules to satisfy the proportion, For image and text alignment, , and The weighting coefficients and ; The formula for calculating the logical breakpoint score is as follows:
[0009] in, For the first Scoring of logical breakpoints at each candidate proposition. For semantic transitions between adjacent candidate propositions, To rely on incremental, For the change of reasoning operation, The change in the set of evidence. to Non-negative weights For bias, This is the Sigmoid function.
[0010] Preferably, the multi-dimensional verification of the candidate content includes: Semantic implication verification, rule constraint verification, and data pattern verification are performed on the candidate content respectively; The determination of the target failure closure based on the dependencies between the atomic logic nodes and the verification results includes: Encode each verification result into a field-level error location vector; The fields corresponding to the non-zero components in the field-level error location vector, as well as the subsequent fields that depend on the fields, are determined as the candidate failure set; Based on the field version summary, remove fields whose summaries have not changed from the candidate failure set to obtain the target failure closure.
[0011] Preferably, the formula for calculating the field version summary is:
[0012] in, For fields Version summary, Used as a field identifier; For hash functions, Indicates string concatenation; For field values, For the set of evidence identifiers, For a set of dependent identifiers, For model version; The step of performing local regeneration only on the data within the target failure closure includes: The target failure closure, necessary ancestor subgraph, error code, and missing constraints are sent only to the generative model, and the length of the locally regenerated input is... satisfy:
[0013] in, The length of the locally regenerated input. Indicates the data length; The target failure closure, The node number; This is the necessary ancestor subgraph. The missing constraint is referred to here.
[0014] Preferably, generating corresponding candidate content for the atomic logical node includes: For the atomic logic nodes to be tested, extract the correct items and select a single counterfactual transformation operator to generate candidate interference items; The single counterfactual transformation operator includes one of the following: premise substitution, omission of necessary conditions, reversal of relation direction, mismatch of theorem application conditions, numerical boundary perturbation, or addition / deletion of graphical constraints. Each candidate interference item is bound to an error code and a violated constraint. Candidate interference items containing two or more independently violated constraints are discarded.
[0015] Preferably, the quality score of the candidate interference item The calculation formula is:
[0016] in, Candidate interference items Quality rating For surface rationality, The semantic similarity between the candidate interference item and the correct item. For single-error satisfaction, To ensure coverage of the current node's target, To ensure consistency between the text and images, Punishment for leaking answers The degree of repetition among options; margin for a unique answer. The calculation formula is:
[0017] in, For the first The unique answer margin for each node For the first The correct item for each node, For the first The node of the first One candidate interference item; For the scoring function, The score for the correct item is... The maximum score for each candidate interference item is determined; when the margin of the unique answer is lower than a preset threshold, the single counterfactual transformation operator is reselected.
[0018] Preferably, generating corresponding candidate content for the atomic logic node further includes generating a graphic and text scene, wherein the generated graphic and text scene includes: Construct a basic scene diagram from the question image, and generate a set of scene diagram differences relative to the basic scene diagram for each option; A target scene map is obtained based on the base scene map and the scene map difference set. The target scene map is then rendered and read back to obtain a read-back scene map. The consistency between the target scene graph and the readback scene graph is calculated based on the importance of the relationship. In response to the consistency being lower than a preset threshold, only the layer corresponding to the scene graph difference set is re-rendered.
[0019] According to the present invention, a question parsing data generation system includes: The node segmentation module is used to obtain the parsing data of the target question, construct a propositional reasoning graph based on the parsing data, and segment the parsing data into multiple atomic logic nodes with dependencies based on the propositional reasoning graph; The content verification module is used to generate corresponding candidate content for the atomic logical node and perform multi-dimensional verification on the candidate content. The local recalculation module is used to respond to the failure of the multi-dimensional verification, determine the target failure closure based on the dependency relationship between the atomic logic nodes and the verification result, and perform local regeneration only on the data within the target failure closure.
[0020] According to the present invention, a computer-readable storage medium is provided thereon storing a computer program, which, when executed by a processor, implements the method for generating question analysis data.
[0021] Compared with the prior art, the present invention has the following beneficial effects: 1. This application constructs a propositional reasoning graph and divides the parsed data into atomic logic nodes with dependencies. Each node is bound to the source of evidence and the reasoning operation. Conclusions lacking source evidence cannot enter subsequent nodes, thereby improving the logical stability and traceability of the output data.
[0022] 2. This application determines the target failure closure based on node dependency relationship, performs local regeneration only on the data within the closure, reuses the already verified cache outside the closure, avoids recalculating the entire problem when verification fails, and reduces the amount of redundant calculation and network transmission overhead.
[0023] 3. This application generates interference items through a single counterfactual transformation operator, with each interference item corresponding to only a single interpretable error; the graphic and text options share the basic scene graph and perform post-rendering readback comparison, reducing the problems of inconsistency between graphics and text and multiple error interference items. Attached Figure Description
[0024] Other features, objects, and advantages of the present invention will become more apparent from the following detailed description of non-limiting embodiments with reference to the accompanying drawings: Figure 1 This is a schematic diagram of the data flow architecture of the question parsing and interactive generation system according to an embodiment of this application; Figure 2 This is a flowchart of the multimodal question parsing, interactive generation, and verification method according to an embodiment of this application; Figure 3 This is a schematic diagram illustrating the construction of auxiliary lines for geometric problems and the relationship between points in an embodiment of this application; Figure 4 This is a schematic diagram of an isosceles right triangle geometry problem with auxiliary line CD, according to an embodiment of this application. Figure 5 This is a schematic diagram of the interactive options interface for constructing geometric auxiliary lines according to an embodiment of this application; Figure 6 This is a schematic diagram illustrating the options for constructing auxiliary lines in a geometric problem according to an embodiment of this application. Detailed Implementation
[0025] The present invention will now be described in detail with reference to specific embodiments. These embodiments will help those skilled in the art to further understand the present invention, but do not limit the invention in any way. It should be noted that those skilled in the art can make several changes and improvements without departing from the concept of the present invention. These all fall within the protection scope of the present invention.
[0026] like Figure 1 and Figure 2 As shown, this embodiment provides a method for generating problem analysis data, executed by a backend server, including steps S1 to S8. The server includes at least one processor, memory, graph structure processing unit, model calling interface, rule constraint discriminator, and cache unit. Although this embodiment uses geometry problems as an example, this method is also applicable to the generation of analysis data in other disciplines such as algebra and physics.
[0027] Step S1: Obtain the parsed data of the target question and establish a traceable multimodal question object.
[0028] The system reads the question stem, supplementary text, standard explanation, answer, question image, and knowledge tags from the question bank, and configures the source identifier, type, and scope for each data block. It performs integrity checks on the data blocks: automatic generation is terminated if the question stem or standard explanation is missing; a missing flag is written and the text processing path is preserved if the question image is missing.
[0029] Calculate the input summary:
[0030] in For input summary, For hash functions, This indicates string concatenation. As the question stem, For formula, The title image is shown below. For standard analysis, For knowledge tags, This is the parser version. This summary is used to distinguish between content changes and parser version changes.
[0031] Normalization is performed on each modality separately. Sentence segmentation, pronoun resolution, terminology normalization, and negation range labeling are performed on the question stem and parsing. Formulas are converted into abstract syntax trees that preserve operator precedence, subscripts, superscripts, and the structure of both sides of the equation, and formula nodes are backlinked to the original character range. Primitive detection, character recognition, and coordinate normalization are performed on the question image to obtain the sets of points, lines, angles, regions, labels, and their confidence scores.
[0032] Establish cross-modal bidirectional anchoring relationships. Create records for each element.
[0033] in For element records, For element identification, For feature type, For element attributes, Points to the original text or formula range. Point to the coordinates or element identifiers in the title image. To extract confidence scores, anchoring scores are calculated based on name similarity, spatial adjacency, and relational consistency. When the score reaches a threshold, bidirectional anchoring is established; when it is below the threshold, the status remains pending verification; when it is above the threshold but there is a one-to-many conflict, subsequent conflict processing begins.
[0034] by Figure 3 Taking the geometry problem shown as an example, we extract graphic elements such as points A to F, line segments AC, BC, and AB, and anchor them bidirectionally with the text entities "point A" and "line segment AC" in the problem stem, so that each symbol can be traced back to the source of the graphic text in the subsequent reasoning process.
[0035] Step S2: Construct a propositional reasoning graph based on the parsed data.
[0036] Candidate propositions are extracted according to the statement order in standard parsing, and compound statements are broken down into candidate propositions where one main reasoning operation corresponds to one conclusion:
[0037] in For the first One candidate proposition, The sequence number of the candidate proposition. As the premise set, For reasoning operations, In conclusion, This is a set of evidence identifiers. For implicit premises, backtrack to the most recent explicit evidence; if backtracking is not possible, write the missing constraint identifier.
[0038] Admission criteria for candidate propositions are determined based on the credibility of the evidence. (Credibility of evidence) The calculation formula is:
[0039] in, For the first The credibility of evidence for each candidate proposition Let be the textual implication probability, representing the standard analytical approach to the conclusion. The level of support; For the rule to satisfy the proportion, i.e., the premise After operation Conclusion The ratio of the number of constraints already satisfied to the number of constraints required; The text-image alignment score represents the degree of matching between the text entity referenced in the proposition and the graphic element in the title image. , and The weighting coefficients and .
[0040] In a preferred embodiment of this example, Take 0.35, Take 0.40, Take 0.25. When Not less than the preset threshold (Preferred value is 0.78) and when there are no unresolved missing constraints, the candidate propositions are written into the set of valid propositions to construct the proposition reasoning graph; otherwise, the conflict handling or missing proof completion process is initiated.
[0041] For example, when dealing with the proposition "CD=AD after connecting CD", if the evidence of the "hypotenuse median theorem" is missing, only the proposition and its missing constraints are resent. After the missing constraints are filled in, the admission score is recalculated to avoid retransmitting the entire question data.
[0042] Step S3: Based on the propositional reasoning graph, the parsed data is divided into multiple atomic logic nodes with dependencies.
[0043] Calculate logical breakpoint scores for adjacent candidate propositions. :
[0044] in, The semantic transition between adjacent candidate propositions is calculated as follows: ; The dependency increment is the normalized ratio of the number of new dependencies to the total number of current dependencies. The value is 1 if the main reasoning operation changes, and 0 otherwise. The change in the evidence set is calculated as follows:
[0045] to Non-negative weights For bias, The Sigmoid function is used. Initial breakpoints are determined based on logical breakpoint scoring, with an adaptive threshold.
[0046] in, The breakpoint threshold, The average score for all breakpoints. The standard deviation of all breakpoint scores. For adjustment coefficients, This is a truncation function that restricts the calculation result to between 0.45 and 0.75. When Furthermore, a breakpoint is set when the candidate segment reaches the minimum information length, and then the node atomicity index is used as the basis for further analysis. Recursively split or merge the nodes corresponding to the initial breakpoints until all nodes meet the atomicity threshold or the maximum number of iterations is reached.
[0047]
[0048] in, For the first Atomicity index of candidate nodes The sequence number of the candidate node; The degree of simplicity of the main inference operations within a node. For internal propositional connectivity density, The proportion of unclosed dependencies across nodes. Penalty items exceeding the preset length, to The weights are non-negative. When When the value is below a preset threshold (preferably 0.70), the maximum value within the node is... Continue splitting at the point; merge when adjacent nodes share the same conclusion and their boundary scores are below a preset merging threshold (preferably 0.35). Repeat the above process until all nodes meet the atomicity threshold or the maximum number of iterations is reached.
[0049] Calculate the dependency strength between nodes :
[0050] in, For the first The node to the first The dependency strength of each node. and The node number; For the first The conclusion vector of each node With the The premise vector of each node Cosine similarity; For conclusion Regarding the premise The degree of implication; For evidence identifier set and Jaccard similarity; , and The weights are non-negative. When Dependency edges are established when the number of dependent edges is not less than a preset threshold. After establishing dependency edges, topological sorting is performed; if a cycle occurs, the edge with the lowest dependency strength and no explicit evidence referenced within the cycle is removed first, and only the affected nodes are recalculated.
[0051] by Figure 3 Taking the geometry problem shown as an example, it is divided into four atomic logic nodes N1 to N4, which correspond to "connecting auxiliary line CD", "deriving CD=AD and ∠DCB=∠A", "selecting SAS to determine congruence", and "obtaining DE=DF", respectively. Acyclic dependency chains are formed between the nodes.
[0052] Step S4: Generate corresponding candidate content for atomic logic nodes.
[0053] For the atomic logic nodes to be tested, correct terms are extracted, and candidate disturbance terms are generated by selecting a single counterfactual transformation operator. The transformation operator includes one of the following: premise substitution, omission of necessary conditions, reversal of relation direction, mismatch of theorem application conditions, numerical boundary perturbation, or addition / deletion of graphical constraints. Each candidate disturbance term is bound to an error code and a violated constraint. Candidate disturbance terms containing two or more independently violated constraints are discarded to ensure that each disturbance term corresponds to only a single interpretable error.
[0054] For example, when generating interference terms for node N1, if a candidate term introduces both a new point and a false vertical relationship, it will be discarded because the number of constraints is not equal to 1.
[0055] Perform quality screening on candidate interference items. Quality score for candidate interference items. The calculation formula is:
[0056] in, Candidate interference items Quality rating Candidate interference items; For surface rationality, The semantic similarity between candidate distractors and correct items. For single-error satisfaction, To ensure coverage of the current node's target, To ensure consistency between the text and images, Punishment for leaking answers The coefficients represent the degree of overlap between options; the coefficients 0.22, 0.18, 0.25, 0.20, 0.15, and 0.10 represent the weights of the corresponding dimensions.
[0057] Unique answer margin The calculation formula is:
[0058] in, For the first The unique answer margin for each node The node number; For the first The correct item for each node, For the first The node of the first One candidate interference item, The index of the candidate interference item; For the scoring function, For the correct answer, score the answer. This represents the maximum score for each candidate interference item.
[0059] In this embodiment, it is preferable to set a quality scoring threshold. When the only answer has margin When this occurs, a new single counterfactual transformation operator is selected to avoid generating overly simple or distracting terms that are equivalent to the correct term.
[0060] Step S5: Generate and validate the graphic scene.
[0061] Construct a basic scene diagram from the title image:
[0062] in This is the basic scene diagram, with subscript 0 representing the original state; For a set of primitives, For a set of relations, This is a set of attributes, and the relationships given in the original question are written into an immutable set of relationships. A set of scene graph differences relative to the base scene graph is generated for each option. ,in Indicates increment, The option number is used. The target scene graph is obtained based on the base scene graph and the scene graph difference set.
[0063] in For the first The target scene diagrams corresponding to each option. This indicates that a set of differences is superimposed on the base scene graph.
[0064] The target scene graph is rendered and read back to obtain the readback scene graph. The consistency between the target scene graph and the readback scene graph is calculated based on the importance of relationships. :
[0065] in, The value for consistency between text and images ranges from 0 to 1. Relationships in the target scene graph. To reread the corresponding relationships in the scene diagram. This is an indicator function; it takes the value 1 when the target relation and the readback relation are inconsistent, and 0 when they are consistent. For relationship Importance weight; This represents the summation of all relationships in the target scene graph. In this embodiment, a consistency threshold is preferably set. .
[0066] If the consistency is lower than a preset threshold, only the layer corresponding to the scene graph difference set will be re-rendered; if the threshold is still not met after 3 consecutive re-renders, it will be downgraded to a vector graphic drawn by validated text options or rules.
[0067] like Figures 4 to 6 As shown, the scene graph corresponding to the correct option "Connect CD" only adds a dashed line CD to the base graph, while the interference options "Connect EF" or "Make a perpendicular line" respectively overlay the corresponding difference primitives, and all options share the frozen base scene graph.
[0068] Step S6: Perform multi-dimensional verification on the candidate content, and perform local regeneration in response to failure of verification.
[0069] Semantic implication verification, rule constraint verification, and data pattern verification are performed on the candidate content. The verification results are encoded into field-level error location vectors. The fields corresponding to the non-zero components of these vectors, along with their dependent subsequent fields, are identified as the candidate failure set. Fields whose summaries remain unchanged are removed from the candidate failure set based on their version summaries to obtain the target failure closure.
[0070] Field Version Summary The calculation formula is:
[0071] in, For fields Version summary, Used as a field identifier; For hash functions, Indicates string concatenation; For field values, For the set of evidence identifiers, For a set of dependent identifiers, This refers to the model version.
[0072] Local regeneration is performed only on the data within the target failure closure, including sending only the target failure closure, necessary ancestor subgraphs, error codes, and missing constraints to the generative model. The input length for local regeneration is... satisfy:
[0073] in, The length of the locally regenerated input. Indicates the data length; For the first The target failure closure of each node. The node number; For necessary ancestor subgraphs, For missing constraints. Full input length. ,in For the complete input length, Enter all the data for the question. It is a directed acyclic graph of atomic knowledge nodes.
[0074] Step S7: Determine subsequent nodes based on user interaction.
[0075] Based on response time and number of prompts Calculate the reliability of the answer :
[0076] in, For users The reliability of the response ranges from 0 to 1; User identification; For response time, For reference response time, This indicates the number of times the message will be displayed. and The attenuation coefficient is... It is a natural exponential function. The likelihood weight is reduced for responses that are answered too quickly, exceed the time limit, or are given multiple prompts, resulting in weighted observations.
[0077] Update the probability of users mastering knowledge tags:
[0078] in, The conditional probability of a user answering correctly. For the answer result ( This indicates that it is correct. (Indicates an error) For users Knowledge tags The current probability of knowledge, For user identification, For knowledge tag identification; For knowledge tags Error rate For knowledge tags The guessing rate. The posterior probability of knowledge is obtained using Bayes' theorem. ,in This is the updated probability of mastery after this answer. Click again. Update the mastery probability after learning transfer, where The probability of final mastery after learning transfer. For knowledge tags The learning transfer rate. These parameters can be estimated from historical anonymous interaction records or using preset initial values.
[0079] Select all verified but currently incomplete nodes from the propositional reasoning graph to form a user... candidate frontier set If the current error code points to unknowable prior knowledge, the corresponding remedial node is added to the candidate frontier and its higher-order successor is frozen.
[0080] Select the next node :
[0081] in, The next node to be selected As a candidate node, For users The candidate frontier set, This indicates taking the parameter value that maximizes the objective function; For nodes Current state of knowledge Information gain For nodes Relevance to the current error code For nodes The expected interaction length or rendering cost, For nodes The urgency of dependence on subsequent nodes; , and These are the weighting coefficients.
[0082] If the current node is incorrect and the posterior knowledge is below the threshold, return its predecessor node or a variant node of the same error type; if it is correct and the knowledge is above the threshold, skip the duplicate node that is already fully known.
[0083] Step S8: Encapsulate, output, and audit the interaction data.
[0084] Encapsulate the output data of each node, including at least the node identifier, premise set, reasoning operation, conclusion, evidence identifier set, prerequisite dependency identifier, breakpoint score, correct item, interference item, error code, scene graph difference set, verification result, version summary and jump strategy, and bind each output field to the source node and source version.
[0085] The JSON Schema is used to validate field types, enumeration values, and reference integrity. Only nodes with a validated status and a version digest that matches the current input are output; the remaining nodes do not enter the front-end data stream.
[0086] When a model call times out, it continues from the most recently validated node; when the title image cannot be parsed, it is converted to text mode and the missing flag is retained; when evidence conflicts or dependency loops cannot be eliminated, the output of that node is stopped and a manual review event is generated. At the same time, the model version, prompt template version, threshold, random seed, input summary, node summary, error vector, number of regenerations, and output time are recorded to form a verifiable audit chain.
[0087] To verify the technical effectiveness of this embodiment, under the same question set, model version, and sampling parameters, the entire question prompt can be directly generated as a control scheme. The following indicators are then statistically analyzed: the average Jaccard consistency of the breakpoint set across multiple runs; the proportion of nodes that can be completely traced by the evidence graph; the proportion of interference items containing only one major error; the consistency of the relationship between the reread scene graph and the target scene graph; the average proportion of failed nodes involved in a single verification failure; and the ratio of the local regeneration input length to the overall question regeneration input length. All of the above indicators can be automatically calculated from server logs and graph structure.
[0088] Since the same evidence graph simultaneously determines node boundaries, generation context, discrimination constraints, failure propagation, and subsequent paths, this scheme can limit errors that usually require redoing the entire problem to a single node or its successor subgraph. The reliability improvement brought by multi-level verification and the reduction in computational load brought by node caching can be achieved simultaneously.
[0089] To ensure the repeatability of the technical solution, the preferred parameter ranges summarized in this embodiment are as follows: the sampling temperature for generating correct items is 0 to 0.30, the sampling temperature for generating interference items is 0.50 to 0.80, and top_p is 0.85 to 0.95; the breakpoint threshold is limited to 0.45 to 0.75, the proposition evidence threshold is 0.75 to 0.85, the interference item quality threshold is 0.68 to 0.78, the image-text consistency threshold is 0.90 to 0.96, and the maximum number of times a single field can be regenerated is 2 to 4.
[0090] The server stores the model version, hint template version, weight parameters, threshold, random seed, and generation time. When the same question is executed repeatedly, the cache is reused first. If the conditions change, only the nodes whose summaries change are recalculated.
[0091] This application also provides a question parsing data generation system, including: a node segmentation module, used to acquire parsing data of a target question, construct a propositional reasoning graph based on the parsing data, and segment the parsing data into multiple atomic logic nodes with dependencies based on the propositional reasoning graph; a content verification module, used to generate corresponding candidate content for the atomic logic nodes and perform multi-dimensional verification on the candidate content; and a local recalculation module, used to determine the target failure closure based on the dependencies between atomic logic nodes and the verification results in response to the failure of multi-dimensional verification, and perform local regeneration only on the data within the target failure closure.
[0092] This application also provides a computer-readable storage medium storing a computer program thereon. When the computer program is executed by a processor, it implements the method for generating question parsing data as described in any of the above method embodiments.
[0093] Those skilled in the art will understand that, besides implementing the system and its various devices, modules, and units provided by this invention in the form of purely computer-readable program code, the same functions can be achieved entirely through logical programming of the method steps, making the system and its various devices, modules, and units of this invention function in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers. Therefore, the system and its various devices, modules, and units provided by this invention can be considered as a hardware component, and the devices, modules, and units included therein for implementing various functions can also be considered as structures within the hardware component; alternatively, the devices, modules, and units for implementing various functions can be considered as both software modules implementing the method and structures within the hardware component.
[0094] Specific embodiments of the present invention have been described above. It should be understood that the present invention is not limited to the specific embodiments described above, and those skilled in the art can make various changes or modifications within the scope of the claims, which do not affect the essence of the present invention. Unless otherwise specified, the embodiments and features described in this application can be arbitrarily combined with each other.
Claims
1. A method for generating problem analysis data, characterized in that, include: Obtain the parsing data of the target question, construct a propositional reasoning graph based on the parsing data, and divide the parsing data into multiple atomic logic nodes with dependencies based on the propositional reasoning graph; For each atomic logic node, corresponding candidate content is generated, and multi-dimensional verification is performed on the candidate content. In response to the failure of the multi-dimensional verification, the target failure closure is determined based on the dependency relationship between the atomic logic nodes and the verification result, and only the data within the target failure closure is partially regenerated.
2. The method for generating question analysis data according to claim 1, characterized in that, The process of constructing a propositional reasoning graph based on the parsed data, and then dividing the parsed data into multiple atomic logic nodes with dependencies based on the propositional reasoning graph, includes: Candidate propositions are generated based on the parsed data, and an admission determination is performed on the candidate propositions based on the credibility of the evidence, so as to construct the proposition reasoning graph; The logical breakpoint score is determined based on semantic leaps, dependency increments, changes in reasoning operations, and changes in evidence sets between adjacent candidate propositions. The initial breakpoint is determined based on the logical breakpoint score, and the nodes corresponding to the initial breakpoint are recursively split or merged according to the node atomicity index to obtain the atomic logical nodes.
3. The method for generating question analysis data according to claim 2, characterized in that, The formula for calculating the credibility of the evidence is as follows: in, For the first The credibility of evidence for each candidate proposition The sequence number of the candidate proposition; The probability implied by the text. For the rules to satisfy the proportion, For image and text alignment, , and The weighting coefficients and ; The formula for calculating the logical breakpoint score is as follows: in, For the first Scoring of logical breakpoints at each candidate proposition. For semantic transitions between adjacent candidate propositions, To rely on incremental, For the change of reasoning operation, The change in the set of evidence. to Non-negative weights For bias, This is the Sigmoid function.
4. The method for generating question analysis data according to claim 1, characterized in that, The multi-dimensional verification of the candidate content includes: Semantic implication verification, rule constraint verification, and data pattern verification are performed on the candidate content respectively; The determination of the target failure closure based on the dependencies between the atomic logic nodes and the verification results includes: Encode each verification result into a field-level error location vector; The fields corresponding to the non-zero components in the field-level error location vector, as well as the subsequent fields that depend on the fields, are determined as the candidate failure set; Based on the field version summary, remove fields whose summaries have not changed from the candidate failure set to obtain the target failure closure.
5. The method for generating question analysis data according to claim 4, characterized in that, The formula for calculating the field version summary is: in, For fields Version summary, Used as a field identifier; For hash functions, Indicates string concatenation; For field values, For the set of evidence identifiers, For a set of dependent identifiers, For model version; The step of performing local regeneration only on the data within the target failure closure includes: The target failure closure, necessary ancestor subgraph, error code, and missing constraints are sent only to the generative model, and the length of the locally regenerated input is... satisfy: in, The length of the locally regenerated input. Indicates the data length; The target failure closure, The node number; This is the necessary ancestor subgraph. The missing constraint is referred to here.
6. The method for generating question analysis data according to claim 1, characterized in that, The generation of corresponding candidate content for the atomic logic node includes: For the atomic logic nodes to be tested, extract the correct items and select a single counterfactual transformation operator to generate candidate interference items; The single counterfactual transformation operator includes one of the following: premise substitution, omission of necessary conditions, reversal of relation direction, mismatch of theorem application conditions, numerical boundary perturbation, or addition / deletion of graphical constraints. Each candidate interference item is bound to an error code and a violated constraint. Candidate interference items containing two or more independently violated constraints are discarded.
7. The method for generating question analysis data according to claim 6, characterized in that, The quality score of the candidate interference items The calculation formula is: in, Candidate interference items Quality rating For surface rationality, The semantic similarity between the candidate interference item and the correct item. For single-error satisfaction, To ensure coverage of the current node's target, To ensure consistency between the text and images, Punishment for leaking answers The degree of repetition among options; margin for a unique answer. The calculation formula is: in, For the first The unique answer margin for each node For the first The correct item for each node, For the first The node of the first One candidate interference item; For the scoring function, The score for the correct item is... The maximum score for each candidate interference item is determined; when the margin of the unique answer is lower than a preset threshold, the single counterfactual transformation operator is reselected.
8. The method for generating question analysis data according to claim 1, characterized in that, The step of generating corresponding candidate content for the atomic logic node also includes generating a graphic and text scene, wherein the generated graphic and text scene includes: Construct a basic scene diagram from the question image, and generate a set of scene diagram differences relative to the basic scene diagram for each option; A target scene map is obtained based on the base scene map and the scene map difference set. The target scene map is then rendered and read back to obtain a read-back scene map. The consistency between the target scene graph and the readback scene graph is calculated based on the importance of the relationship. In response to the consistency being lower than a preset threshold, only the layer corresponding to the scene graph difference set is re-rendered.
9. A problem analysis data generation system, characterized in that, include: The node segmentation module is used to obtain the parsing data of the target question, construct a propositional reasoning graph based on the parsing data, and segment the parsing data into multiple atomic logic nodes with dependencies based on the propositional reasoning graph; The content verification module is used to generate corresponding candidate content for the atomic logic node and perform multi-dimensional verification on the candidate content. The local recalculation module is used to respond to the failure of the multi-dimensional verification, determine the target failure closure based on the dependency relationship between the atomic logic nodes and the verification result, and perform local regeneration only on the data within the target failure closure.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method for generating question parsing data according to any one of claims 1 to 8.
