A heterogeneous test question material intelligent classification and proposition auxiliary generation system and method

By using a heterogeneous test material intelligent classification and test creation assistance system, the historical avoidance bias component is removed, and the attention weight and constraint strength are adjusted. This solves the problems of syntactic coherence and knowledge consistency in autoregressive generation, and achieves complete coherence and knowledge consistency in the generated test questions.

CN123180160APending Publication Date: 2026-11-27SHAANXI TENGFEI ZHIYUAN BOOK CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202611444993.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-17
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In the autoregressive generation process of generative artificial intelligence, the suppression of general syntactic structures by historical avoidance bias and the gradual weakening of target knowledge constraints during long sequence decoding lead to problems in the syntactic coherence and knowledge consistency of the generated content.

Method used

The system employs a heterogeneous test material intelligent classification and question generation system. Through a heterogeneous material standardized parsing unit, a knowledge topology adaptive semantic classification unit, a question strategy parameterized constraint encoding unit, and a restricted attention-oriented generative question generation engine, it removes historical avoidance bias components, adjusts attention weights and constraint strengths, and ensures the grammatical coherence and knowledge consistency of the generated content.

Benefits of technology

It achieves complete coherence in the generated test text, avoids awkward sentences or syntactic breaks, and maintains the constraint effect of target knowledge nodes in long sequence decoding, ensuring that the generated content is consistent with the preset knowledge boundaries.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123180160A_ABST
    Figure CN123180160A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of natural language processing and generative artificial intelligence, and discloses a heterogeneous test question material intelligent classification and proposition auxiliary generation system and method, which comprises the following steps: analyzing test question materials and matching a hierarchical knowledge tree to establish an index, performing orthogonal projection stripping on historical avoidance bias according to a syntactic skeleton to obtain a specific semantic avoidance component, calculating a time-varying attention scaling factor according to a decoding step length to amplify a knowledge topology anchoring weight, cooperatively constructing an attention modulation bias and self-recursively decoding to generate a candidate test question, and outputting a standardized electronic test paper through arbitration inspection. The application eliminates the unexpected suppression of historical avoidance on a known syntactic structure, maintains narrative norms and coherence, compensates for attention attenuation in long-range decoding, blocks tail-end questioning from deviating from the knowledge boundary, and realizes the cooperation of originality and the rigidity of the syllabus constraint.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to an intelligent classification system and method for heterogeneous test material and question generation assistance, belonging to the fields of natural language processing and generative artificial intelligence. Background Technology

[0002] In controlled text generation in generative artificial intelligence, a transformer decoder is typically used for autoregressive generation, and the generation probability of lexical units is adjusted by a guiding vector to control the direction of the generated content. For proposition generation tasks that involve hierarchical knowledge, difficulty requirements, and historical question avoidance requirements, multiple control conditions need to work together in the decoding process. When discrete knowledge nodes, difficulty ratios, and features of used materials are input into the decoding network at the same time, different control biases will be superimposed in the same semantic representation space and are prone to mutual influence. Historical material features also include common interrogative phrases and syntactic conjunctions. If the reverse bias used to avoid historical content is formed directly based on the semantic mean of historical text, it will simultaneously suppress the activation probability of these common syntactic units, resulting in syntactic incoherence and stiff expression in the generated text.

[0003] To improve the syntactic regularity of generated text, existing software-controlled algorithms attempt to introduce prior syntactic knowledge to guide the decoding process. For example, Chinese invention patent application CN115600581A discloses a controlled text generation method using syntactic information. This method extracts dependency syntactic relations around the current input word to construct a local syntactic vector, which is then concatenated with the decoder output to constrain the generated words. However, this type of method only focuses on the superficial reinforcement of local dependencies of individual lexical units, failing to achieve the underlying decoupling of syntactic structural components and specific subject matter context components in the semantic feature space. In the long-sequence autoregressive decoding process, as the number of generated lexical units increases, the key-value cache capacity continuously expands, and the normalization in cross-attention calculation becomes increasingly difficult. As the denominator increases, the attention effect used to constrain the target knowledge content decays non-linearly with the decoding step size. This causes the question statements or deductions in the latter half of the decoding to gradually deviate from the preset syllabus nodes. On the other hand, existing models usually use a globally uniform bias strength, which is difficult to adapt to the different requirements of natural language background description and mathematical symbol derivation on the constraint strength. When entering the formula symbol generation stage, if there is a lack of grammatical balance constraints, formula delimiters may be missing or operator nesting errors may occur. If only the global penalty coefficient is increased or the vocabulary is directly restricted, it is difficult to restore syntactic coherence and may also destroy the smoothness of the word probability distribution, making the decoding process unstable or even divergent when multiple constraints work together.

[0004] Therefore, in the autoregressive generation process, how to reduce the unnecessary suppression of general syntactic structures by historical avoidance bias and alleviate the problem of the gradual weakening of target knowledge constraints during long sequence decoding, so that the generated content remains consistent with the preset knowledge boundary throughout the entire sequence, has become the technical problem to be solved by this invention. Summary of the Invention

[0005] To address the problems in the background art, the technical solution of the present invention is as follows: A system for intelligent classification of heterogeneous test material and question generation assistance, comprising: Heterogeneous material normalization parsing unit, used to output the multimodal normalized test question feature tensor of the test question material; The knowledge topology adaptive semantic classification unit is used to match multimodal normalized test question feature tensors with hierarchical knowledge tree nodes to establish a structured question material index. The propositional strategy parameterized constraint encoding unit is used to transform the propositional parameters and the original historical avoidance bias components into a dynamic guidance vector containing knowledge topology anchoring components, cognitive difficulty guidance components and specific semantic avoidance components. A constrained attention-oriented generative proposition-assisted reasoning engine is used to inject dynamic guiding vectors into multi-head cross-attention streams to decode and generate candidate questions; The question-setting compliance and multi-objective arbitration unit is used to verify candidate questions and output standardized electronic test papers when they are compliant. The propositional strategy parameterized constraint encoding unit is configured with a syntactic decoupling filter subunit, which is used to perform orthogonal projection stripping on the original historical avoidance bias component based on the syntactic skeleton basis vector, and remove the same-direction component to obtain the specific semantic avoidance component. The constrained attention-oriented generative proposition-assisted reasoning engine is configured with a long-sequence attention decay compensation subunit, which is used to calculate a logarithmically increasing time-varying attention scaling factor based on the decoding step size, amplify the weight of the knowledge topology anchoring component, and construct a dynamic attention modulation bias term in combination with the negative attention penalty component.

[0006] Preferably, the heterogeneous material normalization parsing unit is configured with an abstract syntax tree parsing subunit, which is used to identify mathematical logic expressions bounded by specific markers in the test material, parse the operators, variables and nesting levels, and generate symbolic topological paths based on depth-first traversal; the heterogeneous material normalization parsing unit interweaves and splices the symbolic topological paths with natural language text word sequences according to semantic subordinate relationships, and transforms them into fixed-dimensional multimodal normalized test feature tensors through a shared linear projection layer.

[0007] Preferably, in the knowledge topology adaptive semantic classification unit, a graph convolutional network is used to perform topological message passing on the hierarchical knowledge tree containing directed edges of concept affiliation, generating node topology embedding vectors with hierarchical topological associations; the cosine similarity distribution between the multimodal normalized test question feature tensor and the node topology embedding vector is calculated through a double-tower inner product structure, nodes with similarity higher than the preset classification decision threshold are selected as the classification of test question materials, and knowledge point identifiers are marked for the test question materials to establish a structured proposition material index.

[0008] Preferably, the restricted attention-oriented generative proposition-assisted reasoning engine further includes a stage-aware gating adaptive subunit and a formula syntax state machine. The formula syntax state machine is used to detect the natural language text stream and formula delimiters in the decoder output word stream. When in the natural language question stem statement stage, the stage-aware gating adaptive subunit determines the timing gate coefficient based on the ratio of the number of currently decoded words to the maximum length of the question intervention. The timing gate coefficient is used to modulate the initial weight of the knowledge topology anchoring component, so that the weight of the knowledge topology anchoring component monotonically increases to the target baseline weight as the decoding step size advances. When a formula delimiter is detected and the mathematical formula symbol nesting stage is entered, the formula syntax state machine outputs an operator protection signal, triggering the stage-aware gating adaptive subunit to set the negative attention penalty component to zero, switch the weight of the knowledge topology anchoring component to a preset enhancement threshold, and apply a syntax balance mask constraint to the opening and closing brackets and logical nodes of the current operation level according to the abstract syntax tree symbol topology path.

[0009] Preferably, the propositional strategy parameterized constraint encoding unit further includes a knowledge topology orthogonal decomposition subunit; the knowledge topology orthogonal decomposition subunit uses the knowledge topology anchoring component as the reference vector and performs further orthogonal projection decomposition on the specific semantic avoidance component, decomposing it into a projection component along the direction of the knowledge topology anchoring component and an orthogonal avoidance component falling on the orthogonal complement space of the knowledge topology anchoring component; when calculating the negative attention penalty component, the constrained attention-oriented generative proposition-assisted reasoning engine replaces the original avoidance feature with the orthogonal avoidance component, so that the scope of negative attention repulsion is limited to the subject context space outside the target knowledge topology space, and the core semantic vector magnitude of the target knowledge topology anchoring component in the multi-head cross attention channel is not attenuated.

[0010] Preferably, the constrained attention-oriented generative proposition-assisted reasoning engine uses a transformer decoder as its backbone. Within the key and value vector calculation channels of the autoregressive multi-head cross-attention, a dynamic attention modulation bias term generated by a dynamic guiding vector mapping is superimposed. This dynamic attention modulation bias term is a linear combination of three orthogonal bias components: a first positive attention component, weighted and amplified by a time-varying attention scaling factor and calculated as the inner product of the candidate lexical key vector and the knowledge topology anchoring component; a negative attention penalty component, calculated as the inner product of the candidate lexical key vector and the specific semantic avoidance component; and a second positive attention component, calculated based on the cognitive difficulty guiding component via a cognitive difficulty lexical bias function. By superimposing the dynamic attention modulation bias term during the lexical probability decoding stage, the activation weight of concept lexicals associated with the target knowledge node is increased, while the generation probability of contextual narrative lexicals similar to previously used test questions is suppressed.

[0011] Preferably, in the long sequence attention decay compensation subunit, the time-varying attention scaling factor is set to 1 at the initial step size of autoregressive decoding, and increases logarithmically with the increase of the ratio of the decoded step size to the preset reference decay step size. When the autoregressive generation progresses to the long sequence stage containing multiple sub-questions and step-by-step parsing steps, the long sequence attention decay compensation subunit refreshes the value of the time-varying attention scaling factor in real time according to the current decoding step size. By increasing the multiplicative scaling factor of the weight of the knowledge topology anchoring component in the multi-head cross attention flow, the soft maximization normalization denominator expansion effect caused by the linear accumulation of key value cache is offset, so that the attention distribution of each word at the end of the long text generation maintains the selection probability focus on the target knowledge tree node, and prevents the end generation from deviating from the knowledge boundary of the syllabus.

[0012] Preferably, the arbitration unit for test paper compliance and multi-objective test paper further includes an independent dimension error decoupling judgment subunit. The independent dimension error decoupling judgment subunit is used to independently compare the knowledge point alignment deviation of candidate test questions, the absolute deviation between predicted difficulty and target difficulty, and the historical maximum similarity with preset single-item tolerance thresholds. When the comprehensive compliance score does not reach the preset admission threshold, the independent dimension error decoupling judgment subunit locks the control dimension parameters that meet the single-item tolerance threshold and keeps them unchanged, only determines the target control dimension that exceeds the single-item tolerance threshold, performs unidirectional discrete step-by-step fine-tuning on the bias adjustment coefficient corresponding to the target control dimension that exceeds the tolerance threshold, and feeds the fine-tuned parameters back to the constrained attention-oriented generative test-supporting reasoning engine to drive local resampling.

[0013] Preferably, it also includes a typesetting output subunit, which is connected to the question compliance and multi-objective arbitration unit of the test paper. The typesetting output subunit is used to receive compliant candidate test questions that have passed the verification by the question compliance and multi-objective arbitration unit of the test paper, perform structured typesetting and splicing according to the topology configuration sequence of each question type, and render and output a standardized electronic test paper including the test paper title bar, candidate information bar, answer area for each major question, score mark and standard reference answer analysis.

[0014] A method for intelligent classification and question generation assistance of heterogeneous test material, used to run a system for intelligent classification and question generation assistance of heterogeneous test material, includes the following steps: Step S1: Analyze the test material using the heterogeneous material normalization parsing unit and output the multimodal normalized test feature tensor; Step S2: Use the knowledge topology adaptive semantic classification unit to match the multimodal normalized test question feature tensor and hierarchical knowledge tree nodes to establish a structured proposition material index; Step S3: The propositional strategy parameterized constraint encoding unit is used to transform the propositional parameters and the original historical avoidance bias components into a dynamic guidance vector containing knowledge topology anchoring components, cognitive difficulty guidance components and specific semantic avoidance components. Among them, the syntactic decoupling filtering subunit is used as the basis of the extracted syntactic skeleton basis vector representing the general question guide and the declarative conjunction. Orthogonal projection stripping is performed on the original historical avoidance bias components composed of the semantic mean of the used test items, and the same-direction projection components are removed to obtain the specific semantic avoidance components. Step S4: A constrained attention-oriented generative proposition-assisted reasoning engine is used to inject dynamic guidance vectors into the multi-head cross-attention flow to decode and generate candidate questions. In this process, a time-varying attention scaling factor that monotonically increases with the logarithm of the step size is calculated using a long sequence attention decay compensation subunit based on the ratio of the decoding step size to the reference decay step size. This amplifies the weight of the knowledge topology anchoring component in the multi-head cross-attention flow and combines it with a negative attention penalty component generated based on the specific semantic avoidance component to construct a dynamic attention modulation bias term. Step S5: Utilize the question compliance and multi-objective arbitration unit of the test paper to determine the semantic representation of candidate test questions. If the standard is not met, feedback correction parameters are provided to trigger resampling. If the standard is met, a standardized electronic test paper is output.

[0015] Compared with the prior art, the beneficial effects of the present invention are: 1. In a system and method for intelligent classification of heterogeneous test materials and question generation assistance, the original historical avoidance bias component is orthogonally projected and stripped by the syntactic skeleton basis vector to obtain a specific semantic avoidance component. This allows historical test material avoidance to mainly act on the subject matter and context content that is unrelated to the topology of the target knowledge, without suppressing normal syntactic components such as general question introductory phrases and declarative conjunctions. As a result, while reducing the overlap between generated test materials and historical themes, the normal generation of commonly used sentence patterns and connection structures can be maintained, making the test text more complete and coherent, and avoiding awkward sentences or syntactic breaks caused by historical avoidance.

[0016] 2. To address the issue of continuously increasing key-value cache and gradually weakening target knowledge constraints in long-sequence autoregressive decoding, a time-varying attention scaling factor is adjusted with the decoding step size to continuously compensate the attention weights of the knowledge topology anchoring components. This ensures that the target knowledge nodes maintain sufficient constraint in the later stages of decoding, thereby reducing the likelihood of complex questions gradually deviating from the preset knowledge range during subsequent questioning and derivation. This ensures that the content of longer questions remains consistent with the target knowledge nodes from beginning to end, avoiding tail-end knowledge drift.

[0017] 3. By combining the formula grammar state machine with the stage-aware gating adaptive sub-unit, the intensity of attention constraints is adjusted according to the different characteristics of the natural language question stem statement stage and the mathematical formula symbol nesting stage. This allows necessary space for topic conception to be retained during natural language generation, while strengthening the constraints on knowledge content and symbol structure after entering the formula generation stage. This avoids the problem stem expression becoming too rigid due to excessive constraints, and also reduces the occurrence of errors in formula delimiters, operator levels, and nesting structures, so that the generated test questions take into account both the naturalness of language expression and the rigor of mathematical deduction. Attached Figure Description

[0018] Figure 1 This is a flowchart of the limited attention-oriented proposition generation process of the present invention; Figure 2 This is the state machine transition diagram for the formula syntax of this invention.

[0019] The objectives, features, and advantages of this invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0020] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.

[0021] A system for intelligent classification and question generation of heterogeneous test materials, comprising: Heterogeneous material normalization parsing unit, used to output the multimodal normalized test question feature tensor of the test question material; The knowledge topology adaptive semantic classification unit is used to match multimodal normalized test question feature tensors with hierarchical knowledge tree nodes to establish a structured question material index. The propositional strategy parameterized constraint encoding unit is used to transform the propositional parameters and the original historical avoidance bias components into a dynamic guidance vector containing knowledge topology anchoring components, cognitive difficulty guidance components and specific semantic avoidance components. A constrained attention-oriented generative proposition-assisted reasoning engine is used to inject dynamic guiding vectors into multi-head cross-attention streams to decode and generate candidate questions; The question-setting compliance and multi-objective arbitration unit is used to verify candidate questions and output standardized electronic test papers when they are compliant. The propositional strategy parameterized constraint encoding unit is configured with a syntactic decoupling filter subunit, which is used to perform orthogonal projection stripping on the original historical avoidance bias component based on the syntactic skeleton basis vector, and remove the same-direction component to obtain the specific semantic avoidance component. The constrained attention-oriented generative proposition-assisted reasoning engine is configured with a long-sequence attention decay compensation subunit, which is used to calculate a logarithmically increasing time-varying attention scaling factor based on the decoding step size, amplify the weight of the knowledge topology anchoring component, and construct a dynamic attention modulation bias term in combination with the negative attention penalty component.

[0022] Preferably, the heterogeneous material normalization parsing unit is configured with an abstract syntax tree parsing subunit, which is used to identify mathematical logic expressions bounded by specific markers in the test material, parse the operators, variables and nesting levels, and generate symbolic topological paths based on depth-first traversal; the heterogeneous material normalization parsing unit interweaves and splices the symbolic topological paths with natural language text word sequences according to semantic subordinate relationships, and transforms them into fixed-dimensional multimodal normalized test feature tensors through a shared linear projection layer.

[0023] Preferably, in the knowledge topology adaptive semantic classification unit, a graph convolutional network is used to perform topological message passing on the hierarchical knowledge tree containing directed edges of concept affiliation, generating node topology embedding vectors with hierarchical topological associations; the cosine similarity distribution between the multimodal normalized test question feature tensor and the node topology embedding vector is calculated through a double-tower inner product structure, nodes with similarity higher than the preset classification decision threshold are selected as the classification of test question materials, and knowledge point identifiers are marked for the test question materials to establish a structured proposition material index.

[0024] Preferably, the restricted attention-oriented generative proposition-assisted reasoning engine further includes a stage-aware gating adaptive subunit and a formula syntax state machine. The formula syntax state machine is used to detect the natural language text stream and formula delimiters in the decoder output word stream. When in the natural language question stem statement stage, the stage-aware gating adaptive subunit determines the timing gate coefficient based on the ratio of the number of currently decoded words to the maximum length of the question intervention. The timing gate coefficient is used to modulate the initial weight of the knowledge topology anchoring component, so that the weight of the knowledge topology anchoring component monotonically increases to the target baseline weight as the decoding step size advances. When a formula delimiter is detected and the mathematical formula symbol nesting stage is entered, the formula syntax state machine outputs an operator protection signal, triggering the stage-aware gating adaptive subunit to set the negative attention penalty component to zero, switch the weight of the knowledge topology anchoring component to a preset enhancement threshold, and apply a syntax balance mask constraint to the opening and closing brackets and logical nodes of the current operation level according to the abstract syntax tree symbol topology path.

[0025] Preferably, the propositional strategy parameterized constraint encoding unit further includes a knowledge topology orthogonal decomposition subunit; the knowledge topology orthogonal decomposition subunit uses the knowledge topology anchoring component as the reference vector and performs further orthogonal projection decomposition on the specific semantic avoidance component, decomposing it into a projection component along the direction of the knowledge topology anchoring component and an orthogonal avoidance component falling on the orthogonal complement space of the knowledge topology anchoring component; when calculating the negative attention penalty component, the constrained attention-oriented generative proposition-assisted reasoning engine replaces the original avoidance feature with the orthogonal avoidance component, so that the scope of negative attention repulsion is limited to the subject context space outside the target knowledge topology space, and the core semantic vector magnitude of the target knowledge topology anchoring component in the multi-head cross attention channel is not attenuated.

[0026] Preferably, the constrained attention-oriented generative proposition-assisted reasoning engine uses a transformer decoder as its backbone. Within the key and value vector calculation channels of the autoregressive multi-head cross-attention, a dynamic attention modulation bias term generated by a dynamic guiding vector mapping is superimposed. This dynamic attention modulation bias term is a linear combination of three orthogonal bias components: a first positive attention component, weighted and amplified by a time-varying attention scaling factor and calculated as the inner product of the candidate lexical key vector and the knowledge topology anchoring component; a negative attention penalty component, calculated as the inner product of the candidate lexical key vector and the specific semantic avoidance component; and a second positive attention component, calculated based on the cognitive difficulty guiding component via a cognitive difficulty lexical bias function. By superimposing the dynamic attention modulation bias term during the lexical probability decoding stage, the activation weight of concept lexicals associated with the target knowledge node is increased, while the generation probability of contextual narrative lexicals similar to previously used test questions is suppressed.

[0027] Preferably, in the long sequence attention decay compensation subunit, the time-varying attention scaling factor is set to 1 at the initial step size of autoregressive decoding, and increases logarithmically with the increase of the ratio of the decoded step size to the preset reference decay step size. When the autoregressive generation progresses to the long sequence stage containing multiple sub-questions and step-by-step parsing steps, the long sequence attention decay compensation subunit refreshes the value of the time-varying attention scaling factor in real time according to the current decoding step size. By increasing the multiplicative scaling factor of the weight of the knowledge topology anchoring component in the multi-head cross attention flow, the soft maximization normalization denominator expansion effect caused by the linear accumulation of key value cache is offset, so that the attention distribution of each word at the end of the long text generation maintains the selection probability focus on the target knowledge tree node, and prevents the end generation from deviating from the knowledge boundary of the syllabus.

[0028] Preferably, the arbitration unit for test paper compliance and multi-objective test paper further includes an independent dimension error decoupling judgment subunit. The independent dimension error decoupling judgment subunit is used to independently compare the knowledge point alignment deviation of candidate test questions, the absolute deviation between predicted difficulty and target difficulty, and the historical maximum similarity with preset single-item tolerance thresholds. When the comprehensive compliance score does not reach the preset admission threshold, the independent dimension error decoupling judgment subunit locks the control dimension parameters that meet the single-item tolerance threshold and keeps them unchanged, only determines the target control dimension that exceeds the single-item tolerance threshold, performs unidirectional discrete step-by-step fine-tuning on the bias adjustment coefficient corresponding to the target control dimension that exceeds the tolerance threshold, and feeds the fine-tuned parameters back to the constrained attention-oriented generative test-supporting reasoning engine to drive local resampling.

[0029] Preferably, it also includes a typesetting output subunit, which is connected to the question compliance and multi-objective arbitration unit of the test paper. The typesetting output subunit is used to receive compliant candidate test questions that have passed the verification by the question compliance and multi-objective arbitration unit of the test paper, perform structured typesetting and splicing according to the topology configuration sequence of each question type, and render and output a standardized electronic test paper including the test paper title bar, candidate information bar, answer area for each major question, score mark and standard reference answer analysis.

[0030] A method for intelligent classification and question generation assistance of heterogeneous test material, used to run a system for intelligent classification and question generation assistance of heterogeneous test material, includes the following steps: Step S1: Analyze the test material using the heterogeneous material normalization parsing unit and output the multimodal normalized test feature tensor; Step S2: Use the knowledge topology adaptive semantic classification unit to match the multimodal normalized test question feature tensor and hierarchical knowledge tree nodes to establish a structured proposition material index; Step S3: The propositional strategy parameterized constraint encoding unit is used to transform the propositional parameters and the original historical avoidance bias components into a dynamic guidance vector containing knowledge topology anchoring components, cognitive difficulty guidance components and specific semantic avoidance components. Among them, the syntactic decoupling filtering subunit is used as the basis of the extracted syntactic skeleton basis vector representing the general question guide and the declarative conjunction. Orthogonal projection stripping is performed on the original historical avoidance bias components composed of the semantic mean of the used test items, and the same-direction projection components are removed to obtain the specific semantic avoidance components. Step S4: A constrained attention-oriented generative proposition-assisted reasoning engine is used to inject dynamic guidance vectors into the multi-head cross-attention flow to decode and generate candidate questions. In this process, a time-varying attention scaling factor that monotonically increases with the logarithm of the step size is calculated using a long sequence attention decay compensation subunit based on the ratio of the decoding step size to the reference decay step size. This amplifies the weight of the knowledge topology anchoring component in the multi-head cross-attention flow and combines it with a negative attention penalty component generated based on the specific semantic avoidance component to construct a dynamic attention modulation bias term. Step S5: Utilize the question compliance and multi-objective arbitration unit of the test paper to determine the semantic representation of candidate test questions. If the standard is not met, feedback correction parameters are provided to trigger resampling. If the standard is met, a standardized electronic test paper is output.

[0031] Example 1: In the implementation scenario of standardized high school mathematics assessment test paper problem-solving, the system faces unstructured materials containing multi-layered nested formulas and markup languages ​​in multi-source question bank documents. The heterogeneous material normalization parsing unit retrieves the text sequence of test material through a high-speed data stream interface. It uses the abstract syntax tree parsing subunit to traverse the mathematical symbolic expressions bounded by specific syntax tags, extracts the nesting levels of operators and variables, and constructs a symbolic topology path based on depth-first traversal. This parsing unit interweaves the symbolic topology path with the natural language word sequence according to semantic subordinate relationships, and transforms it through a shared linear projection layer into a multimodal normalized test feature tensor with a uniform dimension of 768. Subsequently, the knowledge topology adaptive semantic classification unit calls the graph computation acceleration node, which loads a hierarchical knowledge tree containing chapter and final-level concept nodes. Hierarchical knowledge tree Contains a set of nodes With the set of directed edges A two-layer graph convolutional network is used to aggregate topological messages between nodes, outputting a 768-dimensional topological embedding vector for each knowledge node. ,in, Identify knowledge nodes; compute multimodal normalized test feature tensors using a dual-tower inner product network. With each node's topological embedding vector Cosine similarity distribution between ,in, Let cosine similarity scalar value be the normalized question feature tensor and the node topological embedding vector. Let be the Euclidean norm of the characteristic tensor. The Euclidean norm of the topological embedding vector is used; target knowledge nodes with similarity higher than the preset classification decision threshold of 0.75 are selected, labeled with knowledge point identifiers, and written into the structured proposition material index to eliminate semantic shift caused by the difference between cross-modal mathematical symbols and natural language expression feature space.

[0032] When the test setters specify the requirement for a comprehensive final question covering derivative applications and inequality proofs via an interactive interface, the test-setting strategy parameterized constraint encoding unit retrieves the weighting ratio of easy questions. Weighting of medium-difficulty questions Weighting of difficult problems The tiered difficulty index, with the sum of preset percentage weights for easy, medium, and difficult questions, satisfies... Through the weighted expectation discount formula Output a continuous expected difficulty scale with values ​​between 0 and 1. The values ​​0.2, 0.5, and 0.8 represent the pre-defined baseline expected difficulty constants for easy, medium, and difficult questions, respectively. Sub-units are arranged using a cognitive load ladder based on integer conversion relationships. Calculate and derive the step budget value in the problem-solving section. ,in, This is a rounding operator for integers. To characterize the depth of solution steps, a discrete integer counting budget is used. The relationship between the aforementioned baseline constants and the step budget is determined according to the standards and specifications of educational measurement statistics and examinations. The baseline difficulty constants of 0.2, 0.5, and 0.8 are respectively derived from the statistical median inversion mapping of the pass rates of easy questions (0.8), medium-difficulty questions (0.5), and difficult questions (0.2) in the standardized mathematics examination syllabus over the years, and are used to correspond to the cognitive expectation values ​​of different question type gradients. In deriving the step budget conversion relationship, the high school mathematics assessment specifications require that standardized solution questions contain at least one basic scoring step, and the highest thinking level usually does not exceed five progressive derivation levels. Therefore, the basic number of steps is set to 1, and the continuous difficulty increment between 0 and 1 is amplified by a factor of 4 and rounded to the nearest integer, so that the derivation step budget value is 1 step when the difficulty is lowest and corresponds to 5 steps when the difficulty reaches the peak of 1, forming a derivation level mapping corresponding to the teaching evaluation standards. At the same time, this unit selects its own knowledge scope set. Extract the node topological embedding vector and calculate the mean-normalized vector as the knowledge topological anchoring component. ,in, To determine the total number of nodes within the selected knowledge scope set, For the first The topological embedding vector of each selected node; the semantic mean of used questions is extracted from the pre-assembled question bank within a preset 30-day time window to form the original historical avoidance bias component. To address the limitation of general autoregressive generative models in suppressing standard mathematical expressions and general syntax during negative avoidance, the syntactic decoupling filter subunit utilizes pre-statistically extracted unit-length syntactic skeleton basis vectors of subject-specific general question introductory phrases and declarative conjunctions. The biased component of avoiding the original history After performing orthogonal projection stripping and removing the same-direction projection components along the syntactic skeleton, specific semantic avoidance components belonging to the topic's background theme are extracted. ,in, The inner product scalar of the projection of the original history-avoiding bias component onto the syntactic skeleton basis vectors. The modulus of the basis vectors of the syntactic skeleton is given; based on this, the knowledge topology orthogonal decomposition subunits are anchored by the knowledge topology. Using the reference projection axis, for specific semantic avoidance components By performing Schmidt orthogonal decomposition, we can decouple the components in the same direction along the knowledge topology anchoring component and the orthogonally avoiding components located in the orthogonal complement space of the knowledge topology anchoring component. ,in, Satisfy its anchoring components with knowledge topology The inner product is zero, which restricts the negative repulsion domain to the subject manifold outside the target knowledge topology space, ensuring that the core semantic vector magnitude of the target knowledge topology anchoring component in the multi-head cross attention flow is not weakened.

[0033] The attention-bound generative proposition-assisted reasoning engine receives components containing knowledge topology anchoring. , by continuous expectation difficulty scale Derivation of step budget values The cognitive difficulty-oriented component of representation, and the specific semantic avoidance component. The dynamic guidance vector and the negative attention penalty component are calculated by the inner product of the candidate word key vector and the specific semantic avoidance component; when knowledge topology orthogonal decomposition subunits participate in the calculation, the orthogonal avoidance component is used. The original avoidance feature is replaced, and a dynamic attention modulation bias term is superimposed on the autoregressive multi-head cross-attention computation channel of the 12-head converter decoder. ,in, This represents the current decoded step size. This represents the meta-index position of the current candidate word. For the first The key vector of candidate words, A knowledge anchoring strength benchmark coefficient is set with an initial value of 2.4. The historical avoidance penalty coefficient is set to an initial value of 1.6. This is the difficulty modulation factor, with an initial value of 1.1. The cognitive difficulty lexical bias function is used; the dynamic attention modulation bias term adjusts the lexical generation probability through two channels: the first channel acts on the attention calculation stage, using the knowledge topology anchoring component as a positive external guidance representation and the specific semantic avoidance component as a negative external guidance representation; when the knowledge topology orthogonal decomposition subunit participates in the calculation, the orthogonal avoidance component replaces the negative external guidance representation. The two types of representations are respectively calculated by dot product with the input context key vector and weighted and superimposed into the attention score matrix, strengthening the attention to the knowledge concepts in the syllabus and attenuating the semantic response of historically used topics; the second channel acts on the word probability prediction stage at the decoder output, solving... The latent state vector output from the top layer of the encoder is projected onto the unconstrained prediction score distribution of all vocabulary words through a classification linear layer. The cognitive difficulty word bias function, as a one-dimensional additive bias vector, is directly accumulated item by item into the prediction score of the corresponding candidate word word. Then, it is mapped to the final decoding probability of each candidate word word through a normalized exponential function. This achieves end-to-end closed-loop control from attention latent space constraints to discrete vocabulary output probability suppression while maintaining the internal tensor dimension consistency of the attention mechanism. Addressing the technical problem of initial knowledge prior weight decay caused by the continuous expansion of the key-value cache during long sequence generation, the long sequence attention decay compensation subunit is based on the current decoded step size. With preset reference decay step size Real-time calculation of logarithmically monotonically increasing time-varying attention scaling factor ,in, Set to 50 steps. A preset energy level compensation gain coefficient, set to 0.35, is used to apply a time-varying multiplicative amplification to the weights of the knowledge topology anchoring components in the multi-head cross-attention flow. During the autoregressive generation stage in the natural language contextual question stem phase, the formula syntax state machine scans and outputs the word stream and text stream state identifier in real time. The stage-aware gating adaptive subunit operates according to the decoding step size. Question Intervention Setting Maximum Length The ratio is used to calculate the timing release gating coefficient. ,in, Set to 100 steps, dynamically adjust the knowledge anchoring strength in attention modulation. This allows the first half of the question stem to have the lexical selection sampling space required for constructing the question context.

[0034] When a mathematical formula delimiter appears in the decoded word stream, the formula syntax state machine captures the delimiter and outputs an operator protection signal, triggering the phase perception gated adaptive subunit to negatively apply the historical avoidance penalty coefficient to the attention penalty component. The transient zeroing sets the knowledge anchoring strength coefficient in the first positive attention component to zero. Switching to the preset enhancement threshold of 3, the engine applies syntax balance mask constraints to the opening and closing brackets and logical nodes of the current operation level based on the topological path of the abstract syntax tree symbols; the inference engine combines cognitive difficulty lexical bias functions. Derivation of step budget values The system maintains a problem-solving step counter to ensure coherence of the question stem narrative, alignment of long-term tail-end questions with the syllabus, and tight closure of formula syntax throughout the entire decoding process. In the controlled decoding architecture of this inference engine, the actual target of long-sequence attention decay compensation covers the attention calculation loop in the decoder that interacts with historical lexical units: In the multi-step autoregressive generation process, for each step forward by the decoder, the number of historical lexical key-value pairs stored in the self-attention layer and the pre-deduction memory cache increases by one, and the cumulative generated lexical sequence continues to grow, causing the exponential weighted denominator of the normalization calculation of the historical context inside the decoder to expand linearly. The relative weight of the statically injected knowledge topology prior bias decreases when interacting with the ever-growing historical context sequence. This embodiment uses a time-varying attention scaling factor that monotonically increases with the logarithm of the step size to implement forward dynamic gain amplification of the knowledge topology anchoring component in the injection channel to compensate for the attention energy decay caused by the lengthening of the generated sequence. This ensures that when the decoding of complex questions progresses to the end of the long sequence at the 100th or even 120th step, the model's attention allocation probability for the target syllabus concept remains above the preset focus threshold.

[0035] The test paper compliance and multi-objective arbitration unit receives the candidate test question text sequence generated by the inference engine and extracts the comprehensive feature vector of the candidate test questions using a lightweight bidirectional feature extraction network. Determine its relationship with the knowledge topology anchoring component. The cosine similarity was calculated, and the knowledge point alignment deviation was obtained by subtracting the cosine similarity from 1; the prediction difficulty was determined using a multi-layer cognitive assessment network. And calculate the expected difficulty scale. The absolute deviation was compared with the historical test question bank of the past 30 days. Feature vectors of each question To obtain the highest historical similarity, the arbitration unit calculates a comprehensive compliance score that includes a weighted combination of three indicators. ,in, , , Let be the weighted allocation coefficients, taking values ​​of 0.4, 0.35, and 0.25 respectively. The sum of these three coefficients satisfies... In the specific structural implementation, the lightweight bidirectional feature extraction network adopts a 4-layer bidirectional gated recurrent network structure. It receives the sequence tensor obtained by word embedding transformation of the candidate question word sequence. By concatenating the hidden states in the forward and backward time steps and propagating forward, it captures the contextual semantic association of the entire question. The bidirectional concatenated hidden state of the last time step is input into a linear output layer with a dimension of 768, and the output is a fixed 768-dimensional comprehensive feature vector. The multi-layer cognitive evaluation network consists of a feedforward neural network with a 3-layer fully connected topology. The input is directly connected to the above 768-dimensional comprehensive feature vector. The number of neurons in the intermediate hidden layers is set to 512 and 256 respectively. The hidden layers are connected by a linear rectified activation function. The output layer outputs a scalar prediction difficulty between 0 and 1 through a single-node logical activation function. Before deployment, both types of networks are jointly trained offline based on a sample set of 12,000 labeled questions covering all test points in high school mathematics. The cosine similarity mean square error loss function and the regression absolute error loss function are used respectively. After optimizing and solidifying the network parameters, they are deployed in the arbitration unit. When the comprehensive compliance score is used... When the error falls below the preset threshold of 0.85, the independent dimension error decoupling judgment subunit will determine the knowledge point alignment deviation and the absolute difficulty deviation. The historical maximum similarity is independently compared with the corresponding preset single-item tolerance threshold; if it is determined that only the absolute deviation of difficulty exceeds the single-item tolerance threshold by 0.2, the arbitration unit locks the knowledge anchoring strength benchmark coefficient that meets the single-item tolerance threshold. Historical avoidance penalty coefficient The difficulty adjustment coefficient remains constant, and is adjusted only based on the polarity of the difficulty deviation for items exceeding the individual tolerance threshold. One-way discrete stepping adjustment is applied and fed back to the inference engine to drive local resampling, avoiding parameter coupling oscillations across control dimensions; after candidate questions pass the verification, they enter the typesetting and output sub-unit, and complete the structured assembly of question stems, sub-questions, step-by-step reference analysis and scoring details according to the topological configuration sequence of each question type, and render and output electronic test papers that conform to the standardized test specification typesetting format.

[0036] Example 2: This example verifies the system's operational stability and question generation accuracy under multi-source heterogeneous test material input and complex constraint interaction conditions. The experimental test platform is deployed on a computing cluster containing a 64-core CPU with dual 3GHz clock speeds, 512GB of system memory, and eight tensor operation accelerator cards with 80GB of video memory each. Nodes communicate with each other via a high-speed interconnect network with a bandwidth of 200Gbps. The test material data source is extracted from a standardized test material set covering the entire high school mathematics syllabus, containing 12,000 unstructured test questions with mathematical formula markers and hierarchical knowledge tags, as well as a historical test question database. The system loads the text feature vectors of 120 major questions output from the previous 30-day period. To simulate common data disturbances in actual network transmission and scanning recognition environments, Gaussian word perturbation noise with a signal-to-noise ratio of 20dB is added to the natural language sequence of the input test material. Redundant delimiters with a 5% probability are injected into the mathematical formula marker sequence. The attenuation step size is considered during parameter configuration. The setting is based on a balance between the attention dilution rate during the long-range generation stage and the initial semantic memory cycle. If the setting value is too small, the weight gain will saturate prematurely and suppress contextual diversity; if the setting value is too large, it will fail to provide sufficient topological constraints in the question segments of the second and third parts of the problem. Therefore, [the setting value is not specified in the provided text]. Calibration is set to 50 steps; energy level compensation gain coefficient The selection of values ​​serves the conservation of long-range attention variance. When the value is below 0.1, it cannot compensate for the topological bias dilution caused by key-value cache expansion. When it is above 0.6, it causes excessive sharpening of the vocabulary probability at the decoding tail, inducing repetition. Therefore, it is based on the stability calibration of multi-step autoregressive cross-entropy. Initial value of the knowledge anchoring strength benchmark coefficient in the basic control parameters The initial value of the historical avoidance penalty coefficient is set to 2.4. The initial value of the difficulty modulation coefficient is set to 1.6. Set to 1.1, maximum length of the question intervention is set. The standard operating condition control baseline is set at 100 steps. The above basic control parameters and switching thresholds are determined through parameter grid search and ablation experiments: In the test experiment with a step of 0.2, the knowledge anchoring strength baseline coefficient cannot resist the semantic divergence of free sampling when the value is below 1.8, causing the similarity of knowledge point alignment to drop below 85%. When the value is above 3.2, it induces the model to repeat professional vocabulary of knowledge points. Under the condition of taking into account diversity and knowledge constraints, 2.4 is selected and switched to 3 when entering the formula stage; When the historical avoidance penalty coefficient is below 1.2, it cannot effectively avoid recently issued questions. When it is above 2, it excessively suppresses common modifiers in the question context statement. Therefore, the initial value is set to 1.6; When the difficulty modulation coefficient is below 0.8, it cannot effectively separate the vocabulary bias of different levels. When it is above 1.5, it causes the word element distribution to become too sharp and causes grammatical breaks. Therefore, the initial value is set to 1.1.

[0037] In the multidimensional comparative test, the system received expected question configurations covering three typical gradients: basic consolidation, ability enhancement, and advanced difficulty. It also included a partially missing control group to verify the function of each core mechanism and an out-of-range control group to verify the boundaries of control parameters. Experimental groups 1 to 3 were loaded with target expected difficulty scales. , and Fully enable syntactic skeleton basis vectors Orthogonal projection stripping, knowledge topology anchoring components Orthogonal complement space decomposition, time-varying attention scaling factor The dynamic amplification, formula syntax state machine and stage-aware gating adaptive subunit, and local resampling driven by the independent dimension error decoupling judgment subunit; control group 1 removes the syntax decoupling filtering subunit and directly converts the original historical avoidance bias component. Inject attention channels; Control group 2 removes knowledge topological orthogonal decomposition sub-units and directly adopts specific semantic avoidance components. Apply a negative penalty; control group 3 will compensate the gain coefficient of the energy level. Zeroing out long sequence attention decay compensation; control group 4 disables the formula syntax state machine and stage-aware gating adaptive subunit, using static parameter matrices throughout; control group 5 disables the fractal judgment of the independent dimension error decoupling judgment subunit, and adjusts the parameter matrix accordingly when the comprehensive compliance score fails to meet the standard. , , Apply full-dimensional synchronous adjustment; for out-of-range control groups 1 to 4, select extreme parameters that exceed the working window, and record the key state quantities and final test paper generation quality indicators of each group when the decoding long sequence is advanced to step 120.

[0038] Under complete constraints, when the decoding of Experiment Group 1 progressed to step 120, the time-varying attention scaling factor... The similarity score is 1.43, the knowledge point alignment similarity is 0.92, and the absolute deviation of the target difficulty is... The score is 0.02, the highest historical similarity is 0.08, the formula syntax closure rate is 99.4%, and the overall compliance score is [missing information]. The value was 0.941, and the verification was completed after one local resampling; in test group 2, under the same processing link, The similarity score was 1.43, the knowledge point alignment similarity was 0.93, the absolute deviation of the target difficulty was 0.02, the historical maximum similarity was 0.07, the formula grammar closure rate was 99.1%, and the comprehensive compliance score was 0.948. Verification was completed after one local resampling. In Experiment 3, the target expected difficulty scale was increased to 0.725. The score remains at 1.43, the knowledge point alignment similarity is 0.91, the target difficulty absolute deviation is 0.015, the historical maximum similarity is 0.06, the formula syntax closure rate is 98.6%, and the comprehensive compliance score is 0.944. The verification was completed after two local resampling operations. The independent dimension error decoupling judgment subunit uses the knowledge point alignment similarity measured by each group to form the knowledge point alignment deviation, and enters the corresponding single-item tolerance threshold judgment along with the target difficulty absolute deviation and the historical maximum similarity.

[0039] After the syntactic decoupling filter subunit was removed, control group 1 used a target expected difficulty scale of 0.53, and decoded to step 120. The score was 1.43; after the original historical avoidance bias component directly entered the attention channel, negative repulsion simultaneously acted on the regular question prompts and declarative conjunctions, reducing the knowledge point alignment similarity to 0.81, the absolute deviation of the target difficulty to 0.16, the maximum historical similarity to 0.18, the formula grammar closure rate to 92.3%, the comprehensive compliance score to 0.823, and after 4 iterations of local resampling, control group 2 maintained the target expected difficulty scale of 0.53 and After removing the knowledge topology orthogonal decomposition sub-units, the specific semantic avoidance component directly participates in the negative penalty, the knowledge point alignment similarity drops to 0.72, the target difficulty absolute deviation is 0.14, the historical maximum similarity is 0.15, the formula syntax closure rate is 91.5%, the comprehensive compliance score is 0.802, and the local resampling iteration is 5 times.

[0040] In control group 3, where long-sequence attention decay compensation was disabled, the target expected difficulty scale remained at 0.53, and the energy level compensation gain coefficient... After setting it to zero, the time-varying attention scaling factor in step 120 remains at 1. Under this condition, the constraint on the target knowledge node at the decoding tail is weakened, the knowledge point alignment similarity drops to 0.74, the absolute deviation of the target difficulty is 0.18, the historical maximum similarity is 0.14, the formula syntax closure rate is 94.2%, the comprehensive compliance score is 0.798, and the local resampling iteration is performed 5 times. The control group 4 uses a target expected difficulty scale of 0.53 and... After disabling the formula syntax state machine and the stage-aware gating adaptive subunit, the corresponding negative penalty switching and syntax balance mask are no longer executed within the formula delimiter. The knowledge point alignment similarity is 0.82, the target difficulty absolute deviation is 0.15, the historical maximum similarity is 0.12, the formula syntax closure rate drops to 61.4%, the comprehensive compliance score is 0.846, and the local resampling iteration is 6 times. The control group 5 uses a target expected difficulty scale of 0.53 and... Adjustments will be made simultaneously if the overall compliance score fails to reach the preset admission threshold of 0.85. , and The knowledge point alignment similarity was 0.83, the absolute deviation of the target difficulty was 0.17, the historical maximum similarity was 0.16, the formula grammar closure rate was 96.8%, the comprehensive compliance score was 0.833, and the local resampling iteration was 6 times.

[0041] In the out-of-range parameter test, the out-of-range control group 1 used a target expectation difficulty scale of 0.53 and And set the lower limit of the knowledge anchoring strength benchmark coefficient to be 1. Under these conditions, the knowledge point alignment similarity was 0.68, the absolute deviation of the target difficulty was 0.19, the historical maximum similarity was 0.11, the formula grammar closure rate was 95.1%, the comprehensive compliance score was 0.778, the local resampling iteration was 6 times, and the out-of-range control group 2 maintained the target expected difficulty scale of 0.53. The upper limit of the knowledge anchoring strength benchmark coefficient is set to The knowledge point alignment similarity was 0.94, the absolute deviation of the target difficulty increased to 0.28, the historical maximum similarity was 0.15, the formula grammar closure rate was 89.2%, the comprehensive compliance score was 0.841, and the local resampling iteration was 5 times.

[0042] The out-of-range control group 3 used a target expectation difficulty scale of 0.53 and Set the historical avoidance penalty coefficient to the upper limit as follows: After the historical theme's exclusion effect was enhanced, the knowledge point alignment similarity was 0.70, the absolute deviation of the target difficulty was 0.22, the maximum historical similarity was 0.03, the formula grammar closure rate was 84.7%, the comprehensive compliance score was 0.796, the local resampling iteration was 7 times, and the out-of-range control group 4 adopted the target expected difficulty scale of 0.53. The energy level compensation gain coefficient exceeding the upper limit was set to... The time-varying attention scaling factor in step 120 The score was increased to 2.1. Under this condition, the knowledge point alignment similarity was 0.95, the target difficulty absolute deviation was 0.25, the historical maximum similarity was 0.18, the formula syntax closure rate was 82.5%, the comprehensive compliance score was 0.848, and the local resampling iteration was 5 times.

[0043] The overall compliance score for each group is calculated by combining knowledge point alignment similarity, absolute deviation of target difficulty, and historical maximum similarity with weights of 0.4, 0.35, and 0.25, respectively. The test data corresponds to the system's processing chain, from multimodal normalized test feature tensor parsing, orthogonal projection stripping and knowledge topology orthogonal decomposition, long sequence attention decay compensation, to autoregressive restricted decoding and independent dimension error decoupling judgment. The syntactic decoupling filtering subunit and the knowledge topology orthogonal decomposition subunit are used to limit the impact of negative exclusion of historical topics on target knowledge-related expressions. Long sequence attention decay compensation maintains the knowledge node constraints in the later stages of long text generation. The formula grammar state machine and stage-aware gating adaptive subunit constrain the formula symbol structure. The independent dimension error decoupling judgment subunit keeps the compliance dimension parameters unchanged when the overall compliance score fails to meet the standard, and only performs unidirectional discrete step-by-step fine-tuning and drives local resampling for target control dimensions that exceed the single-item tolerance threshold.

[0044] Example 3: When the system processes unstructured test material containing multi-layered nested formulas and markup language, the question-setting strategy parameterized constraint encoding unit establishes a unit-modulus length syntactic skeleton basis vector corresponding to the subject-specific question introductory phrases and declarative conjunctions through the syntactic decoupling filtering subunit. During parameter calibration, the system retrieves 50,000 standardized problem stem text streams covering algebra and geometry modules from the problem bank storage cluster. It then uses a dependency parser based on a multi-layer bidirectional transformer to parse the dependency relationship topology tree of each sentence, extracting high-frequency phrases of non-business-related guiding words and interrogative logical conjunctions from the main dependency path. Numerical constants, geometric function variables, mathematical formulas, and subject-specific terminology are filtered out from the test material. The high-frequency phrase sequence is then input into a shared linear mapping network and projected onto a 768-dimensional latent semantic space to form a phrase feature matrix. Subsequently, the syntactic feature matrix undergoes truncated singular value decomposition, extracting first-order feature vectors with a principal component variance contribution rate of 86.5%, and performing modularization to obtain syntactic skeleton basis vectors with a modulus of 1. After principal component extraction of 50,000 question stems, the variance contribution rate of the first-order eigenvectors was 86.5%. Since mathematical formulas, geometric variables, and subject-specific terminology were filtered out during the syntactic skeleton extraction process, the resulting syntactic skeleton basis vectors mainly retained the common directions of general declarative and interrogative sentence patterns. The system receives historical question banks. The original historical avoidance bias component formed by the 120 pre-compiled test questions Then, according to the established orthogonal projection relationship, the same-direction projection components along the syntactic skeleton direction are stripped to obtain the specific semantic avoidance components. Knowledge topology orthogonal decomposition of sub-units and then anchoring of components with knowledge topology Using the reference projection axis, a Schmidt orthogonal decomposition is performed on the specific semantic avoidance component to obtain the orthogonal avoidance component located in the orthogonal complement space of the knowledge topology anchoring component. , and The inner product determination value is zero. The orthogonal avoidance component is used to characterize the orthogonal decomposition result of the specific semantic avoidance component relative to the knowledge topology anchoring direction. When constructing the dynamic attention modulation bias term, the negative attention penalty component is still composed of the candidate word key vector and the specific semantic avoidance component. The inner product is determined so that the negative constraint acts on the candidate word according to the specific semantic avoidance component, while the result of orthogonal decomposition is retained for the determination of knowledge topology direction relationship.

[0045] The propositional strategy parameterized constraint encoding unit and the attention-bound generative propositional aid reasoning engine utilize cognitive difficulty lexical bias functions. Adjusting the difficulty bias of candidate lexical units, the system pre-selects each candidate lexical unit from the subject-specific lexicography. Scale for calibrating prior cognitive levels The values ​​range from 0 to 1; the cognitive level scale for basic elementary algebra operators and common sense statement terms is set between 0.10 and 0.30; the scale for terms related to the monotonicity determination of regular functions and elementary applications of second derivatives is set between 0.40 and 0.60; and the scale for operators related to parametric derivative extremum construction, abstract double-zero point bounding proof, and multi-branch discussion is set between 0.70 and 0.90. During offline calibration, the system traverses a corpus containing 50,000 questions and statistically analyzes each candidate term at different difficulty levels. The frequency of occurrence of a question in the graded test is weighted by its frequency in easy, medium, and difficult questions, and then weighted by the corresponding difficulty center value to obtain a preliminary cognitive score. For sub-word units, punctuation marks, grammatical particles, and general logical conjunctions generated by word segmentation, the cognitive level scale is uniformly set to a neutral baseline constant of 0.5, and the entire vocabulary lexical units and their corresponding scale values ​​are stored in an offline read-only hash mapping table. During the autoregressive generation process, the lexical unit index is directly read to continuously calculate the expected difficulty scale. According to the proportion of easy questions The proportion of medium-difficulty questions and the proportion of difficult problems We derive the tiered budget value by weighting the calculations using 0.2, 0.5, and 0.8 as corresponding difficulty levels. Then, it is determined by the continuous expectation difficulty scale according to the established integer transformation relationship; in the... During autoregressive decoding, the cognitive difficulty lexical bias function adopts the following relationship: Among them, the closer the cognitive level scale of the candidate word unit is to the target expected difficulty scale, the closer the bias value is to 1; when the two are the same, the bias output is 1, and the inference engine will deduce the ladder budget value. Load the problem-solving derivation counter; in the high-difficulty test configuration, the continuous expectation difficulty scale is set to 0.725, corresponding to a derivation ladder budget value of 4. The counter controls the candidate solution text to generate 4 derivation levels in sequence, respectively expanding the domain boundary determination, the discussion of the first derivative function symbol, the hidden zero substitution, and the expansion of the maximum and minimum inequalities.

[0046] When switching between natural language question generation and mathematical formula derivation, the formula syntax state machine continuously scans the autoregressive decoding output tokens and uses state flags and a last-in-first-out character stack to record the current decoding state and bracket level. In the natural language text state, the stage-aware gating adaptive subunit determines the timing gate coefficient according to the ratio of the current decoding step length to the maximum length of 100 steps set for question intervention, and sets the initial value of the knowledge anchoring strength benchmark coefficient to 2.4. Implement multiplicative adjustment to anchor the knowledge topology. The weights gradually increase as decoding progresses; when the decoder outputs a mathematical formula delimiter, the formula syntax state machine switches to a nested formula symbol state and outputs an operator protection signal. The stage-aware gating adaptive subunit then adjusts the historical avoidance penalty coefficient in the negative attention penalty component accordingly. Set to zero, and simultaneously set the knowledge anchoring strength coefficient in the first positive attention component to zero. Switching to the preset enhancement threshold 3, in the nested formula symbol state, when generating a left parenthesis or fraction opening marker, a matching identifier is pushed onto the character stack; when generating a right parenthesis or fraction closing marker, the corresponding identifier is popped out. For top-level addition, subtraction, multiplication, and division operators appearing before the numerator or denominator of a fraction is fully filled with operands, equal or inequality relational symbols appearing before the open parenthesis is closed, and external cross-level operation markers appearing before the square root or integration limit is completed, the formula syntax state machine determines the subset of cross-level operator lexical units prohibited from being generated at the current step size based on the preset context-free grammar transition matrix and the type of identifier to be closed at the top of the character stack. Before outputting the prediction probability, the prediction bias of each lexical unit in this subset is set to negative infinity. When the character stack depth is greater than 0, the abstract syntax tree parsing subunit, in conjunction with the formula syntax state machine, applies syntax balancing. The system pre-establishes a mapping index table between full-vocabulary subwords and character-level symbol topologies. It retrieves candidate subwords containing formula closure symbols or unclosed single-sided brackets using bitmasks, setting their prediction logarithm bias to negative infinity until the character stack is cleared and the preceding operator topology satisfies the grammatical closure condition. Simultaneously, the problem-solving derivation counter initializes the four derivation levels to stage states: the first level corresponds to domain determination and first derivative calculation guiding words; the second level corresponds to zero-point existence and symbol discussion operators; the third level corresponds to hidden zero-point substitution and bounding inequality operators; and the fourth level corresponds to interval maximum / minimum value synthesis and convergence conclusion words. During decoding, only the professional operator words corresponding to the current level are opened. The counter increments after a newline segment is detected and the current derivation step is completed, and then the next derivation level is opened sequentially.

[0047] After candidate test questions are generated, the comprehensive feature vector is extracted by the multi-objective arbitration unit for test paper compliance and test paper. Measure the similarity of knowledge point alignment and prediction difficulty Compared with the expected difficulty scale The absolute deviation between them, and the candidate test questions and the historical test question bank The greatest historical similarity between them is used to derive a comprehensive compliance score. The independent dimension error decoupling judgment subunit converts knowledge point alignment similarity into knowledge point alignment deviation. The upper limit of deviation corresponding to the lower limit of knowledge point alignment similarity (0.85) is used as the single-item tolerance threshold for this control dimension. Simultaneously, the upper limit of absolute deviation tolerance for single-item difficulty is set to 0.2, and the safe upper limit of historical maximum similarity is set to 0.15. In the comprehensive compliance score, the weights for knowledge point alignment, difficulty deviation, and historical subject similarity are 0.4, 0.35, and 0.25, respectively. The aforementioned single-item tolerance threshold and the global admission threshold of 0.85 are based on 500 standardized past college entrance examination questions. Consistency testing confirmed that the mean score distribution of qualified test questions under the comprehensive scoring was between 0.88 and 0.95. With 0.85 as the entry threshold, over 99% of qualified test questions passed. Simultaneously, a tolerance limit of 0.2 for absolute difficulty deviation and a safety limit of 0.15 for the historical maximum similarity were maintained. When the comprehensive compliance score was below 0.85, the sub-unit locked control parameters that met their respective individual tolerance thresholds, performing unidirectional discrete step-by-step fine-tuning only on target control dimensions exceeding the thresholds. Only when the absolute difficulty deviation exceeded 0.2, and the predicted difficulty was lower than the target expectation, was the difficulty modulation coefficient adjusted. Perform a positive step of 0.5, and a negative step of 0.3 when the prediction difficulty exceeds the target expectation; lock the prediction only when the knowledge point alignment deviation exceeds the corresponding single-item tolerance threshold. and For energy level compensation gain coefficient Perform a positive step of 0.15, or adjust the knowledge anchoring strength benchmark coefficient. Perform a forward step of 0.6; lock only when the historical maximum similarity exceeds 0.15. and Historical avoidance penalty coefficient The forward step is 0.4. Local resampling is performed according to a 3-step control process: First, the specific sub-question guide word or problem-solving derivation step identifier that triggers the limit is located by reverse scanning of the lexical unit, and its position is used as the starting truncation step size for resampling; then, the key-value cache of the question stem and qualified sub-question lexical unit before the truncation step size is retained, and the key-value cache after that is cleared; then, the control parameters after fine-tuning the unidirectional discrete stepping are loaded, and autoregressive decoding is performed again from the starting truncation step size until the sub-question end marker is detected or the preset length limit is reached. The regenerated lexical unit sequence is then connected to the end of the retained context. After the fine-tuning parameters are loaded into the inference engine, local resampling continues. The candidate questions reach a state where the comprehensive compliance score is not lower than 0.85 within two to three iterations. The verified question sequence is assembled and rendered into a standardized electronic test paper by the typesetting output sub-unit according to the question type template.

[0048] Example 4: This example combines Figures 1 to 2 This paper describes an intelligent classification and question generation system and method for heterogeneous test materials, such as... Figure 1 As shown, step S1 parses the test material through the heterogeneous material normalization parsing unit and outputs a multimodal normalized test feature tensor. Step S2 uses the knowledge topology adaptive semantic classification unit to match the multimodal normalized test feature tensor with hierarchical knowledge tree nodes to establish a structured question material index. Step S3 relies on the question strategy parameterized constraint encoding unit to transform the question parameters and the original historical avoidance bias component into a dynamic guidance vector containing knowledge topology anchoring components, cognitive difficulty guidance components, and specific semantic avoidance components. Among them, the syntactic decoupling filtering subunit uses the extracted syntactic skeleton basis vector representing the general question guidance and declarative conjunction as the benchmark to perform orthogonal projection stripping on the original historical avoidance bias component composed of the used question semantic mean, and removes... In step S4, a generative proposition-assisted reasoning engine guided by constrained attention injects a dynamic guiding vector into the multi-head cross-attention flow to decode and generate candidate questions. The long sequence attention decay compensation subunit calculates a time-varying attention scaling factor that monotonically increases with the logarithm of the step size based on the ratio of the decoding step size to the reference decay step size, amplifies the weight of the knowledge topology anchoring component in the multi-head cross-attention flow, and constructs a dynamic attention modulation bias term by combining the negative attention penalty component generated based on the specific semantic avoidance component. In step S5, the semantic representation of the candidate questions is determined by the proposition compliance and test paper multi-objective arbitration unit. If the standard is not met, feedback correction parameters are triggered to trigger resampling. If the standard is met, a standardized electronic test paper is output.

[0049] like Figure 2 As shown, when in the natural language text state, the deterministic timing gate coefficient operation is performed; when the decoder outputs a mathematical formula delimiter, the state transitions from the natural language text state to the formula symbol nesting state; when in the formula symbol nesting state, the syntax balance mask constraint operation is performed. If a left bracket or fraction opening flag is generated in this state, the state remains in the formula symbol nesting state and the syntax balance mask constraint is continuously applied; if a right bracket or fraction closing flag is generated, the state remains in the formula symbol nesting state and the syntax balance mask constraint is continuously applied. When the character stack is cleared and the preceding operator topology satisfies the syntax closure condition, the state switches back from the formula symbol nesting state to the natural language text state, and the deterministic timing gate coefficient operation is resumed.

[0050] Example 5: In the pre-calibration stage of deploying the system to the new examination syllabus knowledge graph and multi-source material environment, the knowledge topology adaptive semantic classification unit loads a set of knowledge nodes. With the set of directed edges Hierarchical knowledge tree A two-layer graph convolutional network is used to aggregate topological messages between nodes, outputting a 768-dimensional node topology embedding vector for each node. The system retrieves 1000 pre-calibrated benchmark anchored test questions and inputs them into the heterogeneous material normalization parsing unit. These are then transformed into a multimodal normalized test question feature tensor via an abstract syntax tree parsing subunit and a shared linear projection layer. Then, the cosine similarity scalar value between each benchmark material and the corresponding target syllabus node is calculated using the double-tower inner product structure: In the benchmark test set, the mean similarity of samples of the same knowledge points is 0.88, and the sample standard deviation is 0.04. Substituting these values ​​into the lower limit three times the standard deviation judgment formula, we get: Based on this, the preset classification decision threshold is set to 0.75 by rounding down. When the similarity between the multimodal normalized test feature tensor and the node topology embedding vector is higher than 0.75, the corresponding material is assigned to the corresponding knowledge point label to reduce cross-level misclassification caused by classification threshold bias.

[0051] During the continuous operation of the parameterized constraint coding unit for the question-setting strategy, the historical question bank... The system maintains a dynamic first-in-first-out queue update according to a preset 30-day time window. Whenever the question-setting compliance and multi-objective arbitration unit confirms that a set of candidate questions containing comprehensive questions has passed compliance verification and is delivered for typesetting and output, the system extracts the comprehensive feature vector of the selected questions and pushes it to the head of the historical question queue. Simultaneously, it removes the feature vectors of historical questions that have been in the database for more than the 30-day time window, ensuring the historical question database is updated accordingly. The effective sample size is maintained at 120 questions. The syntactic decoupling filter subunit calculates the arithmetic mean of the feature vectors of the 120 questions in the queue in real time, and performs modulus normalization to obtain the original historical avoidance bias component of the current period. Its modulus length satisfies: Then the syntactic skeleton basis vector is called. anchored components of knowledge topology The same-direction projection along the syntactic skeleton direction is recalculated, and the resulting specific semantic avoidance components are subjected to knowledge topological orthogonal complement space decomposition to refresh the orthogonal avoidance components. The orthogonal avoidance component is simultaneously fed into the restricted attention-oriented generative proposition-assisted reasoning engine, which replaces the original avoidance feature when calculating the negative attention penalty component. This ensures that after the historical question bank is updated, the negative avoidance constraints in the multi-head cross-attention flow are refreshed synchronously with the current historical samples.

[0052] Example 6: When processing mathematical test materials containing multi-level fractions, radicals, and function symbols, the heterogeneous material normalization parsing unit establishes a serialization procedure for symbol topology paths. After the acquisition interface retrieves the unstructured test text stream from the multi-source question bank, the word segmentation module separates natural language description words from mathematical formula strings defined by specific delimiters. For the mathematical formula token string, the parser scans the operators and operands within the bounded intervals from left to right, and establishes a hierarchical syntax tree structure based on preset operators and priorities, setting the parent node as an arithmetic operation. Alternatively, calculus operators can be used to associate child nodes with independent variables, constants, or nested sub-expressions. The abstract syntax tree parsing subunit traverses each level of the syntax tree using a preorder depth-first traversal strategy, outputting a symbolic topological path recording operator levels and dependencies, and extracting a sequence of symbolic topological nodes composed of operators and variables. Subsequently, the feature normalization module interweaves the natural language word sequence and the symbolic topological sequence according to the semantic subordinate positions in the original question stem, and then inputs a shared linear projection layer of dimension 768 for vector space mapping, outputting a multimodal normalized question feature tensor. .

[0053] In the processing of semantic subordination, the word segmentation module detects the start and end delimiters of the mathematical formula string, records the relative lexical index positions of the formula delimiters in the original question stem text sequence, and inserts the symbol topology node sequence obtained from the formula parsing into the lexical interval positions where the corresponding delimiters are located, so that the natural language guiding lexical describing the formula and the corresponding symbol node are adjacent in the sequence; the interleaved variable-length mixed sequence is input into a shared linear projection layer, which uses a unified 768-dimensional feature transformation matrix for natural language lexical and symbol nodes, converting each discrete unit into 768... The feature vector is first 768-dimensional. Then, through a feature aggregation network that includes self-attention weighted pooling and sequence mean pooling, attention weighted sums are calculated in the sequence length direction, and the variable-length vector sequence is aggregated into a single 768-dimensional comprehensive representation vector. Then, it is normalized to L2 by Euclidean norm division to obtain a multimodal normalized test feature tensor with a fixed length of 768 dimensions and a modulus of 1. When the input question material contains the derivative expression of a quadratic function, the syntax tree parsing obtains a five-layer topological node sequence containing differential operators, exponentiation operations and polynomial summation. After shared linear projection, it is mapped to a 768-dimensional continuous tensor.

[0054] After candidate test questions enter the arbitration unit for test paper compliance and multi-objective assessment, the attention-bound generative test-setting auxiliary reasoning engine and the independent dimensional error decoupling judgment subunit perform individual judgments on knowledge point alignment deviation, absolute difficulty deviation, and historical maximum similarity, respectively. The overall compliance score is then used to determine the final score. When the error decoupling judgment subunit is below the preset admission threshold of 0.85, the independent dimension error decoupling judgment subunit locks the control dimensions within their respective single-item tolerance range, and only performs unidirectional discrete step-by-step fine-tuning on the target control dimensions that exceed the single-item tolerance threshold; among them, the knowledge point alignment deviation is calculated from the measured knowledge point alignment similarity, and its corresponding threshold is determined according to the knowledge point alignment similarity admission lower limit of 0.85, the single item difficulty absolute deviation tolerance upper limit is 0.2, and the historical maximum similarity safety upper limit is 0.15.

[0055] When the knowledge point alignment similarity is below 0.85 and the absolute difficulty deviation exceeds 0.2, it is determined that both the knowledge point alignment deviation and the absolute difficulty deviation exceed the corresponding single-item tolerance threshold. The system then locks historical avoidance penalty coefficients that are outside the current adjustment target according to preset priority. Difficulty Modulation Coefficient For energy level compensation gain coefficient Apply a positive fine-tuning step of 0.15 and anchor the knowledge to the strength reference coefficient. The initial value was increased from 2.4 to 3; the inference engine was loaded with the updated value. and Local resampling is performed until the knowledge point alignment similarity rises above 0.85, restoring the knowledge point alignment deviation to within the corresponding individual tolerance range. Then, the knowledge point alignment control dimension that already meets the individual tolerance threshold is locked, and the difficulty control dimension that still exceeds the limit is addressed. When the predicted difficulty is lower than the target expectation, the difficulty modulation coefficient is adjusted. A positive offset step adjustment of 0.5 is applied, and a negative offset step adjustment of 0.3 is applied when the prediction difficulty is higher than the target expectation. The ladder budget value is derived by combining the problem-solving derivation counter constraint. The adjusted control parameters are fed back to the limited attention-oriented generative proposition-assisted reasoning engine to continue local resampling.

[0056] In the aforementioned step-by-step adjustment process, knowledge point alignment control is executed before difficulty control. After the knowledge point alignment similarity is adjusted to above 0.9, unidirectional fine-tuning of the difficulty modulation coefficient is then performed. The difficulty bias function only changes the selection tendency of local operators, and the perturbation amplitude of the existing knowledge attention distribution caused by it in the original test remains within 0.03. By sequentially performing mutually exclusive unidirectional discrete step-by-step fine-tuning on the target control dimensions that exceed the single-item tolerance threshold, and feeding back the corresponding parameters to the inference engine for local resampling after each fine-tuning, the candidate test questions achieve a comprehensive compliance score within 3 local resampling iteration cycles. Furthermore, the absolute deviation of the difficulty of each item is less than 0.02; after verification, the qualified test questions are input, formatted, and output sub-units and assembled into a standardized test paper.

[0057] It will be apparent to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.

[0058] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims

1. A system for intelligent classification and question generation assistance of heterogeneous test materials, characterized in that, Include: Heterogeneous material normalization parsing unit, used to output the multimodal normalized test question feature tensor of test question material; The knowledge topology adaptive semantic classification unit is used to match multimodal normalized test question feature tensors with hierarchical knowledge tree nodes to establish a structured question material index. The propositional strategy parameterized constraint encoding unit is used to transform the propositional parameters and the original historical avoidance bias components into a dynamic guidance vector containing knowledge topology anchoring components, cognitive difficulty guidance components and specific semantic avoidance components. A constrained attention-oriented generative proposition-assisted reasoning engine is used to inject dynamic guiding vectors into multi-head cross-attention streams to decode and generate candidate questions; The question-setting compliance and multi-objective arbitration unit is used to verify candidate questions and output standardized electronic test papers when they are compliant. The propositional strategy parameterized constraint encoding unit is configured with a syntactic decoupling filter subunit, which is used to perform orthogonal projection stripping on the original historical avoidance bias component based on the syntactic skeleton basis vector, and remove the same-direction component to obtain the specific semantic avoidance component. The constrained attention-oriented generative proposition-assisted reasoning engine is configured with a long-sequence attention decay compensation subunit, which is used to calculate a logarithmically increasing time-varying attention scaling factor based on the decoding step size, amplify the weight of the knowledge topology anchoring component, and construct a dynamic attention modulation bias term in combination with the negative attention penalty component.

2. The intelligent classification and question generation system for heterogeneous test materials according to claim 1, characterized in that, The heterogeneous material normalization parsing unit is equipped with an abstract syntax tree parsing subunit, which is used to identify mathematical logic expressions in the test material that are bounded by specific tags, parse the operators, variables and nesting levels, and generate symbolic topological paths based on depth-first traversal. The heterogeneous material normalization parsing unit interweaves and splices the symbolic topological paths with natural language text word sequences according to semantic subordinate relationships, and transforms them into fixed-dimensional multimodal normalized test feature tensors through a shared linear projection layer.

3. The intelligent classification and question generation system for heterogeneous test materials according to claim 1, characterized in that, In the knowledge topology adaptive semantic classification unit, a graph convolutional network is used to perform topological message passing on the hierarchical knowledge tree containing directed edges of concept affiliation, generating node topology embedding vectors with hierarchical topological associations. The cosine similarity distribution between the multimodal normalized test question feature tensor and the node topology embedding vector is calculated through a double-tower inner product structure. Nodes with similarity higher than the preset classification decision threshold are selected as the classification of test question materials, and knowledge point labels are marked for the test question materials to establish a structured test question material index.

4. The intelligent classification and question generation system for heterogeneous test materials according to claim 1, characterized in that, The attention-bound generative proposition-assisted reasoning engine further includes a stage-aware gating adaptive subunit and a formula syntax state machine; the formula syntax state machine is used to detect the natural language text stream and formula delimiters in the decoder output lexical stream; When in the natural language question stem statement stage, the stage-aware gating adaptive subunit determines the timing release gating coefficient based on the proportion of the number of currently decoded words to the maximum length of the question intervention setting. The timing release gating coefficient is used to modulate the initial weight of the knowledge topology anchoring component, so that the weight of the knowledge topology anchoring component monotonically increases to the target benchmark weight as the decoding step size advances. When a formula delimiter is detected and the mathematical formula symbol nesting stage is entered, the formula syntax state machine outputs an operator protection signal, triggering the stage perception gate adaptive subunit to set the negative attention penalty component to zero, switch the weight of the knowledge topology anchoring component to a preset enhancement threshold, and apply syntax balance mask constraints to the opening and closing brackets and logical nodes of the current operation level according to the abstract syntax tree symbol topology path.

5. The intelligent classification and question generation system for heterogeneous test materials according to claim 1, characterized in that, The propositional strategy parameterized constraint encoding unit further includes a knowledge topology orthogonal decomposition subunit. The knowledge topology orthogonal decomposition subunit uses the knowledge topology anchoring component as the reference vector and performs further orthogonal projection decomposition on the specific semantic avoidance component, decomposing it into a projection component along the direction of the knowledge topology anchoring component and an orthogonal avoidance component falling on the orthogonal complement space of the knowledge topology anchoring component. When calculating the negative attention penalty component, the constrained attention-oriented generative proposition-assisted reasoning engine replaces the original avoidance feature with the orthogonal avoidance component, so that the scope of negative attention repulsion is limited to the subject context space outside the target knowledge topology space, and the core semantic vector magnitude of the target knowledge topology anchoring component in the multi-head cross attention channel is not attenuated.

6. The intelligent classification and question generation system for heterogeneous test materials according to claim 1, characterized in that, The constrained attention-oriented generative proposition-assisted reasoning engine uses a transformer decoder as its backbone. It superimposes a dynamic attention modulation bias term generated by a dynamic guiding vector mapping within the key and value vector calculation channels of the autoregressive multi-head cross-attention. This dynamic attention modulation bias term is a linear combination of three orthogonal bias components: a first positive attention component, weighted and amplified by a time-varying attention scaling factor and calculated as the inner product of the candidate lexical key vector and the knowledge topology anchoring component; and a negative attention penalty component, calculated as the inner product of the candidate lexical key vector and the specific semantic avoidance component. And the second positive attention component, calculated based on the cognitive difficulty-oriented component via the cognitive difficulty lexical bias function; By superimposing a dynamic attention modulation bias term during the lexical probability decoding stage, the activation weight of conceptual lexical units associated with the target knowledge node is increased, while the generation probability of contextual narrative lexical units similar to those in previously used test questions is suppressed.

7. The intelligent classification and question generation system for heterogeneous test materials according to claim 1, characterized in that, In the long sequence attention decay compensation subunit, the time-varying attention scaling factor is set to 1 at the initial step size of autoregressive decoding, and increases logarithmically with the increase of the ratio of the decoded step size to the preset reference decay step size. When the autoregressive generation progresses to the long sequence stage containing multiple sub-questions and step-by-step parsing steps, the long sequence attention decay compensation subunit refreshes the value of the time-varying attention scaling factor in real time according to the current decoding step size. By increasing the multiplicative scaling factor of the weight of the knowledge topology anchoring component in the multi-head cross attention flow, it offsets the soft maximization normalization denominator expansion effect caused by the linear accumulation of key value cache, so that the attention distribution of each word at the end of the long text generation maintains the selection probability focus on the target knowledge tree node, and prevents the end generation from deviating from the knowledge boundary of the syllabus.

8. The intelligent classification and question generation system for heterogeneous test materials according to claim 1, characterized in that, The arbitration unit for test paper compliance and multi-objective test paper further includes an independent dimension error decoupling judgment subunit. The independent dimension error decoupling judgment subunit is used to independently compare the knowledge point alignment deviation, the absolute deviation between the predicted difficulty and the target difficulty, and the historical maximum similarity of candidate test questions with the preset single-item tolerance threshold. When the comprehensive compliance score does not reach the preset admission threshold, the independent dimension error decoupling judgment subunit locks the control dimension parameters that meet the single-item tolerance threshold and keeps them unchanged. It only determines the target control dimension that exceeds the single-item tolerance threshold, performs unidirectional discrete step-by-step fine-tuning on the bias adjustment coefficient corresponding to the target control dimension that exceeds the tolerance threshold, and feeds the fine-tuned parameters back to the constrained attention-oriented generative test-supporting reasoning engine to drive local resampling.

9. The intelligent classification and question generation system for heterogeneous test materials according to claim 1, characterized in that, It also includes a typesetting and output subunit, and a communication connection to the question-setting compliance and multi-objective arbitration unit for the test paper. The typesetting and output subunit is used to receive compliant candidate test questions that have passed the verification by the question-setting compliance and multi-objective arbitration unit, and to perform structured typesetting and splicing according to the topology configuration sequence of each question type. It then renders and outputs a standardized electronic test paper that includes the test paper title bar, candidate information bar, answer areas for each major question, score markings, and standard reference answer analysis.

10. A method for intelligent classification and question generation assistance of heterogeneous test material, used to run the intelligent classification and question generation assistance system for heterogeneous test material as described in claim 1, characterized in that, Includes the following steps: Step S1: Analyze the test material using the heterogeneous material normalization parsing unit and output the multimodal normalized test feature tensor; Step S2: Use the knowledge topology adaptive semantic classification unit to match the multimodal normalized test question feature tensor and hierarchical knowledge tree nodes to establish a structured proposition material index; Step S3: The propositional strategy parameterized constraint encoding unit is used to transform the propositional parameters and the original historical avoidance bias components into a dynamic guidance vector containing knowledge topology anchoring components, cognitive difficulty guidance components and specific semantic avoidance components. Among them, the syntactic decoupling filtering subunit is used as the basis of the extracted syntactic skeleton basis vector representing the general question guide and the declarative conjunction. Orthogonal projection stripping is performed on the original historical avoidance bias components composed of the semantic mean of the used test items, and the same-direction projection components are removed to obtain the specific semantic avoidance components. Step S4: A constrained attention-oriented generative proposition-assisted reasoning engine is used to inject dynamic guidance vectors into the multi-head cross-attention flow to decode and generate candidate questions. In this process, a time-varying attention scaling factor that monotonically increases with the logarithm of the step size is calculated using a long sequence attention decay compensation subunit based on the ratio of the decoding step size to the reference decay step size. This amplifies the weight of the knowledge topology anchoring component in the multi-head cross-attention flow and combines it with a negative attention penalty component generated based on the specific semantic avoidance component to construct a dynamic attention modulation bias term. Step S5: Utilize the question compliance and multi-objective arbitration unit of the test paper to determine the semantic representation of the candidate test questions. If the standard is not met, feedback correction parameters are provided to trigger resampling. If the standard is met, a standardized electronic test paper is output.

Citation Information

Patent Citations

  • Controlled text generation method using syntactic information

    CN115600581A