RSIFlow: Adaptive Self-Improvement Workflows with an Evolving Meta-Agent
Organizations: Beijing Advanced Innovation Center for Future Blockchain and Privacy Computing, School of Artificial Intelligence, Beihang University · Tsinghua University · Beijing Academy of Artificial Intelligence (BAAI)
Abstract
Large language model (LLM) agents have demonstrated strong capabilities in complex tasks, including code generation, tool use, and multi-hop question answering. Existing self-improvement methods enhance agent performance through model optimization, harness evolution, and executable artifact refinement, while recursive self-improvement (RSI) further extends optimization to the improvement mechanisms themselves. However, adapting self-improvement workflows to evolving performance bottlenecks while improving workflow orchestration through execution feedback remains a key challenge. We propose RSIFlow, a Recursive Self-Improvement framework that integrates adaptive workflow orchestration with meta-agent capability evolution. RSIFlow diagnoses performance bottlenecks from task-agent trajectories and environmental feedback to dynamically select component-specific improvement workflows. The meta-agent then distills workflow outcomes into component-specific skills and cross-component principles, evolving its own harness to improve subsequent workflow orchestration. Experiments across six benchmarks and two backbone models show that RSIFlow achieves the SOTA average performance on all benchmarks. Ablation studies further demonstrate the contributions of adaptive workflow orchestration and meta-harness evolution. Code is available at https://github.com/1HUAN1/RSI-Flow.
Figures & tables
| Method | Code | Tool Use | SearchQA | Overall | |||
| HumanEval+ | MBPP+ | BFCL-v3 | ACEBench | Hotpot | 2Wiki | ||
| Qwen3-4B | |||||||
| AFlow | 39.63 | 53.37 | 26.32 | 34.00 | 52.59 | 38.45 | 40.73 |
| MermaidFlow | 48.78 | 57.87 | 28.19 | 31.58 | 56.32 | 38.79 | 43.59 |
| SFT | 39.63 | 55.62 | 26.88 | 29.82 | 53.52 | 41.24 | 41.12 |
| GRPO | 43.90 | 55.06 | 22.30 | 37.25 | 54.39 | 39.32 | 42.04 |
| Meta | Task | Code | Tool use | SearchQA |
|---|---|---|---|---|
| Evo. | Rou. | |||
| Vanilla | 48.25 | 29.70 | 34.52 | |
| 56.73 ( 8.48) | 29.70 ( 0.00) | 49.98 ( 15.46) | ||
| 63.42 ( 15.17) | 32.93 ( 3.23) | 44.89 ( 10.37) | ||
| 50.31 ( 2.06) | 32.15 ( 2.45) | 44.73 ( 10.21) | ||
| 52.34 ( 4.09) | 30.69 ( 0.99) | 52.57 ( 18.05) | ||
| Meta | Component | Code | Tool Use | SearchQA |
|---|---|---|---|---|
| Vanilla | 48.25 | 29.70 | 34.52 | |
| Meta0 | HARNESS | 48.30 | 30.40 | 44.62 |
| Meta1 | HARNESS | 46.32 | 31.16 | 45.04 |
| Meta2 | MODEL | 67.90 | 31.51 | 43.99 |
| Meta3 | ARTIFACTS | 67.08 | 31.83 | 50.58 |
| Meta4 | HARNESS | 68.86 | 30.84 | 54.13 |
Appendix figures & tables14 assets
Supplementary material from the paper’s appendix.
Appendix
| Domain | Dataset | Training total | Training per round | Reporting total |
|---|---|---|---|---|
| Code | TACO (DeepCoder subset) | 1,000 | 200 | — |
| HumanEval+ | — | — | 164 | |
| MBPP+ | — | — | 178 | |
| Code subtotal | 1,000 | 200 | 342 | |
| Tool use | EnvScaler | 1,000 | 200 | — |
| BFCL-v3 | — | — | 152 |
| Benchmark | Tasks | Metric |
|---|---|---|
| HumanEval+ | 164 | System pass@1 |
| MBPP+ | 178 | System pass@1 |
| BFCL-v3 | 152 | Weighted accuracy |
| ACEBench | 50 | Native weighted score |
| HotpotQA | 100 | Answer F1 |
| 2WikiMultiHopQA | 100 | Answer F1 |
| Method | Task backbone | Model training | Harness updates | Editable Task components | Adaptive selection | Meta evolution |
|---|---|---|---|---|---|---|
| SFT | Qwen3-4B / 8B | Yes | No | M | No | No |
| GRPO | Qwen3-4B / 8B | Yes | No | M | No | No |
| AFlow | Qwen3-4B / 8B | No | Yes | H | No | No |
| MermaidFlow | Qwen3-4B / 8B | No | Yes | H | No | No |
| HarnessForge | Qwen3-4B / 8B | Yes | Yes | M, H | No | No |
| SIA | Qwen3-4B / 8B | Yes | Yes | M, H | Yes | No |
| Parameter | Setting |
|---|---|
| Task backbone | Qwen3-4B / Qwen3-8B |
| Meta backbone | GPT-5.6 Sol |
| Evolution rounds | 5 |
| Attempts per round | At most 2 |
| Default Model update | SFT |
| Candidate initialization | Frozen round parent |
| Parameter | 4B SFT | 4B GRPO |
|---|---|---|
| Learning rate | ||
| LoRA rank / alpha | 8 / 16 | 8 / 16 |
| LoRA dropout | 0.05 | 0 |
| Precision / ranks | BF16 / 8 | BF16 / 8 |
| Maximum length | 16,384 | 32,768 |
| Global batch | 8 calls | 8 trajectories |
| Round | Route | Average (%) | Task intervention | Skill update and reuse |
|---|---|---|---|---|
| R1 | H | 32.23 | Add output-contract verification. | H1: distinguish interface errors from semantic failures. |
| R2 | H | 38.04 | Add receipt-grounded checks for unsupported completions. | H2: reuse H1’s contract-checking criterion for execution evidence. |
| R3 | M | 45.46 | Apply LoRA replay with 3,798 eligible calls. | M1: consolidate recurring behavior through successful-call replay. |
| R4 | M | 47.11 | Extend replay to 5,397 eligible calls. | Reuse M1 and supplement it with new evidence. |
| R5 | A | 51.21 | Task-Agent edits, tests, and resubmits its own code within budget; Model and Harness remain fixed. | A1: output repair using prior guidance and current feedback. |
| Component | Editable object | Retained across rounds | Use on a new task | Preserved scope |
|---|---|---|---|---|
| Model | Task-model parameters or adapters. | Accepted checkpoint or adapter. | Generate fresh outputs with the updated model. | Harness unchanged; no direct output revision. |
| Harness | Action, Skill, or Planning modules. | Accepted execution logic and configuration. | Execute the new task using the revised Harness. | Model unchanged; no direct output revision. |
| Artifacts | Current code, structured submission, or answer. | Revised output for the same task; reusable experience enters Meta-Skills separately. | Generate a fresh output and reuse applicable revision guidance. | Model parameters and Harness unchanged. |
| Metric | SFT-1200 | GRPO-3000 |
|---|---|---|
| HumanEval+ pass@1 | 68.29 | 70.12 |
| MBPP+ pass@1 | 64.04 | 64.04 |
| BFCL-v3 weighted accuracy | 26.32 | 27.63 |
| ACEBench weighted score | 31.57 | 33.33 |
| HotpotQA answer F1 | 50.06 | 52.91 |
| 2Wiki answer F1 | 37.79 | 40.45 |
| Meta | Route | Code | Tool | QA |
|---|---|---|---|---|
| Initial Task | — | 48.25 | 29.70 | 34.52 |
| Meta0 | H | 48.30 | 30.40 | 44.62 |
| Meta1 | H | 46.32 | 31.16 | 45.04 |
| Meta2 | M | 67.90 | 31.51 | 43.99 |
| Meta3 | A | 67.08 | 31.83 | 50.58 |
| Meta4 | H | 68.86 | 30.84 | 54.13 |
| Operation | Evidence-driven change |
|---|---|
| Add | Create an entry for an uncovered strategy, with conditions and source cases. |
| Supplement | Attach support or counterexamples to an existing strategy. |
| Revise | Update a condition, step, or invariant in a linked successor version. |
| Merge | Consolidate duplicate or superseded entries in the active view. |
LLM Agent Self-Improvement
Large language model agent self-improvement studies how agents use experience and feedback to improve their behavior, tools, and workflows.
See all 277 papers