A test question generation method and system
By leveraging cross-modal alignment of multimodal resources, knowledge graphs, and multi-agent debate mechanisms, personalized test questions that match learners' cognitive levels are generated. This addresses the shortcomings of existing test question generation technologies and achieves high-quality and accurate test question generation.
Patent Information
- Application Number
- CN202611276559.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-21
- Publication Date
- 2026-11-27
AI Technical Summary
Existing technologies cannot incorporate students' knowledge mastery into the test question generation process, and multi-agent test question generation methods lack a structured adversarial debate mechanism, resulting in only a superficial improvement in the quality of generated test questions.
By anchoring and aligning cross-modal comparative learning of multimodal educational resources, constructing a knowledge graph of test points, and introducing a cognitive diagnostic model, combined with a multi-agent adversarial debate mechanism and multi-tower anti-illusion verification, test questions that are adapted to learners' cognitive levels and are factually accurate are generated.
It achieves personalized adaptation of test question generation to learners' cognitive state, ensuring the stability of test question quality and factual accuracy, avoiding inefficient iteration, and improving the quality and accuracy of test question generation.
Smart Images

Figure CN123180306A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of artificial intelligence and education technology, specifically to a method and system for generating test questions. Background Technology
[0002] With the rapid development of artificial intelligence technology, especially the breakthroughs in large language models and multimodal learning technology, using AI to automatically generate test questions has become a research hotspot in the field of educational technology.
[0003] However, most existing technologies are geared towards generating test questions for general scenarios and fail to incorporate students' knowledge mastery into the generation process. While knowledge graph-based methods can represent the hierarchical relationships between knowledge points, they lack quantitative modeling of the cognitive dependencies between knowledge points, making it impossible to achieve precise personalized question generation based on students' cognitive profiles.
[0004] Moreover, existing multi-agent question generation methods employ a simple linear task passing model, lacking a structured adversarial debate mechanism among agents. This easily leads to inefficient iterations of debating for the sake of debating, failing to ensure that each round of revision produces substantial quality improvements. Summary of the Invention
[0005] The purpose of this invention is to provide a method and system for generating test questions. By combining semantic alignment of multimodal educational resources, modeling of learners' cognitive states, multi-agent quality iteration, and multi-dimensional fact verification, test questions that are adapted to learners' cognitive levels and have guaranteed factual accuracy can be automatically generated.
[0006] To achieve the above objectives, embodiments of the present invention provide a method for generating test questions, comprising: Acquire multimodal educational resources and perform cross-modal contrastive learning anchoring and alignment processing on the multimodal educational resources to map educational resources of different modalities to a unified semantic representation space; Construct a knowledge graph of test points containing test point nodes and relationship edges between test points, collect learner answer data, quantify the cognitive dependence strength between each test point through a cognitive diagnostic model, predict the dynamic difficulty of each test point based on the cognitive dependence strength and test point attribute characteristics, and incrementally update the knowledge graph of test points. Based on the learner's cognitive mastery status at each test point, combined with the dynamic difficulty of the target test point in the incrementally updated test point knowledge graph, the target question difficulty is determined, and multimodal educational resources associated with the target test point are retrieved from the semantic representation space. Initial test questions are generated through a multi-agent adversarial debate mechanism. The initial test questions are subjected to multi-tower anti-hallucination verification. The overall factual consistency score is calculated by weighting the results of each tower anti-hallucination verification. When the overall factual consistency score is lower than a preset safety threshold, the anti-hallucination correction process is triggered to revise the initial test questions in a targeted manner to obtain the target test questions.
[0007] Optionally, acquiring multimodal educational resources and performing cross-modal contrastive learning anchoring and alignment processing on the multimodal educational resources includes: Modality-adaptive preprocessing was performed on each modality of educational resources to obtain multiple educational resource fragments; For each educational resource segment, a large language model is used in conjunction with the subject teaching syllabus and curriculum standards to anchor test points, generating test point anchor tags corresponding to each educational resource segment; wherein, the test point anchor tags include test point identifier, test point name, test point level, cognitive level, and predecessor and successor relationships based on the test point knowledge graph; A pre-built cross-modal contrastive learning framework is adopted, with the test point anchor labels as anchoring conditions, and cross-modal feature alignment is achieved through an improved supervised contrastive loss function.
[0008] Optionally, the construction process of the cross-modal contrastive learning framework is as follows: A cross-modal contrastive learning framework is constructed, comprising a modality-specific encoder group, a cross-modal projection layer, and a test point anchoring and alignment module; wherein, The modal-specific encoder group includes a text encoder, an image encoder, a table encoder, and a formula encoder, which are used to extract the original features of each modal educational resource. The cross-modal projection layer consists of two fully connected network layers, which are used to map the original features of different dimensions to a shared semantic space of a unified dimension to obtain the projection feature vector of each educational resource fragment. The test point anchoring alignment module uses the test point anchoring labels corresponding to each educational resource segment as anchoring conditions and adopts a supervised contrastive learning strategy to perform cross-modal feature alignment. This brings the semantic distance between different modal projection feature vectors with the same test point anchoring labels closer in the shared semantic space, while pushing the semantic distance between different modal projection feature vectors with different test point anchoring labels further apart.
[0009] Optionally, the improved supervised contrastive loss function is as follows:
[0010] In the formula, This represents the projected feature vector of the anchored sample. This represents the projected feature vector of a positive sample. Indicates the first in the batch The projected feature vector of each sample, Here, N represents the temperature hyperparameter, and N represents the batch size. The anchor weight of the test points is determined by both the test point level and the cognitive level. This represents the cosine similarity function.
[0011] Optionally, the test point nodes in the test point knowledge graph include test point level, cognitive level, historical difficulty, and the number of associated resources; the relationship edges between test points include hierarchical inclusion relationship, similarity relationship, predecessor and successor relationship, and cognitive dependency relationship; The quantification method of the cognitive dependence intensity is as follows: based on the cognitive diagnostic model, estimate the mastery probability of each test point, calculate the difference between the first conditional probability of mastering the subsequent test point under the condition that the preceding test point has not been mastered and the second conditional probability of mastering the subsequent test point under the condition that the preceding test point has been mastered, and use the difference as the cognitive dependence intensity of the preceding test point on the subsequent test point.
[0012] Optionally, the multi-agent system includes: A knowledge integration intelligent agent is used to retrieve multi-granular semantic blocks associated with target test points from the semantic representation space and perform cross-modal knowledge fusion to generate a structured knowledge package; The test question drafting agent generates initial test questions based on the structured knowledge package using a thought chain reasoning strategy. The quality review agent is used to quantitatively review the initial test questions based on the accuracy of knowledge points, consistency of facts, suitability of difficulty, standardization of expression, matching of cognitive level, and quality of distractors, and generate a review report. The difficulty calibration agent is used to extract the multidimensional cognitive complexity features of the initial test questions and estimate the difficulty parameters after the initial test questions pass the quality review. When the estimated difficulty deviates from the target test question difficulty, it generates a difficulty adjustment instruction and feeds it back to the test question drafting agent.
[0013] Optional multi-agent adversarial debate mechanisms include: The initial test questions generated by the test question drafting agent are sent to the quality review agent to conduct adversarial review of the initial test questions and generate a review report; The test question drafting agent generates a revised version of the test questions based on the list of issues in the review report. The quality review agent reviews the revised test questions and calculates the overall quality gain rate of the current test questions relative to the previous round of test questions. The debate ends when the overall quality gain rate is lower than the preset gain threshold for two consecutive rounds, or the number of revision rounds reaches the preset maximum number of rounds, or the current overall quality gain rate is higher than the preset acceptance threshold. If the current overall quality gain rate is not lower than the preset acceptance threshold, the historical version is selected for output; otherwise, it is marked as requiring manual review.
[0014] Optionally, the multi-tower anti-illusion verification includes: The fact extraction tower is used to call the large language model to perform structured fact extraction operations on the initial test questions, so as to extract factual statements and generate structured fact triples corresponding to each factual statement; The source verification tower is used to extract reference fact triples from the original educational resources corresponding to the semantic representation space, and perform semantic matching between them and the structured fact triples. Based on the proportion of the number of successfully matched fact triples to the total number of structured fact triples, a source consistency score is generated. The common sense and knowledge graph consistency tower is used to verify the consistency between common sense and subject knowledge system of factual statements in the initial test questions.
[0015] Optionally, the anti-hallucination correction process includes: Based on the structured fact triples and their confidence scores output by the fact extraction tower, the source consistency score and unmatched fact triple markers output by the source verification tower, the knowledge system consistency score, cross-modal consistency score and consistency conflict alarm information output by the common sense and knowledge graph consistency tower, a structured anti-illusion correction instruction is generated. The structured anti-illusion correction instructions are fed back to the test question drafting agent to perform targeted revision operations on the initial test questions based on the factual consistency conflict items marked in the anti-illusion correction instructions, so as to eliminate the factual inconsistencies in the initial test questions. The multi-tower anti-illusion verification is re-executed on the revised test questions to calculate a new comprehensive factual consistency score. If the new comprehensive factual consistency score is still lower than the preset safety threshold and has not reached the preset correction round, the above anti-illusion correction and multi-tower anti-illusion verification operations are repeated until the comprehensive factual consistency score reaches the preset safety threshold or reaches the preset correction round.
[0016] Secondly, the present invention also provides a test question generation system, comprising: A multimodal semantic alignment module is used to acquire multimodal educational resources and perform cross-modal comparative learning anchor alignment processing on the multimodal educational resources to map educational resources of different modalities to a unified semantic representation space. The knowledge graph construction module is used to construct a knowledge graph of test points that includes test point nodes and relationship edges between test points, collect learner answer data, quantify the cognitive dependence strength between each test point through a cognitive diagnostic model, predict the dynamic difficulty of each test point based on the cognitive dependence strength and test point attribute characteristics, and incrementally update the test point knowledge graph. The test question generation module is used to determine the target question difficulty based on the learner's cognitive mastery status at each test point, combined with the dynamic difficulty of the target test point in the incrementally updated test point knowledge graph, and to retrieve multimodal educational resources associated with the target test point from the semantic representation space, and generate initial test questions through a multi-agent adversarial debate mechanism. The anti-hallucination verification module is used to perform multi-tower anti-hallucination verification on the initial test questions. Based on the weighted calculation of the comprehensive factual consistency score of each tower anti-hallucination verification result, when the comprehensive factual consistency score is lower than a preset safety threshold, the anti-hallucination correction process is triggered to directionally revise the initial test questions to obtain the target test questions.
[0017] The above technical solution addresses the issue of precise semantic correspondence between multimodal educational resources through cross-modal contrastive learning and alignment processing, ensuring semantic consistency between generated test questions and target test points. By constructing a test point knowledge graph and introducing a cognitive diagnostic model to quantify the cognitive dependence strength and dynamic difficulty between test points, test question generation can adapt to learners' individual cognitive states. A multi-agent adversarial debate mechanism introduces a quality gain rate circuit breaker condition, achieving substantial improvements in test question quality iteration through multi-agent collaboration. Multi-tower anti-illusion verification and weighted comprehensive factual consistency scoring systematically verify and correct the factual accuracy of test questions from multiple dimensions, including source, knowledge system, and cross-modal aspects. This achieves end-to-end generation from multimodal resources to personalized test questions, while simultaneously ensuring the personalized adaptability, quality stability, and factual accuracy of the generated test questions.
[0018] Other features of the embodiments of the present invention will be described in detail in the following detailed description section. Attached Figure Description
[0019] The accompanying drawings are provided to further illustrate embodiments of the present invention and form part of the specification. They are used together with the following detailed description to explain the embodiments of the present invention, but do not constitute a limitation thereof. In the drawings: Figure 1 This is a flowchart of a test question generation method provided in an embodiment of the present invention; Figure 2 This is a schematic diagram of a cross-modal contrastive learning anchoring alignment framework provided in an embodiment of the present invention; Figure 3 This is a timing diagram of a multi-agent adversarial structured debate mechanism provided in an embodiment of the present invention; Figure 4 This is a diagram of a multi-tower anti-illusion verification architecture provided by an embodiment of the present invention; Figure 5 This is a schematic diagram of the structure of a test question generation system provided in an embodiment of the present invention. Detailed Implementation
[0020] Various embodiments of this disclosure will be described more fully in the following detailed description. This disclosure may have various embodiments, and adjustments and changes may be made therein. However, it should be understood that there is no intention to limit the various embodiments of this disclosure to the specific embodiments disclosed herein, but rather this disclosure should be understood to cover all adjustments, equivalents, and / or alternatives falling within the spirit and scope of the various embodiments of this disclosure.
[0021] In the following, the terms “comprising” or “may include”, which may be used in various embodiments of this disclosure, indicate the presence of the disclosed functions or operations and do not limit the addition of one or more functions or operations. Furthermore, as used in various embodiments of this disclosure, the terms “comprising,” “having,” and their cognates are intended only to indicate a specific feature, number, step, operation, or combination of the foregoing and should not be construed as primarily excluding the presence of one or more other features, numbers, steps, operations, or combinations of the foregoing, or the possibility of adding one or more features, numbers, steps, operations, or combinations of the foregoing.
[0022] In various embodiments of this disclosure, the expression "or" or "at least one of A and / or B" includes any combination or all combinations of the words listed simultaneously. For example, the expression "A or B" or "at least one of A and / or B" may include A, may include B, or may include both A and B.
[0023] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0024] See Figure 1 The diagram shows a flowchart of a test question generation method in a specific embodiment, including the following execution steps: Step 100: Obtain multimodal educational resources and perform cross-modal contrastive learning anchoring and alignment processing on the multimodal educational resources to map educational resources of different modalities to a unified semantic representation space.
[0025] Specifically, when executing step 100, the following steps can be performed: S1000: Modality adaptability preprocessing is performed on each modality of educational resources to obtain multiple educational resource fragments.
[0026] Specifically, educational resources in four modalities—text (textbooks), images (teaching pictures), tables (data tables), and formulas (mathematical expressions)—are collected and preprocessed according to standardization. Text resources are segmented and named entity recognition to obtain token sequences; image resources are processed by object detection, region segmentation, and character recognition to obtain image descriptions and OCR text; table resources are parsed to obtain structured features; and formula resources are parsed using LaTeX to obtain formula syntax trees.
[0027] S1001: For each educational resource segment, use a large language model combined with the subject teaching syllabus and curriculum standards to perform test point anchoring and generate test point anchoring labels corresponding to each educational resource segment; wherein, the test point anchoring labels include test point identifier, test point name, test point level, cognitive level, and predecessor and successor relationships based on the test point knowledge graph.
[0028] Specifically, for each educational resource segment, a large language model is used in conjunction with the subject teaching syllabus and curriculum standards to automatically annotate test point anchor tags. Each tag includes the following attributes: test point identifier (unique ID), test point name, test point level (chapter level / knowledge point level / skill point level), and cognitive level (based on Bloom's Taxonomy of Cognition: memory, comprehension, application, analysis, evaluation, creation), as well as predecessor and successor relationships based on a knowledge graph. The annotation process adopts a three-stage strategy: the first stage: core entity extraction, extracting a set of core concept entities from the resource segment. The second stage involves calculating the relevance of test points by semantically matching the entity set with the test point nodes in the pre-trained subject knowledge graph and calculating the relevance score. The third stage: anchor tag selection, selecting test point nodes with relevance scores exceeding the preset threshold (default 0.65) and consistent cognitive levels as anchor tags for the resource segment.
[0029] S1002: A pre-built cross-modal contrastive learning framework is adopted, with the test point anchor labels as anchoring conditions, and cross-modal feature alignment is achieved through an improved supervised contrastive loss function.
[0030] For details, please refer to Figure 2 As shown, the construction process of the cross-modal contrastive learning framework is as follows: A cross-modal contrastive learning framework is constructed, comprising a modality-specific encoder group, a cross-modal projection layer, and a test point anchoring and alignment module; wherein, The modal encoder group includes a text encoder (using...) Architecture, 12 layers (Hidden layer dimension 768), image encoder (using) Architecture (window size 7×7, hidden layer dimension 1024), table encoder (using...) Architecture, outputting 768-dimensional vectors), formula encoder (using...) The architecture outputs a 768-dimensional vector, which is used to extract the original features of each modality of educational resources. The cross-modal projection layer consists of two fully connected networks (including...) Activation function and It consists of components used to map raw features of different dimensions to a unified system. The shared semantic space of dimensions yields the projected feature vectors of each educational resource fragment. ; The test point anchoring alignment module uses the test point anchoring labels corresponding to each educational resource segment as anchoring conditions and adopts a supervised contrastive learning strategy to perform cross-modal feature alignment. This brings the semantic distance between different modal projection feature vectors with the same test point anchoring labels closer in the shared semantic space, while pushing the semantic distance between different modal projection feature vectors with different test point anchoring labels further apart.
[0031] The improved supervised contrastive loss function is as follows:
[0032] In the formula, This represents the projected feature vector of the anchored sample. This represents the projected feature vector of a positive sample. Indicates the first in the batch The projected feature vector of each sample, Here, N represents the temperature hyperparameter, and N represents the batch size. The anchor weight of the test points is determined by both the test point level and the cognitive level. This represents the cosine similarity function.
[0033]
[0034] in, The test points increase progressively from chapter level (0.3) to skill point level (1.0). According to Bloom's hierarchy of knowledge, it increases from memory (0.2) to creation (1.0); and For the balance coefficient, satisfying This weighting mechanism allows cross-modal pairs related to important test points and higher cognitive levels to receive greater learning signals, ensuring that semantic alignment focuses on key information in the education domain.
[0035] Step 101: Construct a knowledge graph of test points containing test point nodes and relationship edges between test points, collect learner answer data, quantify the cognitive dependence strength between each test point through a cognitive diagnostic model, predict the dynamic difficulty of each test point based on the cognitive dependence strength and test point attribute characteristics, and incrementally update the knowledge graph of test points.
[0036] Specifically, the test point nodes in the test point knowledge graph include test point level, cognitive level, historical difficulty, and the number of associated resources; the relationship edges between test points include hierarchical inclusion relationship, similarity relationship, predecessor-successor relationship, and cognitive dependency relationship.
[0037] The quantification method of the cognitive dependence intensity is as follows: based on the cognitive diagnostic model, estimate the mastery probability of each test point, calculate the difference between the first conditional probability of mastering the subsequent test point under the condition that the preceding test point has not been mastered and the second conditional probability of mastering the subsequent test point under the condition that the preceding test point has been mastered, and use the difference as the cognitive dependence intensity of the preceding test point on the subsequent test point.
[0038] Specifically, based on the subject curriculum standards, an initial knowledge graph is constructed, containing test point nodes and relational edges. Each test point node includes attributes such as test point name, test point level, cognitive level, historical difficulty, and number of associated resources. Relational edges include: hierarchical inclusion relationship, similarity relationship, predecessor-successor relationship, and cognitive dependency relationship.
[0039] use The cognitive diagnostic model quantifies the cognitive dependency strength between each pair of related test points by analyzing student answer data. Cognitive dependency strength is defined as:
[0040] This indicator quantifies the pre-examination points. Not grasping the subsequent test points Understanding the degree of influence of probability: the larger the value, the stronger the influence. right The stronger the cognitive dependence.
[0041] When student answer data is insufficient, a cold start initialization strategy based on expert rules is adopted: subject matter experts label the subjective dependence level and map it to the initial cognitive dependence strength value (strong dependence = 0.8, medium dependence = 0.5, weak dependence = 0.3, no dependence = 0.0). As answer data accumulates, it gradually transitions to the data-driven estimate through the Bayesian update method.
[0042] Building graph attention-based networks on knowledge graphs A difficulty propagation model is proposed. This model uses the historical difficulty, cognitive level, cognitive dependence strength, and number of associated resources of test points as node features, and predicts the dynamic difficulty of test points through multi-layer graph attention propagation. The model parameters are obtained by training on historical exam data. An incremental update mechanism for the knowledge graph, incorporating incremental graph embedding technology, is established. When new student answer data or educational resources are added, the knowledge graph is dynamically maintained through local graph updates rather than global retraining.
[0043] Step 102: Based on the learner's cognitive mastery status at each test point, combined with the dynamic difficulty of the target test point in the incrementally updated test point knowledge graph, determine the target question difficulty, and retrieve multimodal educational resources associated with the target test point from the semantic representation space, and generate initial test questions through a multi-agent adversarial debate mechanism.
[0044] Specifically, the multi-agent system includes: A knowledge integration intelligent agent is used to retrieve multi-granular semantic blocks associated with target test points from the semantic representation space and perform cross-modal knowledge fusion to generate a structured knowledge package; The test question drafting agent generates initial test questions based on the structured knowledge package using a thought chain reasoning strategy. The quality review agent is used to quantitatively review the initial test questions based on the accuracy of knowledge points, consistency of facts, suitability of difficulty, standardization of expression, matching of cognitive level, and quality of distractors, and generate a review report. The difficulty calibration agent is used to extract the multidimensional cognitive complexity features of the initial test questions and estimate the difficulty parameters after the initial test questions pass the quality review. When the estimated difficulty deviates from the target test question difficulty, it generates a difficulty adjustment instruction and feeds it back to the test question drafting agent.
[0045] More specifically, the roles and responsibilities of each intelligent agent are as follows: Knowledge Integration Agent: Responsible for retrieving and integrating multimodal educational resource blocks, and performing cross-modal knowledge fusion and structured organization. Specifically, it includes: (1) performing consistency checks on educational resources of different modalities, identifying and marking cross-modal information conflicts; (2) organizing educational resources in a structured manner according to the test point dimension, and generating a structured knowledge context for each test point, including concept definitions, core concepts, key formulas, typical examples and common errors; (3) outputting structured knowledge packages for use by other agents.
[0046] The test question drafting agent: Based on the structured knowledge context and target question requirements provided by the knowledge integration agent, it uses a thought chain reasoning strategy to generate test questions in the following five steps: Step 1: Requirement analysis (clarifying the core concepts and key points of the target test points); Step 2: Structure design (determining the question type, number of questions, and question format based on the target difficulty); Step 3: Material extraction (extracting key information related to the target test points from the knowledge package); Step 4: Test question generation (generating the question stem, options (multiple-choice questions include 1 correct option and 3 distractors, with distractors following four typical error types: conceptual confusion, calculation error, logical fallacy, and misinterpretation of the question), reference answer, and detailed explanation); Step 5: Multimodal association annotation (annotating the association positions and presentation methods of images, tables, and formulas in the test questions).
[0047] Quality Review Agent: This agent reviews the test questions generated by the test question drafting agent across multiple dimensions. These dimensions include: (a) accuracy of knowledge points (weight 0.25); (b) factual consistency (weight 0.20); (c) difficulty suitability (weight 0.15); (d) standardization of expression (weight 0.15); (e) matching of cognitive level (weight 0.15); and (f) quality of distractors (weight 0.10, multiple-choice only). Each dimension receives a quantitative score of 1-5 points and specific modification suggestions, generating a structured review report.
[0048] Difficulty Calibration Agent: This agent assesses and calibrates the difficulty of test questions that have passed quality review. It extracts multidimensional cognitive complexity features of the test questions (including the number of core test points, length of the reasoning chain, degree of information impliedness, deceptiveness of options, numerical computation complexity, and cross-knowledge point integration). Based on a neural network model, it predicts the difficulty parameters of the test questions, and generates targeted adjustment instructions when the deviation exceeds a threshold.
[0049] Furthermore, multi-agent adversarial debate mechanisms include: The initial test questions generated by the test question drafting agent are sent to the quality review agent to conduct adversarial review of the initial test questions and generate a review report; The test question drafting agent generates a revised version of the test questions based on the list of issues in the review report. The quality review agent reviews the revised test questions and calculates the overall quality gain rate of the current test questions relative to the previous round of test questions. The debate ends when the overall quality gain rate is lower than the preset gain threshold for two consecutive rounds, or the number of revision rounds reaches the preset maximum number of rounds, or the current overall quality gain rate is higher than the preset acceptance threshold. If the current overall quality gain rate is not lower than the preset acceptance threshold, the historical version is selected for output; otherwise, it is marked as requiring manual review.
[0050] For details, please refer to Figure 3 As shown, the knowledge integration agent, the question drafting agent, the quality review agent, and the difficulty calibration agent collaborate through an adversarial structured debate mechanism. The debate process includes the following five stages: The first round of initial drafting: The question drafting agent generates initial question drafts based on the structured knowledge context provided by the knowledge integration agent. and will Send to the quality review agent.
[0051] Round 2 adversarial review: Quality review agent pairs Conduct multi-dimensional reviews, taking an "attacker's" perspective to proactively identify potential flaws and vulnerabilities in the test questions, and generate review reports. (Includes scores for each dimension, a list of issues (sorted by severity), and specific modification suggestions). If all dimension scores reach the preset passing threshold (default 4.0 / 5.0), proceed directly to the difficulty calibration stage; otherwise, [the process will proceed to the next stage]. Feedback is provided to the test question drafting agent.
[0052] The third round of targeted revisions: The test drafting agent, based on the review report... The list of issues was used for targeted revisions. A "problem-oriented revision" strategy was adopted—only the identified issues were modified, while maintaining the core testing intent and overall structure of the questions. A revised version was generated upon completion. The revised version, along with the revision notes (including the revised content and a comparison of the revisions), is sent to the quality review agent for review.
[0053] Round 4 Review and Quality Gain Assessment: Quality Review Agent Conduct a review and generate a review report. And calculate the mass gain rate. ,in This is the overall quality score. If... If all dimensions show satisfactory scores, the process proceeds to the difficulty calibration phase. If any dimensions remain unsatisfactory after revision, the following smart circuit breaker conditions will be applied: Condition a: The revision rounds have reached the maximum number of rounds. (3 rounds by default); Condition b: Mass gain rate over two consecutive rounds Below the minimum gain threshold (default =0.02), meaning that the quality improvement in two consecutive revisions was less than 2%; Condition c: Current overall quality score Above the acceptable threshold (default =0.75), which is acceptable even if it does not reach the qualified threshold (4.0 / 5.0=0.8).
[0054] The debate process is terminated when any circuit breaker condition is met. If the process is terminated at that time... ≥ If the best historical version is selected, the subsequent process continues; otherwise, it is marked as "requires manual review." Condition b (intelligent circuit breaker based on quality gain rate) is the key innovation of this invention—it automatically stops when the revision no longer produces substantial quality improvement, ensuring that each round of revision makes a substantial contribution and effectively avoiding inefficient iterations of "debating for the sake of debating."
[0055] Round 5 Difficulty Calibration: The difficulty calibration agent estimates the difficulty of the debated questions. If the estimated difficulty is within the target range, the question passes; otherwise, a targeted difficulty adjustment instruction is generated and fed back to the question drafting agent for adjustment (difficulty adjustment is executed in a maximum of 2 rounds).
[0056] Step 103: Perform multi-tower anti-hallucination verification on the initial test questions, calculate the comprehensive factual consistency score based on the weighted results of each tower anti-hallucination verification, and trigger the anti-hallucination correction process when the comprehensive factual consistency score is lower than the preset safety threshold to directionally revise the initial test questions and obtain the target test questions.
[0057] Specifically, the multi-tower anti-hallucination verification includes: The fact extraction tower is used to call the large language model to perform structured fact extraction operations on the initial test questions, so as to extract factual statements and generate structured fact triples corresponding to each factual statement; The source verification tower is used to extract reference fact triples from the original educational resources corresponding to the semantic representation space, and perform semantic matching between them and the structured fact triples. Based on the proportion of the number of successfully matched fact triples to the total number of structured fact triples, a source consistency score is generated. The common sense and knowledge graph consistency tower is used to verify the consistency between common sense and subject knowledge system of factual statements in the initial test questions.
[0058] For details, please refer to Figure 4 The diagram shown illustrates a multi-tower anti-illusion verification architecture provided by an embodiment of the present invention. The fact extraction tower employs a structured fact triple extraction method based on a large language model to extract factual statements from generated test questions and transform them into a set of structured fact triples. Each triple contains a subject entity, a predicate relation, an object entity, and a confidence score (a self-assessment of extraction accuracy by the large language model, ranging from 0 to 1). Extraction employs a cue-based few-shot learning method, and the extraction results are deduplicated and quality-filtered (low-quality triples with a confidence score below 0.7 are removed).
[0059] Source Verification Tower: Extracts the corresponding set of fact triples from the original educational resource chunks using the same method. Then Each triple in the array and A step-by-step comparison is performed to calculate the fact consistency matrix. The comparison considers the following factors: (1) entity matching degree (cosine similarity calculated after BERT encoding); (2) relation matching degree (based on predicate thesaurus); (3) numerical tolerance matching (relative error). Source consistency score is defined as: ,Right now The proportion of factual triplets verified by the source. For It exists in but Mismatched fact triples are flagged as potential hallucination facts and hallucination warning messages are generated.
[0060] Common sense and knowledge graph consistency tower: Verify the consistency between common sense and subject knowledge system for factual statements in test questions. A hybrid verification method of "rule reasoning + graph query" is adopted: (1) Rule reasoning: Automatically compare the statements in test questions involving subject laws and theorems with the predefined scientific common sense rule base; (2) Graph query consistency: In the dynamic test point knowledge graph constructed by S2, query whether the relationship between the knowledge points involved in the test questions is consistent with the relationship defined in the graph; (3) Cross-modal consistency: Verify whether the facts described in the text are consistent with the information presented in the image / table / formula.
[0061] In one specific embodiment, the anti-hallucination correction process includes: Based on the structured fact triples and their confidence scores output by the fact extraction tower, the source consistency score and unmatched fact triple markers output by the source verification tower, the knowledge system consistency score, cross-modal consistency score and consistency conflict alarm information output by the common sense and knowledge graph consistency tower, a structured anti-illusion correction instruction is generated. The structured anti-illusion correction instructions are fed back to the test question drafting agent to perform targeted revision operations on the initial test questions based on the factual consistency conflict items marked in the anti-illusion correction instructions, so as to eliminate the factual inconsistencies in the initial test questions. The multi-tower anti-illusion verification is re-executed on the revised test questions to calculate a new comprehensive factual consistency score. If the new comprehensive factual consistency score is still lower than the preset safety threshold and has not reached the preset correction round, the above anti-illusion correction and multi-tower anti-illusion verification operations are repeated until the comprehensive factual consistency score reaches the preset safety threshold or reaches the preset correction round.
[0062] Specifically, the verification results of the three towers are weighted and fused to obtain a comprehensive factual consistency score:
[0063] in, (Source verification has the highest weight) , ,satisfy .when When the value falls below a preset safety threshold (default 0.85), the anti-hallucination correction process is triggered: the verification results of the three towers and the specific hallucination warning information are merged into a structured correction instruction, which is fed back to the question drafting agent for correction. After correction, the multi-tower verification is re-executed until... The safety threshold or the maximum number of correction rounds (default 2 rounds) is reached.
[0064] Establish a feedback and optimization closed-loop mechanism for test question generation. When a test question fails the quality assessment, the system automatically analyzes the reasons for the failure and generates targeted optimization instructions, which are then fed back to the test question drafting agent for targeted revision. After revision, the quality assessment process is re-executed. A maximum feedback round limit is set (default is 3 rounds). Test questions that still fail after exceeding the limit are marked as requiring manual review, and complete generation, revision, and quality assessment logs are recorded for system improvement.
[0065] In one specific embodiment, the generation of personalized after-school practice questions for high school physics is used as an example to illustrate the technical solution of the present invention in detail.
[0066] This embodiment deploys the method of the present invention on a cloud server (configuration: 64 cores , (Memory), providing personalized after-class exercise generation services for high school physics courses on a certain online education platform.
[0067] S1: Anchoring and Alignment Vectorization of Multimodal Educational Resources: First, authorized high school physics e-textbooks (People's Education Press edition), video frames of micro-lectures by famous teachers (sampled every 5 seconds), experimental demonstration charts, formula collections and teaching materials were collected and crawled from the platform to form a multimodal resource library containing approximately 5,000 documents, 20,000 images, 3,000 tables and 5,000 formulas.
[0068] Preprocessing stage: Text resources are processed Word segmentation, stop word removal, and Lexical analysis tools are used for entity recognition; image resources are employed. Perform target detection. Perform text recognition. Perform region segmentation; table resources adopt The library performs structural analysis; formula resources are used. conduct Identification and Transformation, and based on Perform symbolic semantic verification.
[0069] Exam Point Anchoring: Two high school physics experts collaborated with Deepseek-v4 to annotate each resource segment with exam point anchoring tags based on the general high school physics curriculum. Taking resources related to "Newton's Second Law" as an example, the annotation result is: {Exam Point ID: PHY-M-02, Name: Newton's Second Law, Level: Knowledge Point (Weight 0.6), Cognitive Level: Application (Weight 0.6), Anchoring Weight} }
[0070] Comparative learning and training: using (text), (image), (Table) and (Formula) serves as the modal encoder. The projection layer is a two-layer fully connected network (1024→512). The training data contains 12,000 pairs of labeled multimodal resource pairs (2,000 pairs of manually labeled + 10,000 pairs of semi-supervised pseudo-labels), using... Optimizer ( (Batch size 128, training 20 rounds). After training, text-image cross-modal retrieval... The accuracy improved from 62.3% to 85.7% compared to the baseline method. Vectorized storage utilizes the Milvus 2.3 vector database, with index type... .
[0071] S2: Construction of a Knowledge Graph for Cognitive Diagnosis An initial knowledge graph was constructed based on the high school physics knowledge system, containing 120 test point nodes (covering five major modules: mechanics, thermodynamics, electromagnetism, optics, and atomic physics) and approximately 450 relational edges.
[0072] DINA Cognitive Diagnosis: The platform collected approximately 500,000 student answer records (involving about 800 questions) from the 2023-2024 academic year. The MCMC method (Gibbs sampling, 2000 iterations, first 500 burn-in iterations) was used to estimate the DINA model parameters. The calculated values were: dep(Newton's Second Law, force analysis) = 0.82 (strong dependency), dep(kinetic energy theorem, Newton's Second Law) = 0.45 (moderate dependency), and dep(gravitational force, force analysis) = 0.15 (weak dependency). The GAT difficulty propagation model used a 3-layer GAT (4 attention heads per layer, 128 hidden dimensions) trained on 5 years of exam data from 2019-2024. The MAE for difficulty prediction on the test set was 0.095 (IRT b-value scale), and the Pearson correlation coefficient was 0.89.
[0073] S3: Generation of Multi-Agent Adversarial Debates Scenario: A high school student (student ID: S20240001) has a DINA cognitive profile showing the following probabilities: Mastery of Newton's Second Law: P=0.52 (partially mastered); Mastery of force analysis: P=0.91 (mastered); Mastery of uniformly accelerated linear motion: P=0.38 (not mastered). The student requests practice questions related to "Newton's Second Law." The system dynamically determines the target difficulty based on the cognitive profile: questions with partial mastery are kept at a medium difficulty level. ), and has mastered the difficulty of mediation at the test points ( The difficulty level has been lowered due to a lack of understanding of the test points. ).
[0074] A question of medium difficulty testing "Newton's Second Law" Using multiple-choice questions as an example, describe the complete debate process: Round 1 (Initial Drafting): The test drafting agent integrates the "smooth inclined plane slider" scenario knowledge (inclination angle) provided by the knowledge integration agent. Coefficient of kinetic friction Generate initial test questions. A known problem and Solving for acceleration Multiple choice questions, containing 4 options ( (Correct answer) ).
[0075] Round 2 (Adversarial Review): Quality Review Agents The review revealed the following issues: (a) Accuracy of knowledge points: 5.0 / 5.0; (b) Factual consistency: 4.5 / 5.0, option C's value is too similar to the textbook example; (c) Difficulty suitability: 4.0 / 5.0; (d) Expression standardization: 3.5 / 5.0, the question stem does not specify whether quality can be eliminated, causing ambiguity; (e) Cognitive level matching: 4.0 / 5.0; (f) Distractor quality: 3.0 / 5.0, option D's 6.8 m / s² is clearly incorrect (greater than gravitational acceleration g). Overall score: (Not up to standard).
[0076] Round 3 (Targeted Revision): Drafting and Revision of Questions by the Intelligent Agent : Revise the wording of the question (clearly state that quality can be eliminated), and replace option D with (The error type is conceptual confusion, use) Instead .
[0077] Round 4 (Review and Quality Gain Assessment): The review showed that the quality of the interference items improved from 3.0 to 4.0, and the standardization of expression improved from 3.5 to 4.5. The overall score... =0.86 (meets the standard). Mass gain ratio The debate was valid, and we proceeded to the difficulty calibration stage.
[0078] Round 5 (Difficulty Calibration): Difficulty Calibration Agent Extraction Feature vectors, prediction test difficulty Within the target range The difficulty level is passed.
[0079] S4: Multi-Tower Anti-Illusion Verification: Fact extraction tower: from Extracting fact triples set (Newton's Second Law, Resultant Force Expression) , (Slider acceleration, calculation formula) , )}.
[0080] Source verification tower: The above triples were verified from the original textbook resources. All three items matched successfully (match degree 0.96, 0.94, 0.91, all > threshold 0.85), and the source consistency score was [not specified]. .
[0081] Common sense and knowledge graph consistency tower: Rule-based reasoning verifies the direction of friction and the vector nature of Newton's second law, both conforming to the physics rule base; graph query confirms that force analysis is a prerequisite for Newton's second law, without violating dependencies; cross-modal consistency verifies that the formulas in the test questions are consistent with the formulas in the textbook images. Common sense consistency score Cross-modal consistency score .
[0082] Weighted composite score: (Safety threshold), verified. Final overall quality score of the test questions. (Pass threshold), is judged as passable.
[0083] In summary, this embodiment successfully achieved the automatic generation of personalized, high-quality test questions based on student cognitive diagnostic profiles, verifying the feasibility and beneficial effects of the method of the present invention.
[0084] This invention proposes a cross-modal contrastive learning method using test point labels as anchoring conditions. By introducing a test point anchoring weight jointly determined by the test point level and cognitive level as a supervision signal through an improved supervised contrastive loss function, the cross-modal semantic alignment process focuses on key semantic information in the education domain. Compared to the simple feature concatenation or independent encoding strategies in existing technologies, this invention improves cross-modal alignment accuracy.
[0085] By deeply integrating the DINA cognitive diagnostic model with the test item generation process, and quantifying the cognitive dependency strength between test points using the DINA model, a dynamic test point knowledge graph containing cognitive dependencies is constructed. Based on students' cognitive profiles (the probability of mastering each test point), the difficulty of the test items is dynamically adjusted: challenging questions are generated for mastered test points, consolidation questions for partially mastered test points, and basic questions for unmastered test points, achieving truly personalized and precise question generation. Simultaneously, a cold-start strategy based on expert rules and a Bayesian update transition mechanism are provided to solve the model initialization problem when there is insufficient answer data.
[0086] By introducing an adversarial structured debate mechanism, this invention differs from the simple linear collaboration of agents in existing technologies. It employs a game-theoretic process of adversarial review, targeted revision, and quality gain evaluation, and sets intelligent circuit breaker conditions based on quality gain rates during the debate to ensure that each round of revision produces substantial quality improvement. Four specialized agents with clearly defined roles achieve iterative optimization of test question quality through adversarial game theory, effectively avoiding inefficient iterations of debating for the sake of debating.
[0087] This invention proposes a multi-tower anti-illusion verification architecture, which achieves multi-level verification of factual accuracy through three independently operating verification towers. The verification results of the three towers are weighted and fused to obtain a comprehensive factual consistency score, and an automatic correction process is triggered when the score falls below a threshold. Compared with existing technologies that lack a systematic anti-illusion mechanism, this invention comprehensively ensures factual accuracy from two dimensions—source authenticity and system consistency—and through three channels.
[0088] like Figure 5As shown, the following are embodiments of the test question generation system provided in this disclosure. The test question generation methods in the above embodiments belong to the same inventive concept. For details not described in detail in the embodiments of the test question generation system, please refer to the embodiments of the test question generation methods described above.
[0089] A test question generation system, comprising: A multimodal semantic alignment module is used to acquire multimodal educational resources and perform cross-modal comparative learning anchor alignment processing on the multimodal educational resources to map educational resources of different modalities to a unified semantic representation space. The knowledge graph construction module is used to construct a knowledge graph of test points that includes test point nodes and relationship edges between test points, collect learner answer data, quantify the cognitive dependence strength between each test point through a cognitive diagnostic model, predict the dynamic difficulty of each test point based on the cognitive dependence strength and test point attribute characteristics, and incrementally update the test point knowledge graph. The test question generation module is used to determine the target question difficulty based on the learner's cognitive mastery status at each test point, combined with the dynamic difficulty of the target test point in the incrementally updated test point knowledge graph, and to retrieve multimodal educational resources associated with the target test point from the semantic representation space, and generate initial test questions through a multi-agent adversarial debate mechanism. The anti-hallucination verification module is used to perform multi-tower anti-hallucination verification on the initial test questions. Based on the weighted calculation of the comprehensive factual consistency score of each tower anti-hallucination verification result, when the comprehensive factual consistency score is lower than a preset safety threshold, the anti-hallucination correction process is triggered to directionally revise the initial test questions to obtain the target test questions.
[0090] Those skilled in the art will clearly understand that the techniques in the embodiments of the present invention can be implemented using software plus necessary general-purpose hardware platforms. Based on this understanding, the technical solutions in the embodiments of the present invention, or the parts that contribute to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium such as a USB flash drive, mobile hard drive, read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk, or other media capable of storing program code. It includes several instructions to cause a computer terminal (which may be a personal computer, server, or a second terminal, network terminal, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention.
[0091] The same or similar parts between the various embodiments in this specification can be referred to mutually. In particular, the terminal embodiments are basically similar to the method embodiments, so the description is relatively simple, and the relevant parts can be referred to the description in the method embodiments.
[0092] In the embodiments provided by this invention, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are merely illustrative. For instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between systems or modules may be electrical, mechanical, or other forms.
[0093] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules; that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0094] In addition, the functional modules in the various embodiments of the present invention can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module.
[0095] Although the present invention has been described in detail with reference to the accompanying drawings and preferred embodiments, the present invention is not limited thereto. Various equivalent modifications or substitutions can be made to the embodiments of the present invention by those skilled in the art without departing from the spirit and essence of the invention, and such modifications or substitutions should all be within the scope of the present invention. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should also be covered within the protection scope of the present invention.
Claims
1. A method for generating test questions, characterized in that, include: Acquire multimodal educational resources and perform cross-modal contrastive learning anchoring and alignment processing on the multimodal educational resources to map educational resources of different modalities to a unified semantic representation space; Construct a knowledge graph of test points containing test point nodes and relationship edges between test points, collect learner answer data, quantify the cognitive dependence strength between each test point through a cognitive diagnostic model, predict the dynamic difficulty of each test point based on the cognitive dependence strength and test point attribute characteristics, and incrementally update the knowledge graph of test points. Based on the learner's cognitive mastery status at each test point, combined with the dynamic difficulty of the target test point in the incrementally updated test point knowledge graph, the target question difficulty is determined, and multimodal educational resources associated with the target test point are retrieved from the semantic representation space. Initial test questions are generated through a multi-agent adversarial debate mechanism. The initial test questions are subjected to multi-tower anti-hallucination verification. The overall factual consistency score is calculated by weighting the results of each tower anti-hallucination verification. When the overall factual consistency score is lower than a preset safety threshold, the anti-hallucination correction process is triggered to revise the initial test questions in a targeted manner to obtain the target test questions.
2. The method for generating test questions according to claim 1, characterized in that, Acquire multimodal educational resources and perform cross-modal contrastive learning anchoring and alignment processing on the multimodal educational resources, including: Modality-adaptive preprocessing was performed on each modality of educational resources to obtain multiple educational resource fragments; For each educational resource segment, a large language model is used in conjunction with the subject teaching syllabus and curriculum standards to anchor test points, generating test point anchor tags corresponding to each educational resource segment; wherein, the test point anchor tags include test point identifier, test point name, test point level, cognitive level, and predecessor and successor relationships based on the test point knowledge graph; A pre-built cross-modal contrastive learning framework is adopted, with the test point anchor labels as anchoring conditions, and cross-modal feature alignment is achieved through an improved supervised contrastive loss function.
3. The method for generating test questions according to claim 2, characterized in that, The construction process of the cross-modal contrastive learning framework is as follows: A cross-modal contrastive learning framework is constructed, comprising a modality-specific encoder group, a cross-modal projection layer, and a test point anchoring and alignment module; wherein, The modal-specific encoder group includes a text encoder, an image encoder, a table encoder, and a formula encoder, which are used to extract the original features of each modal educational resource. The cross-modal projection layer consists of two fully connected network layers, which are used to map the original features of different dimensions to a shared semantic space of a unified dimension to obtain the projection feature vector of each educational resource fragment. The test point anchoring alignment module uses the test point anchoring labels corresponding to each educational resource segment as anchoring conditions and adopts a supervised contrastive learning strategy to perform cross-modal feature alignment. This brings the semantic distance between different modal projection feature vectors with the same test point anchoring labels closer in the shared semantic space, while pushing the semantic distance between different modal projection feature vectors with different test point anchoring labels further apart.
4. The method for generating test questions according to claim 2, characterized in that, The improved supervised contrastive loss function is as follows: In the formula, This represents the projected feature vector of the anchored sample. This represents the projected feature vector of a positive sample. Indicates the first in the batch The projected feature vector of each sample, Here, N represents the temperature hyperparameter, and N represents the batch size. The anchor weight of the test points is determined by both the test point level and the cognitive level. This represents the cosine similarity function.
5. The method for generating test questions according to claim 1, characterized in that, The test point nodes in the test point knowledge graph include attributes such as test point level, cognitive level, historical difficulty, and the number of associated resources; the relationship edges between test points include hierarchical inclusion relationship, similarity relationship, predecessor-successor relationship, and cognitive dependency relationship. The quantification method of the cognitive dependence intensity is as follows: based on the cognitive diagnostic model, estimate the mastery probability of each test point, calculate the difference between the first conditional probability of mastering the subsequent test point under the condition that the preceding test point has not been mastered and the second conditional probability of mastering the subsequent test point under the condition that the preceding test point has been mastered, and use the difference as the cognitive dependence intensity of the preceding test point on the subsequent test point.
6. The method for generating test questions according to claim 1, characterized in that, The multi-agent system includes: A knowledge integration intelligent agent is used to retrieve multi-granular semantic blocks associated with target test points from the semantic representation space and perform cross-modal knowledge fusion to generate a structured knowledge package; The test question drafting agent generates initial test questions based on the structured knowledge package using a thought chain reasoning strategy. The quality review agent is used to quantitatively review the initial test questions based on the accuracy of knowledge points, consistency of facts, suitability of difficulty, standardization of expression, matching of cognitive level, and quality of distractors, and generate a review report. The difficulty calibration agent is used to extract the multidimensional cognitive complexity features of the initial test questions and estimate the difficulty parameters after the initial test questions pass the quality review. When the estimated difficulty deviates from the target test question difficulty, it generates a difficulty adjustment instruction and feeds it back to the test question drafting agent.
7. The method for generating test questions according to claim 6, characterized in that, Multi-agent adversarial debate mechanisms include: The initial test questions generated by the test question drafting agent are sent to the quality review agent to conduct adversarial review of the initial test questions and generate a review report; The test question drafting agent generates a revised version of the test questions based on the list of issues in the review report. The quality review agent reviews the revised test questions and calculates the overall quality gain rate of the current test questions relative to the previous round of test questions. The debate ends when the overall quality gain rate is lower than the preset gain threshold for two consecutive rounds, or the number of revision rounds reaches the preset maximum number of rounds, or the current overall quality gain rate is higher than the preset acceptance threshold. If the current overall quality gain rate is not lower than the preset acceptance threshold, the historical version is selected for output; otherwise, it is marked as requiring manual review.
8. The method for generating test questions according to claim 7, characterized in that, The multi-tower anti-hallucination verification includes: The fact extraction tower is used to call the large language model to perform structured fact extraction operations on the initial test questions, so as to extract factual statements and generate structured fact triples corresponding to each factual statement; The source verification tower is used to extract reference fact triples from the original educational resources corresponding to the semantic representation space, and perform semantic matching between them and the structured fact triples. Based on the proportion of the number of successfully matched fact triples to the total number of structured fact triples, a source consistency score is generated. The common sense and knowledge graph consistency tower is used to verify the consistency between common sense and subject knowledge system of factual statements in the initial test questions.
9. The method for generating test questions according to claim 8, characterized in that, The anti-hallucination correction process includes: Based on the structured fact triples and their confidence scores output by the fact extraction tower, the source consistency score and unmatched fact triple markers output by the source verification tower, the knowledge system consistency score, cross-modal consistency score and consistency conflict alarm information output by the common sense and knowledge graph consistency tower, a structured anti-illusion correction instruction is generated. The structured anti-illusion correction instructions are fed back to the test question drafting agent to perform targeted revision operations on the initial test questions based on the factual consistency conflict items marked in the anti-illusion correction instructions, so as to eliminate the factual inconsistencies in the initial test questions. The multi-tower anti-illusion verification is re-executed on the revised test questions to calculate a new comprehensive factual consistency score. If the new comprehensive factual consistency score is still lower than the preset safety threshold and has not reached the preset correction round, the above anti-illusion correction and multi-tower anti-illusion verification operations are repeated until the comprehensive factual consistency score reaches the preset safety threshold or reaches the preset correction round.
10. A test question generation system, characterized in that, include: A multimodal semantic alignment module is used to acquire multimodal educational resources and perform cross-modal comparative learning anchor alignment processing on the multimodal educational resources to map educational resources of different modalities to a unified semantic representation space. The knowledge graph construction module is used to construct a knowledge graph of test points that includes test point nodes and relationship edges between test points, collect learner answer data, quantify the cognitive dependence strength between each test point through a cognitive diagnostic model, predict the dynamic difficulty of each test point based on the cognitive dependence strength and test point attribute characteristics, and incrementally update the test point knowledge graph. The test question generation module is used to determine the target question difficulty based on the learner's cognitive mastery status at each test point, combined with the dynamic difficulty of the target test point in the incrementally updated test point knowledge graph, and to retrieve multimodal educational resources associated with the target test point from the semantic representation space, and generate initial test questions through a multi-agent adversarial debate mechanism. The anti-hallucination verification module is used to perform multi-tower anti-hallucination verification on the initial test questions. Based on the weighted calculation of the comprehensive factual consistency score of each tower anti-hallucination verification result, when the comprehensive factual consistency score is lower than a preset safety threshold, the anti-hallucination correction process is triggered to directionally revise the initial test questions to obtain the target test questions.
