WorksComputer Science
GaokaoMathGen: Chinese Gaokao Mathematics Finale Problem Generation Controlled by Latent Reasoning Structures
Abstract
Generating Chinese Gaokao mathematics finale problems requires controlling not only the included skills, but also the underlying mathematical kernel and solution path. Existing LLM-based methods mainly rely on surface-level specifications, while the realized difficulty of generated problems cannot be determined directly from prompted targets. Therefore, we propose GaokaoMathGen, a framework for Chinese Gaokao mathematics finale problem generation controlled by latent reasoning structures. It extracts standardized latent reasoning structures from seed problems and performs constrained synthesis using skills, methods, a core identity, and a pivot step as structural controls. We further estimate realized difficulty through logical-quality filtering, fixed-solver decoding effort, structural features, and solver-output search signals. Experiments show that semantic normalization improves cross-annotator comparability and that 78.0% of 609 scored candidates pass the logical-quality filter. In a teacher audit of the 60 highest-effort candidates, all were judged to reach finale or penultimate problem difficulty, and only one exhibited a severe logical issue. These results support latent reasoning structures as effective control signals for generating high-difficulty mathematical problems.
Introduction
The Chinese National College Entrance Examination, known as Gaokao, is one of the most influential high-stakes examinations in China [9]. Its mathematics finale problems are designed to be highly discriminative: they often require students to integrate multiple knowledge points, identify hidden mathematical structure, perform non-trivial transformations, and organize a multi-step solution path. Accurate and controllable generation of such problems is valuable for scalable reasoning-oriented training, targeted student practice, and more reliable evaluation of mathematical reasoning models. This task remains challenging, as a generated problem must be mathematically valid, aligned with the senior-high-school curriculum, solvable through a coherent reasoning path, and calibrated to an intended difficulty level.
Mathematical problem generation has been studied through expert-authored construction, rule- or template-based generation (Xu, Smeets, and Bidarra 2021; Yu et al. 2024), and recent LLM-based methods [4, 15] (Lu et al. 2024). Expert-authored problems provide strong guarantees on validity and educational value, but they require substantial human expertise and are difficult to scale. Rule- and template-based methods improve controllability by instantiating predefined item models or solution patterns, but they are less suited to generating diverse non-routine finale problems. LLM-based methods offer better scalability and linguistic diversity, and recent work has improved difficulty by extracting topics or skills from existing datasets and recombining them during generation [17]. For example, MATH² [15] constructs difficult problems by combining core skills extracted from the MATH dataset. These studies show the promise of LLM-assisted mathematical problem generation. In most existing pipelines, the control signal is specified at the level of topics, skills, templates, equations, or seed-problem transformations.
However, for Chinese Gaokao mathematics finale problems, such surface-level control is insufficient. The difficulty of a finale problem is not determined only by which knowledge points appear, but also by how they are grounded in a mathematical kernel, concealed in the problem statement, and recovered through a solution bottleneck. Two problems may involve the same skills and methods, yet differ substantially in difficulty depending on whether the key identity, auxiliary construction, or transformation step is explicit, implicit, or only recoverable after several intermediate deductions. This observation motivates a shift from surface-level control to structure-level control: the generator should specify not only the intended skills and methods, but also the underlying mathematical core and the key pivot step that make the problem solvable and discriminative.
Therefore, we study the Chinese Gaokao mathematics fi- @referencesenziswa nale problem generation controlled by this structural view. The task presents two main challenges. First, the mapping from latent reasoning structures to well-formed problems is underdetermined. A latent reasoning structure specifies the intended skills, methods, core identity, and pivot step, but not how they should be encoded as conditions and subproblems that form a valid reasoning path and resist elementary shortcuts. Direct LLM generation may consequently realize these elements only superficially, producing shortcut solutions, redundant conditions, or invalid mathematical cores. Second, realized difficulty is not directly observable from the generation target. A requested difficulty level expresses the intended difficulty but does not demonstrate the reasoning effort required by the generated problem. Teacher annotation is reliable but costly, while standalone LLM judgments can exhibit systematic biases and solver accuracy provides limited diagnostic evidence [24].
To address these challenges, we propose GaokaoMathGen, a framework for Chinese Gaokao mathematics finale problem generation controlled by latent reasoning structures. To the best of our knowledge, this is the first study dedicated to Chinese Gaokao mathematics finale problem generation. Moving beyond surface-level content specification, GaokaoMathGen organizes standardized skills and methods around a core identity and pivot step, which serve as structural controls for candidate synthesis. The main contributions are summarized as follows:
We propose a two-stage generation framework in GaokaoMathGen for Chinese Gaokao mathematics finale problems. The first stage converts seed finale problems into standardized latent reasoning structures. The second stage performs constrained synthesis controlled by these latent reasoning structures. Standardized skills and methods specify the required reasoning, while the core identity and pivot step anchor the concealed mathematical kernel and coherent solution path.
We develop a low-cost realized-difficulty estimation protocol based on core-anchored structural signals, fixed-solver decoding effort, and teacher audit. This protocol avoids relying solely on prompted difficulty labels and provides diagnostic evidence about whether generated problems realize the intended reasoning difficulty.
We conduct systematic experiments on seed labeling, problem construction, quality evaluation, and ablation settings. The results show that core-anchored construction improves structural controllability and produces high-effort candidate problems.
Related Work
Mathematical Problem Generation
Mathematical problem generation has been studied through expert-authored construction, rule- or template-based generation, and LLM-based generation. Expert-authored construction, including human-written examination problems and expert-designed item models, can provide strong guarantees on mathematical validity, curriculum alignment, and educational value, but it requires substantial human expertise and is difficult to scale [15]. Rule- and template-based methods improve scalability by instantiating predefined item models, equations, or procedural templates (Xu, Smeets, and Bidarra 2021). These methods offer controllable formats and solution patterns, but their reliance on explicit templates limits their ability to generate diverse non-routine problems.
Recent LLM-based methods further improve scalability and linguistic diversity. Prior work generates mathematical word problems from equations, topics, or contexts while enforcing mathematical consistency or difficulty-related constraints [18, 10]. For example, MATHWELL [2] uses teacher annotations to improve the solvability, accuracy, and educational appropriateness of generated math word problems. MathGenie (Lu et al. 2024) synthesizes new math problems through solution augmentation and question back-translation. Closely related to difficult problem generation, MATH² [15] extracts core skills from the MATH dataset and prompts LLMs to generate problems combining pairs of skills.
This line of work demonstrates the promise of scalable mathematical problem generation, but its control signals are usually specified at the level of topics, equations, skills, templates, or seed-problem transformations. Such surface-level control is not sufficient for Chinese Gaokao mathematics finale problems, where difficulty depends not only on what knowledge points are involved, but also on how a mathematical kernel is concealed, transformed, and recovered through a coherent reasoning path.
In contrast, our proposed framework, GaokaoMathGen, focuses on structure-level control by representing each intended generation target as a latent reasoning structure comprising skills, methods, a core identity, a pivot step, and a target difficulty requirement.
Reasoning Evaluation and Difficulty Estimation
Mathematical reasoning benchmarks provide the standard setting for measuring solver performance on multi-step problems. Datasets, e.g., GSM8K [3] and MATH [6], evaluate grade-school and competition-style reasoning, while recent benchmarks extend evaluation to high-stakes examinations, olympiad-level problems, Chinese mathematical tasks, and more fine-grained difficulty annotations [23, 25, 11, 12] (He et al. 2024). These benchmarks are valuable for comparing reasoning models, but their difficulty information is usually attached to human-authored problems through source labels, expert annotation, or aggregate model performance. As a result, they offer limited guidance for determining whether a newly generated problem realizes a specified reasoning structure.
Difficulty control and estimation have also been studied in question generation and educational assessment. Prior methods often rely on prompted difficulty levels, surface features of the problem statement, equation or solution length, expert labels, or solver correctness [1, 10]. These signals are useful for scalable assessment, but they are not sufficiently diagnostic for Gaokao mathematics finale problems. In this setting, a problem can appear difficult for undesirable reasons, e.g., ambiguity or excessive computation, while the intended difficulty should come from how skills and methods are organized around a hidden mathematical kernel and recovered through a solution bottleneck.
Our proposed framework, GaokaoMathGen, addresses this gap by treating realized difficulty as a diagnostic property of generated candidates rather than as a prompted difficulty label. It estimates difficulty from lightweight post-generation evidence, including logical quality, fixed-solver effort, skill-method structural signals, and solver-output search proxies. This connects difficulty estimation to structure-level control while avoiding direct reliance on prompted difficulty labels or final solver correctness.
Problem Formulation
We study controllable generation of Chinese Gaokao mathematics finale problems from a structure-level perspective. Given a seed mathematics problem and a target difficulty , our goal is not to imitate the surface form of , but to extract its reusable reasoning information and synthesize a new candidate problem under the specified difficulty.
For a seed problem , we construct its intended reasoning structure as follows:
where denotes the structure extraction and assembly process, is a finite set of standardized skills, and is a finite set of standardized methods. The core identity and pivot step are variable-length textual descriptors rather than fixed-dimensional vectors or labels selected from a closed vocabulary. The target difficulty is an ordinal value from the target-difficulty scale used during synthesis. Accordingly, is a heterogeneous structured tuple rather than a fixed-dimensional representation.
To reduce annotator-specific variation, raw skill and method labels produced by multiple LLM-based annotators are semantically normalized into shared vocabularies. Standardized skills refer to canonical labels for the mathematical knowledge required by a problem, e.g., derivative monotonicity, conic parameterization, or recurrence transformation. Standardized methods refer to canonical labels for the reasoning strategies used to combine these skills, e.g., substitution, auxiliary construction, or case analysis. The core identity denotes the mathematical kernel supporting the solution, e.g., a theorem, extremal property, or structural equivalence. The pivot step denotes the key transformation through which a solver connects the problem statement to this kernel.
Method
Overview
As illustrated in Figure 1, GaokaoMathGen treats controllable generation as a process of extracting, realizing, and diagnosing latent reasoning structures. It first extracts and standardizes latent reasoning structures from seed mathematics problems, forming a collection of structure-level generation targets. It then synthesizes candidate finale problems under structural constraints, so that the generated statements are guided by the intended core identity and pivot step rather than by surface topic or difficulty descriptions alone. Finally, it collects diagnostic evidence for realized difficulty, including logical quality, fixed-solver decoding effort, skill-method structural signals, and search-related signals extracted from solver outputs. These stages respectively correspond to obtaining the reasoning specification, realizing it as a well-formed candidate problem, and estimating whether the generated problem exhibits evidence of the intended difficulty.

Figure 1. Overview of GaokaoMathGen. The framework extracts standardized latent reasoning structures from seed problems, performs structure-guided synthesis under explicit constraints, and collects post-generation diagnostic evidence for realized difficulty.
Reasoning Structure Extraction
Raw seed problems provide the source material for generating Chinese Gaokao mathematics finale problems. However, they cannot be used directly as structure-level control signals, as their reusable reasoning information is entangled with surface wording, problem-specific notation, and annotator-dependent descriptions. To obtain such control signals, GaokaoMathGen extracts a standardized latent reasoning structure from each seed problem, allowing later generation to be conditioned on comparable structural specifications rather than on the original problem statement.
For each seed problem , multiple LLM-based annotators produce structured annotations that identify the problem’s skills, methods, mathematical kernel, difficulty anchor, and auxiliary metadata. The annotated skills and methods provide raw label sets and , while the mathematical-kernel fields provide the core identity and pivot step . The difficulty annotation provides a seed-level difficulty anchor , which contextualizes the target difficulty specified for synthesis but is not itself treated as the generation target. Subject-area metadata further constrains skill normalization, reducing the risk of merging labels that are lexically similar but mathematically different across domains. Implementation details of the annotation and normalization protocol are provided in the Technical Supplement.
To reduce variation across LLM-based annotators, GaokaoMathGen semantically normalizes raw skill and method labels into shared vocabularies. The normalization mappings are defined as follows:
where and denote raw skill and method label spaces, and and denote standardized vocabularies. Skill labels are normalized within subject areas to reduce cross-domain merging, while method labels are normalized globally, as they describe reusable reasoning strategies across mathematical domains.
After normalization, the standardized labels and mathematical-kernel annotations are combined with the target difficulty . The resulting latent reasoning structure is defined as follows:
where and are the raw skill and method sets extracted for , and is the target difficulty specified for the corresponding synthesis instance.
Constrained Structure-Guided Synthesis
The structure collection provides structure-level control signals, but converting these signals into well-formed finale problems remains nontrivial. A generator may include the requested skills and methods while still producing shallow testing targets, shortcut solutions, redundant conditions, loose subproblem dependencies, or invalid mathematical cores. Therefore, GaokaoMathGen performs constrained structure-guided synthesis by using the core identity and pivot step as structural anchors. The goal is to construct an exam-style statement in which the mathematical kernel is recoverable through the intended pivot step, but not directly exposed by the surface form.
For a latent reasoning structure , the constrained synthesis process is written as follows:
where is the generated candidate problem and denotes the structural requirements that guide how is realized as both a problem statement and an intended solution path. The core identity provides the mathematical basis of the intended solution, while the pivot step specifies the bottleneck through which this basis should be reached.
During synthesis, GaokaoMathGen operationalizes through three connected construction operations. Kernel grounding organizes the standardized skills and methods around , so that they serve the same mathematical kernel rather than appearing as independent topical requirements. Kernel concealment transforms the explicit kernel into a solvable but nontrivial exam-style statement, e.g., by introducing a new object, redistributing conditions, or expressing key information through constraints. Path validation examines whether the intended solution still needs to pass through after common shortcuts are considered.
To make these operations explicit and auditable, we express the structural requirements as follows:
where specifies the expected reasoning connection between problem conditions and the core identity, and specifies that common elementary shortcuts should not bypass the pivot step. specifies that conditions should contribute to solvability rather than only increasing surface complexity. For multi-part problems, specifies coherent progression among subproblems. specifies mathematical consistency, clear variable ranges, valid boundary cases, and solvability. Implementation details of the synthesis protocol are provided in the Technical Supplement.
The generator’s own blueprint is not reliable evidence that the structural requirements in are actually satisfied. Therefore, GaokaoMathGen applies a separate structural consistency checker. To reduce anchoring to the generator’s self-explanation, the checker reviews the candidate statement together with the associated core identity and pivot step. The checker returns constraint-level diagnostics as follows:
where each component indicates whether the corresponding structural requirement in is satisfied. A candidate receives a structural pass only when all components equal 1. If any violation is detected, an update operator revises the candidate statement as follows:
This checking-and-revision step reduces cases where a candidate appears to follow the requested skills or difficulty level but fails to realize the latent reasoning structure specified by the generation target. Implementation details of the checking and revision protocol are provided in the Technical Supplement.
Diagnostic Evidence for Realized Difficulty
A target difficulty specified during synthesis is not sufficient evidence that a generated problem realizes the intended difficulty. A generated problem may appear difficult because it is lengthy, ambiguous, or overcomplicated, rather than because it requires the intended reasoning structure. GaokaoMathGen therefore collects post-generation diagnostic evidence from logical quality, fixed-solver decoding effort, skill-method structural signals, and search-related signals extracted from solver outputs.
For each generated candidate , the diagnostic evidence is summarized as follows:
where measures automated logical quality, measures fixed-solver decoding effort, measures the structural organization of standardized skills and methods, and captures search-related proxies extracted from the fixed solver’s output. These signals are designed to distinguish realized reasoning difficulty from spurious difficulty caused by invalidity, ambiguity, or excessive surface complexity. These four signals are instantiated as follows.
Logical quality filtering. Logical quality is evaluated before difficulty analysis, since invalid or ambiguous problems may produce long solver outputs for the wrong reason. We compute logical quality from three dimensions as follows:
where , , and denote clarity, logical coherence, and mathematical validity, respectively, and each dimension is scored on a 1–5 scale.
A candidate is retained for difficulty analysis only if its average logical-quality score is at least 3 and no individual dimension score is lower than or equal to 2. The retained candidate set is defined as follows:
where ranges over clarity, logical coherence, and mathematical validity.
Fixed-solver decoding effort. For each candidate retained in , a fixed reasoning model solves the problem under the same prompt and decoding configuration. The fixed-solver decoding effort is defined as follows:
where denotes the completion length. This signal provides a consistent proxy for comparing fixed-solver effort across generated candidates, but it should be interpreted as diagnostic evidence rather than as a direct measure of human-perceived difficulty.
Skill-method structural signal. To connect difficulty evidence with the structure-level control signals used during generation, GaokaoMathGen computes a topology-only skill-method structural signal. We build an undirected co-occurrence graph over the standardized vocabularies as follows:
where nodes are standardized skills or methods, an edge indicates that two labels co-occur in at least one problem, and records their co-occurrence frequency. The graph uses co-occurrence frequency rather than any prompted difficulty value, so the resulting structural signal remains difficulty-label-free.
For a generated candidate , we define its associated skill-method node set as follows:
The standardized skills and methods associated with the candidate induce a subgraph as follows:
where denotes the subgraph of induced by the node set . The structural feature vector is computed as follows:
where extracts topology-only features, e.g., node count, edge count, subgraph density, weighted degree centrality, betweenness centrality, PageRank, average co-occurrence frequency, and rare-edge ratio. These features provide label-free evidence about the size, connectivity, centrality, and rarity of the skill-method specification associated with the candidate.
Solver-output search signal. GaokaoMathGen further extracts search-related signals from the fixed solver’s output. These features are not treated as direct observations of the solver’s internal reasoning process. Instead, they provide textual and structural proxies for how the solver organizes its solution. The search-related feature vector is written as follows:
where extracts features such as subproblem count, explicit branching patterns, case-analysis count, elimination count, verification count, and an aggregated search-complexity score. The diagnostic evidence is used in the experiments for filtering, ranking, and correlation analysis with fixed-solver decoding effort. High-effort candidates identified by these signals are further sampled for teacher audit, providing a targeted quality check without requiring full manual annotation. Implementation details of the evaluation, solver, and feature-extraction protocol are provided in the Technical Supplement.
Experiments
We evaluate GaokaoMathGen through three research questions.
RQ1 (Structure Extraction). Does semantic normalization improve cross-annotator comparability of the extracted skills and methods?
RQ2 (Controlled Synthesis). How reliably does synthesis controlled by latent reasoning structures produce logically valid candidates, and do target levels induce distinguishable fixed-solver effort?
RQ3 (Difficulty Diagnostics). Do post-generation signals provide complementary diagnostics of fixed-solver reasoning effort?
We also conduct a seed-matched comparison with an independent reference pipeline and a teacher audit to assess relative performance and residual quality risks. Further results are provided in the Technical Supplement.
Experimental Setup
Data and structure extraction. We start with 250 Chinese senior-high-school mathematics problems. Screening removes 33 with missing figures, corrupted content, complete solutions, or material beyond the curriculum, leaving 217 seed problems. Five LLM annotators, i.e., GPT-5.4, DeepSeek-V3.2, Qwen3.5-Plus, Doubao-Seed-2.0-Pro, and Claude Opus 4.6, independently extract latent reasoning structures. Cross-annotator analysis uses the 174 seed problems with valid structured outputs from all five annotators.
Generation and evaluation. In the main generation experiment, each LLM is conditioned on a target difficulty according to our eight-level difficulty rubric. We instantiate the same synthesis protocol with DeepSeek-V3.2, Doubao-Seed-2.0-Pro, GPT-5.4, and Qwen3.5-Plus. Gemini-2.5-Pro scores each generated statement from 1 to 5 on clarity, logical coherence, and mathematical validity. Following Eq. (10), a candidate is retained when its average score is at least 3 and every dimension is greater than 2. Each retained candidate is then solved by Doubao-Seed-2.0-Pro with the same prompt, high reasoning effort, and a maximum output length of 65,536 tokens. Completion length is used only as a fixed-solver effort signal.
Statistical analysis. Our statistical analysis follows the three research questions. For RQ1, we measure cross-annotator overlap using pairwise Jaccard similarity [8] and examine whether normalization consistently improves this overlap across seeds using a paired Wilcoxon signed-rank test [20]. For RQ2, we test whether target-8 candidates induce greater fixed-solver decoding effort than target-7 candidates within each generator using a one-sided Mann–Whitney test [14]. For RQ3, we use Spearman’s rank correlation [16] to quantify the monotonic association between each diagnostic signal and fixed-solver decoding effort. The external comparison uses a paired Wilcoxon signed-rank test, as the candidates from the two pipelines are matched by their source seeds. Holm correction [7] is applied separately to the model-wise target-level and external comparisons. Additional statistical details, model configurations, and prompt protocols are provided in the Technical Supplement.
Reliability of Structure Extraction
We first examine whether normalization reduces annotator-specific variation in the skill and method components of the latent reasoning structure. For each seed, we form all unordered pairs of the five annotators. For each pair, we compute the Jaccard similarity and an exact-match indicator for the skill and method sets, both before and after applying the normalization mappings used to construct the generation inputs. We first average each metric over the ten annotator pairs for each seed and then report the mean across the 174 seeds. Table 1 summarizes the resulting cross-annotator agreement.
| Label | Metric | Raw | Normalized |
| Skills | Jaccard | 0.015 | 0.261 |
| Skills | Exact | 0.001 | 0.023 |
| Methods | Jaccard | 0.045 | 0.211 |
| Methods | Exact | 0.006 | 0.044 |
Table 1. Cross-annotator agreement before and after semantic normalization. Exact denotes exact-set agreement.
Normalization raises mean pairwise Jaccard similarity from 0.015 to 0.261 for skills and from 0.045 to 0.211 for methods. Both improvements are significant under paired seed-level Wilcoxon tests (). Exact-set agreement also increases, although it remains low, as annotators may select complementary labels for the same problem. The numerical difficulty annotations show stronger agreement, with mean pairwise Spearman correlations of 0.801 for abstraction and 0.774 for computation. These results support the use of normalized annotations as more comparable structure-level control signals, without assuming that normalization removes all annotation uncertainty.
Generation Quality and Target-Level Separation
Starting from the 174 common seeds and four generators, the 696 possible seed–generator instances are reduced to 663 generation inputs after excluding 33 annotations without usable mathematical kernels, of which 609 yield candidate problems with complete logical-quality scores. Table 2 summarizes logical-quality retention and fixed-solver effort. Overall, 475 of 609 scored candidates pass the logical-quality filter. GPT-5.4 has the highest retention rate at 94.1%, followed by Doubao-Seed-2.0-Pro at 85.1%. The variation across generators shows that a shared latent reasoning structure and synthesis protocol do not guarantee equally reliable realization by different LLMs.
| Generator | Pass (%) | (%) | ||
| DeepSeek-V3.2 | 59.5 | 15,083 | 20,198 | +33.9 |
| Doubao-Seed-2.0-Pro | 85.1 | 18,717 | 22,927 | +22.5 |
| GPT-5.4 | 94.1 | 21,078 | 24,041 | +14.1 |
| Qwen3.5-Plus | 68.3 | 18,611 | 23,302 | +25.2 |
| All | 78.0 | 18,909 | 22,996 | +21.6 |
Table 2. Logical-quality retention and mean fixed-solver effort at target levels 7 and 8. and are computed over retained candidates.
Among retained candidates, target-8 problems require 22,996 tokens on average, compared with 18,909 tokens for target 7, an increase of 21.6%. The association is positive for all four generators, and every within-generator comparison remains significant after Holm correction (). A regression with generator fixed effects estimates an adjusted target-8 increase of 4,040 tokens (). The aggregate logical retention rates are 80.6% for target 7 and 75.8% for target 8; this difference is not statistically significant under Fisher’s exact test (). Thus, the two requested levels are separated in fixed-solver effort without a significant aggregate change in logical retention. This result concerns controlled solver effort and does not by itself establish equivalent separation in human difficulty.
The independent structural checker is also necessary in practice. On development batches, it requests revision for 98.3% of candidates produced by the initial synthesis prompt and 85.1% after prompt refinement. After one checking-and-revision round, the corresponding no-revision rates are 0.8% and 11.9%. These development results are not a controlled ablation, but they show that the generator’s own blueprint is insufficient evidence that the intended structural requirements are satisfied. Detailed checker outcomes are reported in the Technical Supplement.
Diagnostic Evidence for Realized Difficulty
Table 3 evaluates the topology-only skill–method signal and solver-output search signals against fixed-solver completion length on the 475 retained candidates. Records are matched by both generator and seed identifier to avoid collisions between candidates generated from the same seed.
| Evidence | Feature | ||
| Graph | Node count | 0.067 | 0.146 |
| Graph | Edge count | 0.053 | 0.246 |
| Solver output | Branching factor | 0.438 | |
| Solver output | Case analysis | 0.490 | |
| Solver output | Verification | 0.322 | |
| Solver output | Search score | 0.539 |
Table 3. Spearman correlation with fixed-solver completion length on the retained high-difficulty batch ().
The topology-only features are weak in this range-restricted 7–8 batch. In contrast, the search-related features have moderate positive associations with completion length, and the aggregate search score reaches . The same trend holds within every generator, with correlations from 0.462 to 0.636. These signals characterize how the fixed solver organizes its output, but they are not independent human-difficulty measurements, as both the features and completion length are derived from the same solution. We therefore treat them as complementary diagnostics rather than as ground-truth difficulty labels.
External Evidence and Error Analysis
We compare GaokaoMathGen with an independently developed industrial reference pipeline on seed-matched candidates. Candidates from the two pipelines are aligned by source-seed identifier and solved by the same fixed solver. Since the pipelines differ in their generation procedures and post-generation selection, this comparison serves as an external reference rather than a controlled component ablation. Table 4 reports the resulting fixed-solver effort.
| Generator | Ref. | Ours | ||
| Doubao-Seed-2.0-Pro | 131 | 20,245 | 21,031 | +3.9 |
| Gemini-3.1-Pro | 153 | 19,398 | 19,296 | −0.5 |
| Qwen3.5-Plus | 112 | 19,286 | 21,082 | +9.3 |
| GPT-5.2 | 146 | 18,198 | 19,965 | +9.7 |
| GPT-5.4 | 156 | 20,447 | 22,686 | +11.0* |
Table 4. Seed-matched comparison of mean fixed-solver completion length. Ref. denotes the industrial reference pipeline, and denotes the relative difference (%). * indicates Holm-corrected .
GaokaoMathGen produces higher mean fixed-solver completion lengths in four of the five matched subsets, with a macro-average relative difference of +6.7%. After Holm correction, only the GPT-5.4 comparison remains significant (). These results support comparable fixed-solver effort under matched seeds, with a significant increase in the GPT-5.4 subset, rather than uniform superiority over the reference pipeline. Finally, a high-school mathematics teacher audits the 60 GPT-5.4 candidates with the largest fixed-solver completion lengths from both difficulty and quality perspectives. The teacher judges all 60 candidates to reach the difficulty expected of a Gaokao finale or penultimate problem. Regarding quality, 59 of the 60 candidates (98.3%) contain no severe logical issue. Minor concerns in 21 cases mainly involve curriculum boundaries or nonstandard notation and do not invalidate the problems. The only severe case (1.7%) contains an ambiguous dependency between subproblems. These results provide targeted human evidence that candidates ranked highest by fixed-solver effort fall within the intended high-difficulty range, while severe logical failures are rare in this audited subset. Since the candidates are deliberately selected by fixed-solver effort, the audit does not estimate corpus-wide quality rates or establish human difficulty separation between target levels 7 and 8.
Conclusion and Future Work
We introduced GaokaoMathGen, to our knowledge the first framework dedicated to generating Chinese Gaokao mathematics finale problems. It converts seed problems into standardized latent reasoning structures, whose core identities and pivot steps guide constrained synthesis. Experiments demonstrate the value of semantic normalization, structure-guided generation, and post-generation diagnostics for high-difficulty candidates. After validation, its candidates can support teacher-assisted question development, advanced student practice, and training and evaluation data for mathematical reasoning models. Future work will incorporate broader expert feedback and multi-solver evidence, directly evaluate structural realization, and extend the framework to multimodal mathematics problems.
Technical Supplement
This supplement reports additional experimental results and describes the prompting and evaluation protocols used in the main paper.
Additional Experimental Details
Unless otherwise stated, all solver-effort analyses use Doubao-Seed-2.0-Pro under a fixed prompt, high reasoning effort, and a maximum output length of 65,536 tokens.
Data Processing and Coverage
Table S1 summarizes the construction of the seed set. The common 174-seed subset contains 37 function-and-derivative problems, 40 analytic-geometry problems, 31 sequence problems, 42 probability-and-statistics problems, and 24 solid-geometry problems.
| Stage | Problems | Retained (%) |
| Raw collection | 250 | 100.0 |
| After automatic screening | 217 | 86.8 |
| Successful for all five annotators | 174 | 69.6 |
Table S1. Seed-data processing.
The five annotators produce 1,039 valid structured outputs out of 1,085 attempted annotations, giving an overall extraction success rate of 95.8%. Table S2 gives the per-model coverage. The common subset is used for agreement analyses so that every seed has the same ten annotator pairs.
| Annotator | Valid/Attempted | Success (%) |
| GPT-5.4 | 217/217 | 100.0 |
| Qwen3.5-Plus | 217/217 | 100.0 |
| DeepSeek-V3.2 | 216/217 | 99.5 |
| Doubao-Seed-2.0-Pro | 215/217 | 99.1 |
| Claude Opus 4.6 | 174/217 | 80.2 |
| All | 1,039/1,085 | 95.8 |
Table S2. Structured-annotation success rates.
Table S3 summarizes candidate flow in the main generation experiment. Starting from the 174 common seeds and four generators, the experiment contains 696 possible seed–generator instances. Excluding 33 annotations without usable mathematical kernels leaves 663 synthesis inputs. Of these, 609 produce candidate problems with complete logical-quality scores, and 475 pass the logical-quality filter.
| Stage | Instances |
| Possible seed–generator instances | 696 |
| Usable synthesis inputs | 663 |
| Candidates with complete quality scores | 609 |
| Candidates retained for difficulty analysis | 475 |
Table S3. Candidate flow in the main generation experiment.
Table S4 summarizes the recorded model-side configurations. We retain provider defaults when a stored request does not specify an additional decoding parameter.
| Role | Model | Recorded configuration |
| Structure annotation | DeepSeek-V3.2 | High reasoning effort; 65,536 output tokens |
| Structure annotation | Doubao-Seed-2.0-Pro | High reasoning effort; 65,536 output tokens |
| Structure annotation | GPT-5.4 | Extra-high reasoning effort; detailed summary; 65,536 output tokens |
| Structure annotation | Qwen3.5-Plus | Thinking enabled; 65,536 output tokens |
| Structure annotation | Claude Opus 4.6 | 65,536 output tokens |
| Main synthesis | DeepSeek-V3.2 | High reasoning effort; 65,536 output tokens |
| Main synthesis | Doubao-Seed-2.0-Pro | High reasoning effort; 65,536 output tokens |
| Main synthesis | GPT-5.4 | Extra-high reasoning effort; detailed summary; 65,536 output tokens |
| Main synthesis | Qwen3.5-Plus | Provider-default recorded request |
| Logical evaluator | Gemini-2.5-Pro | Fixed three-dimension scoring prompt |
| Fixed solver | Doubao-Seed-2.0-Pro | High reasoning effort; 65,536 output tokens |
Table S4. Recorded model configurations used in the main pipeline.
The semantic-merging stage starts from 2,716 globally unique skill strings. Subject-conditioned partitioning creates 2,768 skill entries because the same surface string may occur in more than one domain; these entries are grouped into 238 canonical clusters. The corresponding method inventory contains 1,379 globally unique strings grouped into 46 canonical clusters. We retain unmatched labels to preserve annotation coverage, and the synthesis experiments use the normalized labels written to the generation inputs.
Structure-Extraction Agreement
For label sets and , Jaccard similarity is computed as follows:
For each seed and label type, we average over the ten pairs of five annotators. Raw hierarchical skill paths are reduced to their leaf labels before comparison, matching the preprocessing used by the normalization pipeline. Significance is assessed with a one-sided paired Wilcoxon signed-rank test over the 174 seed-level averages, with the alternative that normalization increases agreement. Skills improve from 0.0153 to 0.2610 (), and methods improve from 0.0453 to 0.2113 (). Exact-set agreement changes from 0.0006 to 0.0230 for skills and from 0.0063 to 0.0443 for methods.
For methods, the reported -value is slightly above the bound stated in the main text.
Table S5 reports agreement for the two numerical difficulty annotations. Pairwise correlations are computed across seeds for each annotator pair and then averaged. Within-seed standard deviation measures dispersion among the five annotators.
| Dimension | Pairwise | Within-seed SD |
| Abstraction | 0.801 | 0.670 |
| Computation | 0.774 | 0.803 |
Table S5. Agreement of numerical seed-difficulty annotations.
Structural Checker Development
Table S6 details the development-batch outcomes reported in the main text. A nonempty ques_revised block indicates a revision, an empty block indicates no revision, and outputs without a matching block are counted separately. Percentages use all checker outputs for the corresponding prompt and round, including outputs without a matching block. In the second round, the revised statement is checked when available, and the original statement is reused otherwise.
| Synthesis prompt | Checker round | Revision | No revision | Missing block | |
| Initial | First | 663 | 652 (98.3) | 4 (0.6) | 7 |
| Initial | Second | 663 | 650 (98.0) | 5 (0.8) | 8 |
| Refined | First | 631 | 537 (85.1) | 46 (7.3) | 48 |
| Refined | Second | 631 | 546 (86.5) | 75 (11.9) | 10 |
Table S6. Structural-checker outcomes on the two development batches. Values in parentheses are percentages of .
The two batches differ in both synthesis instructions and candidate counts. These are development results. The logical-quality retention and solver-effort results in Table 2 use the initial statements from the main generation batch.
Detailed Target-Level Analysis
Target difficulty values are assigned with random seed 42 and are not allowed to fall below the annotator’s abstraction score for the seed. The corresponding implementation field is named target_abstraction_score; throughout the paper, it is denoted by because it serves as the requested difficulty level during synthesis. Table S7 gives target-specific logical retention and solver effort. The tests compare retained target-8 and target-7 candidates separately for each generator. All four one-sided Mann–Whitney tests remain significant after Holm correction.
| Generator | Target-7 pass | Target-8 pass | () | () | (%) | Holm |
| DeepSeek-V3.2 | 36/66 (54.5) | 36/55 (65.5) | 15,083 (36) | 20,198 (36) | +33.9 | 0.0133 |
| Doubao-Seed-2.0-Pro | 59/67 (88.1) | 72/87 (82.8) | 18,717 (59) | 22,927 (72) | +22.5 | 0.0044 |
| GPT-5.4 | 76/76 (100.0) | 84/94 (89.4) | 21,078 (76) | 24,041 (84) | +14.1 | 0.0144 |
| Qwen3.5-Plus | 53/69 (76.8) | 59/95 (62.1) | 18,611 (53) | 23,302 (59) | +25.2 | 0.0280 |
| All | 224/278 (80.6) | 251/331 (75.8) | 18,909 (224) | 22,996 (251) | +21.6 | – |
Table S7. Detailed target-level results. Effort is the mean completion length over retained candidates.
To account for differences in average solver effort across generators, we conduct a robustness analysis using the following ordinary least-squares model:
where denotes the candidate’s generator and one of the four generators is the reference category. Fitted on the 475 retained candidates, the model gives tokens. An HC1 heteroscedasticity-consistent standard error of 840.4 yields a two-sided -test result of . Thus, the reported 4,040-token difference is the target-8 coefficient adjusted for generator-level differences, rather than the unadjusted difference between the two target-level means. Aggregate logical retention is 80.6% at target 7 and 75.8% at target 8; Fisher’s exact test finds no significant difference (). These results confirm target-level separation in fixed-solver effort after accounting for generator variation.
Cross-Domain Results
Table S8 reports results by the five source domains. Retention ranges from 70.0% in solid geometry to 83.1% in probability and statistics. Analytic geometry induces the largest mean fixed-solver effort. These results indicate that the pipeline is not confined to a single domain, while also revealing domain-dependent reliability.
| Domain | Retained/All | Pass (%) | Mean effort |
| Functions/derivatives | 101/128 | 78.9 | 21,386 |
| Analytic geometry | 110/145 | 75.9 | 24,245 |
| Sequences | 85/108 | 78.7 | 18,693 |
| Probability/statistics | 123/148 | 83.1 | 19,855 |
| Solid geometry | 56/80 | 70.0 | 20,529 |
Table S8. Logical retention and fixed-solver effort by source domain.
Additional Diagnostic Analyses
Within-generator stability. For the high-difficulty batch, search features are recomputed from each generator-specific solver-output file and joined with graph records using the composite key consisting of generator and seed identifier. This prevents candidates derived from the same seed by different generators from being conflated. Table S9 reports the association between the aggregate search score and completion length within each generator. The correlation remains significant in all four subsets, reducing the possibility that the aggregate result is driven only by between-generator differences.
| Generator | Spearman | |
| DeepSeek-V3.2 | 72 | 0.636 |
| Doubao-Seed-2.0-Pro | 131 | 0.528 |
| GPT-5.4 | 160 | 0.554 |
| Qwen3.5-Plus | 112 | 0.462 |
Table S9. Search-score correlations within each generator.
Text-only baseline. We compare solver-search features with simple lexical indicators over a broader set of 3,160 solver outputs. The aggregate text score reaches only , compared with for the aggregate search score on the same broader corpus. Table S10 lists the strongest lexical features. This comparison shows that the search features capture aspects of solution organization beyond surface lexical cues.
| Feature | Spearman |
| Aggregate text score | 0.236 |
| Inverse-problem indicator | 0.151 |
| Quantifier depth | 0.143 |
| Existence indicator | 0.135 |
| Condition indicator | 0.132 |
| Parameter indicator | 0.129 |
Table S10. Text-only correlations with completion length ().
Seed-Matched External Comparison
We compare GaokaoMathGen with an independently developed industrial generation pipeline. Candidates are aligned by source-seed identifier, and both sides are solved with the same fixed solver. We additionally instantiate the same structure-guided synthesis protocol with Gemini-3.1-Pro and GPT-5.2 to broaden model coverage in this comparison. Table S11 reports means, medians, and paired Wilcoxon results, providing an external benchmark under seed-matched evaluation.
| Generator | Ref. mean | Ours mean | Ref. median | Ours median | Holm | |
| Doubao-Seed-2.0-Pro | 131 | 20,245 | 21,031 | 18,555 | 19,327 | 0.9596 |
| Gemini-3.1-Pro | 153 | 19,398 | 19,296 | 18,975 | 18,483 | 0.9596 |
| Qwen3.5-Plus | 112 | 19,286 | 21,082 | 17,675 | 18,540 | 0.9596 |
| GPT-5.2 | 146 | 18,198 | 19,965 | 17,915 | 18,521 | 0.0857 |
| GPT-5.4 | 156 | 20,447 | 22,686 | 19,834 | 21,480 | 0.0145 |
Table S11. Seed-matched fixed-solver effort. denotes Holm-corrected .
The mean relative differences are +3.9%, −0.5%, +9.3%, +9.7%, and +11.0%, respectively, with a macro average of +6.7%. After Holm correction, the GPT-5.4 comparison remains significant. Overall, GaokaoMathGen achieves competitive or higher fixed-solver effort across the seed-matched subsets.
Teacher Audit
For the teacher audit, all 160 retained GPT-5.4 candidates are re-solved in a dedicated ranking run using the same solver model and decoding settings as the main analysis. The ranking run uses a separate fixed instruction, and its completion lengths are used only to select the 60 highest-effort candidates for the audit. A high-school mathematics teacher assesses the difficulty and quality of every selected problem individually. All 60 are judged to reach the difficulty expected of a Gaokao finale or penultimate problem, and 59 contain no severe logical issue. Table S12 summarizes these item-level judgments, providing targeted human evidence for the quality and difficulty of high-effort candidates.
| Assessment outcome | Count | Percentage |
| Finale/penultimate difficulty | 60 | 100.0 |
| No severe logical issue | 59 | 98.3 |
| Severe logical issue | 1 | 1.7 |
Table S12. Teacher audit of the 60 GPT-5.4 candidates selected by the dedicated ranking run.
The 59 candidates without a severe logical issue include the 21 candidates with minor concerns noted in the main text. The single severe case concerns an ambiguous dependency between subproblems.
Prompt and Protocol Details
Structure annotation. Each annotator receives the seed statement and returns problem type, subject area, skills, methods, core identity, pivot step, abstraction and computation scores, a difficulty anchor, and auxiliary structural fields. Skills are expressed as curriculum knowledge components, while methods describe reusable solution strategies. The output is parsed into a fixed JSON schema. Skill normalization is performed separately within the five source domains, whereas method normalization is performed globally.
Semantic normalization. We group raw leaf labels by semantic equivalence using multiple LLM proposals and adopt a mapping when at least two proposals agree. Before mapping, we remove hierarchy prefixes and parenthetical elaborations. We retain unmatched labels to preserve information, and the agreement experiment uses the resulting normalized labels.
Structure-guided synthesis. The synthesis prompt provides skills, methods, the reference core identity, the reference pivot step, target difficulty, and difficulty anchor. In the stored prompt, target difficulty is represented by the field target_abstraction_score. The generator returns a construction blueprint, a complete problem statement inside a dedicated tag, and a reference solution. The prompt requires kernel grounding, concealment by concept wrapping or structural reorganization, shortcut analysis, condition-redundancy checks, and subproblem progression. It supports domain-consistent adaptation of the reference kernel to integrate the specified skills and methods, while requiring the final core identity and pivot step to be recorded explicitly in the blueprint.
Structural checking and revision. The checker receives the generated statement together with the final core identity and pivot step, but not the generator’s full self-explanation. The following is an English rendering of the final checker prompt. The operational prompt is written in Chinese.
Role. Act as a logic reviewer for Chinese senior-high-school mathematics problem design and identify defects rather than evaluating stylistic appeal.
Inputs. The final core_identity, the final pivot_step, and the generated_problem.
Task. Determine whether the problem realizes the supplied mathematical kernel and whether its statement contains structural or mathematical defects.
Checks. (1) Trace each condition to the core identity, pivot step, and conclusion. (2) Test whether special-value substitution, direct expansion, numerical trial, or another elementary route bypasses the pivot step. (3) Remove each condition in turn and identify conditions that do not affect unique solvability. (4) For multi-part problems, examine whether later subproblems meaningfully build on earlier ones. (5) Check variable domains, consistency of conditions, leakage between subproblems, boundary cases, notation, and solvability.
Output. Return a check-by-check report, a severity-ordered defect list, and, when a defect is found, a revised statement enclosed by the designated ques_revised tag together with a concise revision note.
When a violation is identified, the returned statement is checked once more using the same final protocol.
Logical-quality evaluator. The evaluator scores clarity and grammar, logical coherence and completeness, and mathematical validity and solvability from 1 to 5. The prompt requests a short justification followed by a machine-readable score list. A problem is retained only when the mean is at least 3 and no score is at most 2.
Fixed solver. Every retained problem is prefixed with the same instruction requesting a detailed derivation and final answer. The solver uses high reasoning effort and a 65,536-token maximum. We record completion tokens and retain the generated solution for deterministic feature extraction.
Search-feature extraction. No additional LLM prompt is used for search features. A deterministic parser counts explicit subproblems, case-analysis constructions, elimination expressions, verification expressions, and explicit branch markers in the solver output. The aggregate search score combines branching, case-analysis, and verification signals after normalization. This distinction is important because the extracted features describe observable output organization rather than hidden internal model states.
Teacher audit. The ranking run uses Doubao-Seed-2.0-Pro with high reasoning effort, a 65,536-token maximum, and a fixed Chinese instruction requesting a complete solution and final answer. Its completion lengths are used to rank the GPT-5.4 audit pool. For each selected problem, the teacher judges whether its difficulty reaches the level of a Gaokao finale or penultimate problem and checks for severe logical defects.
References
- [1]Cheng, Y.; Li, S.; Liu, B.; Zhao, R.; Li, S.; Lin, C.; and Zheng, Y. 2021. Guiding the growth: Difficulty-controllable question generation through step-by-step rewriting. In Proceedings of the Annual Meeting of the Association for Computational Linguistics and the International Joint Conference on Natural Language Processing (Volume 1: Long Papers), 5968–5978.
- [2]Christ, B. R.; Kropko, J.; and Hartvigsen, T. 2024. MATH-WELL: Generating educational math word problems using teacher annotations. In Proceedings of the Findings of the Association for Computational Linguistics: EMNLP 2024, 11914–11938.arxiv.org/abs/2402.15861
- [3]Cobbe, K.; Kosaraju, V.; Bavarian, M.; Chen, M.; Jun, H.; Kaiser, L.; Plappert, M.; Tworek, J.; Hilton, J.; Nakano, R.; Hesse, C.; and Schulman, J. 2021. Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168.arxiv.org/abs/2110.14168
- [4]Gunasekar, S.; Zhang, Y.; Aneja, J.; Mendes, C. C. T.; Del Giorno, A.; Gopi, S.; Javaheripi, M.; Kauffmann, P.; de Rosa, G.; Saarikivi, O.; et al. 2023. Textbooks are all you need. arXiv preprint arXiv:2306.11644.arxiv.org/abs/2306.11644
- [6]Hendrycks, D.; Burns, C.; Kadavath, S.; Arora, A.; Basart, S.; Tang, E.; Song, D.; and Steinhardt, J. 2021. Measuring mathematical problem solving with the math dataset. arXiv preprint arXiv:2103.03874.
- [7]Holm, S. 1979. A simple sequentially rejective multiple test procedure. Scandinavian Journal of Statistics, 65–70.DOI
- [8]Jaccard, P. 1901. Étude comparative de la distribution florale dans une portion des Alpes et des Jura. Bull Soc Vaudoise Sci Nat, 37: 547–579.
- [9]Jia, R.; Li, H.; and Cousineau, C. 2025. The highest exam: How the Gaokao shapes China. Harvard University Press.DOI
- [10]Jiao, Y.; Shridhar, K.; Cui, P.; Zhou, W.; and Sachan, M. 2023. Automatic educational question generation with difficulty level controls. In Proceedings of the International Conference on Artificial Intelligence in Education, 476–488.DOI
- [11]Liu, H.; Zheng, Z.; Qiao, Y.; Duan, H.; Fei, Z.; Zhou, F.; Zhang, W.; Zhang, S.; Lin, D.; and Chen, K. 2024. Math-Bench: Evaluating the theory and application proficiency of llms with a hierarchical mathematics benchmark. In Proceedings of the Findings of the Association for Computational Linguistics: ACL 2024, 6884–6915.
- [12]Liu, Y.; Jin, R.; Shi, L.; Yao, Z.; and Xiong, D. 2025. FineMath: A fine-grained mathematical evaluation benchmark for Chinese Large Language Models. ACM Transactions on Asian and Low-Resource Language Information Processing, 24(12): 1–15.arxiv.org/abs/2403.07747
- [14]Mann, H. B.; and Whitney, D. R. 1947. On a test of whether one of two random variables is stochastically larger than the other. The Annals of Mathematical Statistics, 50–60.DOI
- [15]Shah, V.; Yu, D.; Lyu, K.; Park, S.; Yu, J.; He, Y.; Ke, N. R.; Mozer, M.; Bengio, Y.; Arora, S.; et al. 2025. Ai-assisted generation of difficult math questions. arXiv preprint arXiv:2407.21009.arxiv.org/abs/2407.21009
- [16]Spearman, C. 1987. The proof and measurement of association between two things. The American Journal of Psychology, 100(3/4): 441–471.
- [17]Tang, Z.; Zhang, X.; Wang, B.; and Wei, F. 2024. MathScale: Scaling instruction tuning for mathematical reasoning. In Proceedings of the International Conference on Machine Learning.arxiv.org/abs/2403.02884
- [18]Wang, Z.; Lan, A.; and Baraniuk, R. 2021. Math word problem generation with mathematical consistency and problem context constraints. In Proceedings of the Conference on Empirical Methods in Natural Language Processing, 5986–5999.arxiv.org/abs/2109.04546
- [20]Wilcoxon, F. 1945. Individual comparisons by ranking methods. Biometrics Bulletin, 1(6): 80–83.
- [23]Zhang, X.; Li, C.; Zong, Y.; Ying, Z.; He, L.; and Qiu, X. 2023. Evaluating the performance of Large Language Models on gaokao benchmark. arXiv preprint arXiv:2305.12474.arxiv.org/abs/2305.12474
- [24]Zheng, L.; Chiang, W.-L.; Sheng, Y.; Zhuang, S.; Wu, Z.; Zhuang, Y.; Lin, Z.; Li, Z.; Li, D.; Xing, E.; et al. 2023. Judging LLM-as-a-judge with MT-bench and chatbot arena. Proceedings of the Advances in Neural Information Processing Systems, 36: 46595–46623.arxiv.org/abs/2306.05685
- [25]Zhong, W.; Cui, R.; Guo, Y.; Liang, Y.; Lu, S.; Wang, Y.; Saied, A.; Chen, W.; and Duan, N. 2024. AGIEval: A human-centric benchmark for evaluating foundation models. In Proceedings of the Findings of the association for computational linguistics: NAACL 2024, 2299–2314.arxiv.org/abs/2304.06364