arXiv(opens in a new tab)cs.AIOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.03548

Recursive Harness Self-Improvement for Frontier Reasoning Data Synthesis

Wenlong Zhang, Zhengbo Jiao, Chenxu Zhang, Lekang Jiang, SiYuan Ma, Qituan Zhang, Guo Chen, Linfeng Zhang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

Wenlong Zhang ∗1,2^{*1,2}, Zhengbo Jiao ∗1,3^{*1,3}, Chenxu Zhang ∗4^{*4}, Lekang Jiang 5^{5}, SiYuan Ma 6^{6}, Qituan Zhang 1,7^{1,7}, Guo Chen 1,8^{1,8}, Linfeng Zhang †1^{†1}

1^{1}EPIC Lab, Shanghai Jiao Tong University 2^{2}University of Science and Technology of China 3^{3}Shanghai University of Finance and Economics 4^{4}Imperial College London 5^{5}University of Cambridge 6^{6}Nanyang Technological University 7^{7}Fudan University 8^{8}University of Electronic Science and Technology of China

∗^{*}Equal Contribution. †^{\dagger}Corresponding Author.

Abstract

Generating progressively harder reasoning problems requires synthesis procedures that adapt as the task distribution evolves. Existing task-level recursion reuses generated problems as seeds but leaves the construction harness unchanged. We present task–harness co-evolution, a framework for recursive harness self-improvement (RSI) in reasoning-data synthesis. Online self-improvement converts intermediate solver failures into reusable skills during generation. Post-task self-improvement revises skills, prompts, and workflows after each batch, adopting candidates only when they generate harder valid tasks within a bounded cost increase. Model weights and verification criteria remain fixed. Across mathematics, coding, and science, mean solver accuracy decreases from 100.0% to 54.8% over fourteen evolution rounds. Ablations show that combining both update schedules produces harder tasks than fixed-harness recursion or either schedule alone. The resulting data improves downstream SFT and GRPO performance. In particular, a 27B student fine-tuned on 10K synthesized mathematics examples achieves 62.5% mean-16 accuracy on APEX, competitive with selected frontier-model references. These results support adapting the synthesis harness alongside the tasks to generate increasingly challenging data with downstream training value.

1. Introduction

Advances in mathematical, scientific, and coding reasoning depend on a continuing supply of high-quality, challenging problems. OpenMathInstruct-2 demonstrates the value of synthetic data for mathematical reasoning training [Toshniwal et al., 2025], while FrontierMath highlights the need for problems that distinguish advanced reasoning capabilities [Glazer et al., 2024]. As model capabilities improve, however, a static dataset cannot adapt its difficulty. Increasing dataset size alone does not ensure that the synthesis procedure can construct progressively harder reasoning problems. Here, the synthesis harness comprises reusable skills, prompts, and workflows that turn a seed into a verified problem. Adapting these components offers a way to respond to changing solver weaknesses.

Existing synthesis methods progress from instruction expansion to recursive task evolution. Self-Instruct generates instructions from model outputs [Wang et al., 2023], and WizardLM increases instruction complexity through predefined operators [Xu et al., 2024]. RST recursively reuses verified terminal tasks as seeds, demonstrating the potential of task-level recursion under a largely fixed synthesis procedure [Li et al., 2026]. Yet evolving the tasks alone leaves their reusable construction skills and workflows unchanged. Autodata and DataFoundry instead optimize data-generating agents and data-preparation runtimes [Kulikov et al., 2026, Yang et al., 2026]. Together, these directions motivate adapting the generation procedure alongside its evolving task distribution. This raises a specific question for recursive synthesis: can the generation procedure improve as its own outputs become the inputs to subsequent rounds?

To address this limitation, we present task–harness co-evolution, a framework that improves

(a) Fixed-pipeline synthesis

Figure

(b) Task-level recursive synthesis

(c) Task-harness co-evolution (Ours)

Tasks and harnesses evolve

Figure 1 | Three reasoning-data synthesis regimes. (a) Fixed-pipeline synthesis maps independent seeds to outputs through the same harness H0H_{0}. (b) Task-level recursion feeds each generated task back as the next seed, while construction skills and workflows stay fixed. (c) Our approach recursively updates both tasks and the harness. A meta-agent uses generation logs and evaluation feedback, together with human-defined goals and update constraints, to revise skills, prompts, and workflows. Evaluated revisions guide subsequent generation under fixed verification criteria. Snowflakes and flames denote fixed and evolving harnesses, respectively.

reasoning tasks and their synthesis harness together (Figure 1). Verified tasks seed the next round, while generation feedback guides two complementary update schedules. Online self-improvement converts intermediate solver failures into reusable skills before generation finishes. Post-task self-improvement uses completed-batch feedback to revise skills, prompts, and workflows. Candidate harnesses are compared with the online snapshot before adoption, with rollback when revisions do not satisfy the validity, difficulty, and cost criteria. Model weights and verification logic remain fixed, so adaptation occurs in the generation procedure rather than the model. Candidate evaluation uses the harness containing online updates as its baseline. If all batch-level candidates are rejected, online skills are retained for the next generation round.

Experiments across mathematics, coding, and science demonstrate sustained difficulty growth and downstream training value (Figure 2). Fixed-solver accuracy falls from 100.0% to 54.8% over fourteen evolution rounds, while the synthesized data improves both SFT and GRPO performance. With only 10K mathematics examples, a 27B student reaches 62.5% on APEX, competitive with selected frontier-model references on this benchmark. Our main contributions are as follows:

  1. Task-Harness Co-Evolution. We introduce a synthesis framework that recursively evolves reasoning tasks and their generation harness together, extending task-only recursion to adaptive construction procedures.

  2. Online and Post-Task Self-Improvement. We combine immediate skill updates during generation with batch-level harness revision, candidate evaluation, and rollback under fixed verification criteria and bounded cost growth.

  3. Difficulty Growth and Training Utility. We show that the combined update schedules produce

(a) Increasing task difficulty

DeepSeek-V4-Pro / 150 seed chains

Figure

Truncated y-axis: 50-100%

(b) Strong downstream utility

27B student / Math SFT

Figure

Figure 2 | Harder tasks, useful training data. (a) DeepSeek-V4-Pro accuracy falls from 100.0% to 54.8% across 150 seed chains (50 per domain, equally weighted). The line tracks Passed; Failed is its complement; the y-axis is truncated at 50%. (b) SFT on 10K synthesized math examples yields 62.5% APEX accuracy for a 27B student, competitive with selected frontier models. We evaluate all APEX models with 16 attempts per problem; the x-axis starts at 20%. APEX evaluation details: Appendix C.

harder tasks than fixed-harness recursion and either schedule alone, while the resulting data improves downstream reasoning through both SFT and GRPO.

References (53)