arXiv(opens in a new tab)cs.AISep 2026Cited by 2 papers on PaperVantage

Manuscript Offprint

arXiv:2609.00768

DiagEvo: Diagnosis-Guided Self-Evolution via Hierarchical Error Memory

Xincheng Wei, Yifan Ding, Yoshua Li, Dongsheng Ma, Rongxiang Weng, Xunliang Cai, Wenjian Ding, Yao Zhang

ABSTRACT

Self-play is an effective paradigm for language-model self-evolution, but without guidance, solver performance can plateau or even decline across rounds. Existing unguided methods typically steer question generation with signals such as difficulty, learnability, or diversity. These signals help keep questions challenging and varied but do not specify which unresolved reasoning weaknesses later rounds should target. Existing guided methods obtain generation direction from external task resources, including human examples, document corpora, or externally specified difficulty targets, and therefore rely on task information supplied outside the self-play loop. We show that the needed direction can instead be derived from information already produced during self-play: the solver's own failure history. We introduce DiagEvo, whose diagnostician extracts recurring error causes from this history and stores them in a hierarchical error-cause memory. The memory groups related causes under skill nodes and tracks each as Active or Mastered according to self-consistency on targeted questions. The challenger uses these states and recurrence counts to balance cause-targeted generation with free exploration. Double-confidence filtering retains intermediate-difficulty questions only when the most common solver answer has a clear vote lead. DiagEvo derives its curriculum from information produced during self-play, without external task resources. With the default 4B diagnostician, DiagEvo outperforms every baseline in mean accuracy across all nine benchmarks for each of the three solvers: Qwen3-4B, Qwen3-8B, and OctoThinker-8B. On Qwen3-8B, it reaches 72.3% mean accuracy across five mathematical reasoning benchmarks, 4.5 percentage points above R-Zero. Its mean accuracy across all nine benchmarks is 57.4%, 1.1 percentage points above DARC. Ablations show that the hierarchical error-cause memory and double-confidence filtering both contribute to these gains.

1 Introduction

Recursive self-improvement (RSI) asks whether an AI system can improve the process used to train later systems [Chi et al., 2026]. Recent RSI work studies agents that design training algorithms or revise training data strategies [Chi et al., 2026, Meng et al., 2026]. Self-evolution is a closely related research direction. It aims to improve models with limited ongoing human supervision [Tao et al., 2024]. Self-play is one practical paradigm for self-evolution [Huang et al., 2026, Zhao et al., 2025].

In self-play, a challenger generates questions, and a solver learns by answering them. In our setting, the two models take turns updating over multiple rounds, so the questions can evolve with the solver. Sustained improvement requires these questions to remain near the solver's competence boundary. They must be challenging enough to expose weaknesses but still learnable. Questions that are too easy provide little

Figure

Figure 1 | Co-evolution under pure free exploration and DiagEvo. (a) Pure free exploration produces much longer questions while solver performance stops improving. DiagEvo keeps question length stable and improves the mathematical average. (b) Example questions show how unguided self-play increases surface complexity across rounds. (c) DiagEvo uses a hierarchical error-cause memory to guide question generation across rounds.

room for improvement. Questions that are too difficult produce unstable responses and weak training signals [Bae et al., 2026].

Existing self-play methods address this challenge in two main ways. Label-free methods use solver responses to adjust question difficulty [Huang et al., 2026, Zhao et al., 2025]. This feedback estimates how hard a question is for the current solver, but not why the solver fails. The same error cause can appear in questions that look different. Without diagnosis across questions, separate failures do not reveal which causes recur. The challenger therefore lacks a direct signal about what the solver should practice next. Questions can then grow longer without targeting unresolved error causes, and solver performance can stop improving (Figure 1(a) and (b)) [Huang et al., 2026, Yu et al., 2025]. The challenger may also generate questions that are too difficult or unclear. Majority voting over responses to these questions can produce unreliable pseudo-labels. Training on these labels can reinforce errors across rounds [Fan et al., 2026].

Guided self-play methods instead use external task resources to stabilize training. R-Few uses human-annotated examples to guide question generation [Yu et al., 2025]. SPICE uses a document corpus and solver feedback to generate questions at the right difficulty [Liu et al., 2025a]. DARC uses difficulty labels, external documents, and a document-informed privileged teacher [Fan et al., 2026]. These resources can guide question generation or solver training, but continued improvement then depends on information from outside self-play.

The solver's failure history can provide a curriculum signal for question generation in the next round. Prior work on LLM agents stores past interactions in memory to guide later decisions or model updates [Shinn et al., 2023, Zhao et al., 2024, Liu et al., 2025b, Ouyang et al., 2026, Cao et al., 2026, Xia et al., 2026]. In our setting, a failed trajectory that disagrees with the pseudo-label is compared with one that agrees. This comparison shows where their reasoning differs. We use this difference to identify a transferable error cause. The memory stores the cause and tracks when it recurs across questions. Self-consistency on questions generated for each cause shows whether it still needs direct practice.

Based on this insight, we propose DiagEvo, a diagnosis-guided self-play framework. Figure 1(c) summarizes its co-evolution loop. A lightweight LLM diagnostician extracts transferable error causes from solver trajectories and stores them in a hierarchical memory. Each cause remains Active while it is a direct generation target. It becomes Mastered after the solver reaches high self-consistency on related questions. The challenger uses this hierarchical memory to combine cause-targeted generation with free exploration. Before solver training, double-confidence filtering removes high-conflict questions whose two leading answers receive similar vote shares. The solver trains only on the remaining questions and their pseudo-labels. Failed trajectories from solver training update the memory for the next round. This closes the diagnostic feedback loop between solver failures and future question generation.

The main contributions are as follows.

  1. We derive a dynamic curriculum signal from recurring error causes in the solver's failed trajectories. This signal tracks unresolved weaknesses without relying on external task resources.

  2. We propose DiagEvo, which organizes these error causes in a hierarchical memory with Active and Mastered states. The memory uses their states and frequencies to coordinate cause-targeted generation, free exploration, and cross-state stitching, while double-confidence filtering excludes high-conflict question-pseudo-label pairs from solver training.

  3. Experiments on Qwen3-4B/8B and OctoThinker-8B show that DiagEvo achieves the best overall performance among the compared label-free and externally supervised methods. On Qwen3-8B, the default 4B diagnostician yields a 72.3% average on mathematical reasoning, improves over R-Zero by 4.5 points, and, despite using no external task resources, exceeds DARC in overall performance.

References (62)