Skip to content

Recursa: Toward a Recursive Self-Improving Foundation Model SystemRecursa: Toward Recursively Self-Improving Foundation Model Systems

Hugging Face Daily Papers· arXiv:2611.04035· Erkang Zhu, Yin Lin, Xiaorong Shi, Xuanrui Lin, Jingren ZhouAlibaba ResearchIndexed by this site · 20 days ago· Originally publishedAlignment

Quick read

Other

Based on the paper PDF (AI-generated); refer to the original

Recursa lets a foundation model system learn domain knowledge bases from its own experience; the authors report that on Harvey LAB, DeepSeek-V4.1-Flash test all-pass rises from 30.0% to 55.0%.

Questions
When a base model enters a new domain, it lacks expert data and supervision signals, making further training difficult; the authors define the problem as learning the entire base model system (model, instructions, skills, memory and harness), which requires closing both the knowledge gap and the behavior gap.
Methods
Recursa uses the same model as both solver and learner: it first bootstraps navigation structures and skills from the domain corpus and practices on its own, then the learner calls the solver in parallel, diagnoses failures, edits and validates instructions and skills, and after multiple learners split the task, merges the revisions and stores reflections in memory.
Experiments and results
On Harvey LAB Firm Knowledge, the authors report that DeepSeek-V4.1-Flash test all-pass rises from 30.0% to 55.0%, and Qwen3.8-Flash from 35.0% to 46.0%; multi-learner outperforms the single-learner baseline, and the bootstrapping stage mainly reduces interaction rounds and input tokens.
Limitations and future work
In the Limitations section, the authors list: dependence on the quality and availability of domain corpora, high compute requirements, erroneous data that can propagate through learning, failure to examine the impact of model capability ceilings, and limited experimental domains. Experiments are conducted only on the Harvey LAB legal benchmark with three models, and the paper does not report the number of repetitions or confidence intervals.
Experimental setupDeepSeek-V4.1-Flash、Qwen3.8-Flash et al. · Harvey LAB Firm Knowledge · all-pass rate、mean criteria pass rate
Evaluated models
DeepSeek-V4.1-FlashQwen3.8-FlashQwen3.8-27B
Benchmarks
Harvey LAB Firm Knowledge
Metrics
all-pass ratemean criteria pass rate
AI summaryRecursa is a foundation model system that adapts to new domains through recursive self-improvement without human experts or a stronger teacher model. It stores domain skills, task memory and improvement reflections in a knowledge repository, with parallel learners executing tasks and validating and merging improvements. On Harvey LAB's Firm Knowledge benchmark, Recursa raised DeepSeek-V4.1-Flash's all-pass rate on held-out test tasks from 30.0% to 55.0%, and Qwen3.8-Flash's from 35.0% to 46.0%.

Recursa is a foundation model system that adapts to new domains through recursive self-improvement without human experts or a stronger teacher model. It stores domain skills, task memory and improvement reflections in a knowledge repository, with parallel learners executing tasks and validating and merging improvements. On Harvey LAB's Firm Knowledge benchmark, Recursa raised DeepSeek-V4.1-Flash's all-pass rate on held-out test tasks from 30.0% to 55.0%, and Qwen3.8-Flash's from 35.0% to 46.0%.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    How to enable a base model system to continuously adapt to new domains through its own experience, without experts or a stronger teacher.

    Core problem: Foundation models encounter domain knowledge not covered by training in changing environments, and new domains often lack expert-annotated data and reliable supervision signals; how can the system adapt itself without human experts or stronger models.

    • Problem setting: The authors state that in knowledge-intensive domains such as law and finance, knowledge is scattered and lacks unified organization, and behavioral expectations are highly context-dependent, making correctness difficult to verify automatically.
    • Two types of gaps: The authors decompose adaptation into knowledge gaps (missing domain facts, terminology, and material locations) and behavior gaps (having information but using it incorrectly, e.g., finding a document but choosing the wrong one), and argue that both must be closed simultaneously.
    • Shortcomings of existing methods: The authors state that existing methods learn only partial components of the system (instructions, harness, tools/skills, or the model itself), mostly targeting behavior gaps; methods that study only corpora target only knowledge gaps; and they are mostly evaluated in automatically verifiable domains such as code, math, and games, often relying on stronger models to drive learning.
    • Core hypothesis: Instructions, skills, memory, and harness can be learned directly from domain materials and task experience, and the accumulated knowledge can in turn become model training data; therefore domain adaptation means learning the entire system rather than only training the model.
    • Proposed approach: Proposes Recursa, which uses a knowledge repository to store instructions, skills, and memory, first bootstrapping from domain materials and then refining through recursive self-improvement, all performed by the system's own model without stronger models.
  2. What related research exists?

    Related work is divided by learning target into instructions, harness, skills, learning methods and the model itself; the authors state that most of them cover only a single gap.

    Methods for learning local components of the system

    • Instruction optimization: DSPy (Khattab et al., 2024), TextGrad (Yuksekgonul et al., 2025), GEPA (Agrawal et al., 2026), ACE (Zhang et al., 2026d), etc. optimize prompts or context; the authors state that such methods learn how to act and target behavior gaps.
    • Harness and workflow optimization: Trace (Cheng et al., 2024), AFlow (Zhang et al., 2025b), ADAS (Hu et al., 2025), Darwin Gödel Machine (Zhang et al., 2026b), Meta-Harness (Lee et al., 2026), etc. optimize the agent's execution structure.
    • Tools, skills, and sub-agents: Self-Harness (Zhang et al., 2026a), Agentic harness engineering (Lin et al., 2026a), Harness² (Xu et al., 2026), RSIAgent (Zhu et al., 2026).

    Methods for learning domain knowledge from corpora

    • Machine studying (Li et al., 2026a), Corpus2Skill (Sun et al., 2026), Engram (2026) study domain corpora; the authors state that such methods target knowledge gaps, whereas correctly applying knowledge requires addressing both types of gaps.

    Self-improvement and reflection methods

    • Learning the method itself: STOP (Zelikman et al., 2024), Hyperagents (Zhang et al., 2026c), Meta context engineering (Ye et al., 2026); model weight updates: SIA (Hebbar et al., 2026), Terminal-RSI (Yang et al., 2026).
    • Reflexion (Shinn et al., 2023) performs in-context reflection from language feedback; the authors point out that its reflection remains within retries of a single task and does not accumulate across tasks.
    • The authors also state that these methods are mostly evaluated on code, math, and games, and often rely on stronger models to drive learning (naming Yuksekgonul et al., 2025; Hu et al., 2025; Zhang et al., 2025b).

    Designs directly borrowed in this paper

    • The harness borrows from ReAct (Yao et al., 2023) for contrast, code-style tool use (Wang et al., 2024, etc.), Scroll's context management (Lin et al., 2026b), and Recursive Language Models (Zhang et al., 2025a) for multi-agent orchestration; the bootstrapping stage borrows from RAPTOR (Sarthi et al., 2024), SPICE (Liu et al., 2025), PREPING (Choi et al., 2026).

    Baselines and benchmark: The experimental baselines are the same harness without the learning component, the components after bootstrapping, a single learner, and the base agent and the highest-accuracy study configuration in the published evaluation of Engram (2026); the benchmark is Harvey LAB Firm Knowledge (Harvey AI, 2026). The authors position this paper as a recursive self-improvement system that addresses both types of gaps simultaneously, is driven by the system's own model, and targets long-answer legal tasks.

  3. How does the paper address this problem?

    The same model acts as both solver and learner, first bootstrapping the knowledge base and then recursively self-improving, learning only instructions, skills, and memory.

    The overall idea of Recursa is to let the same model both solve tasks and improve the system: what is learned is stored in a textual knowledge repository (instructions, skills, memory), bootstrapped first from the domain corpus and then recursively refined from task experience. In this paper's setup, the harness and the base model remain fixed, and only the knowledge repository is learned.

    Problem Setup and Agent Roles

    • A new domain provides a corpus (documents, code or data) and a set of training tasks D with feedback; the system has two roles: the solver executes tasks, (y, τ) = SOLVE(x, K) means that given task x and the current component K, it returns answer y and execution trajectory τ; the learner improves the components, (K′, T) = LEARN(D, K) means it returns revised component K′ and learning trajectory T.
    • The learner can call the solver directly, or split the learning task among sub-learners, validate and merge the sub-learners' revisions, and then store reflections on the sub-learning trajectories in memory.

    Harness: Long-Horizon Execution Layer

    • Code-based tool composition: the model writes a Python action at each step, executed in a persistent REPL; intermediate results stay in variables, and only selected outputs return to the model context; long outputs are truncated and saved to disk, and errors return stack information.
    • Programmatic context management: the full interaction history is stored in an append-only event log, and the model context keeps only recent history and a retrievable eviction index, using code to retrieve records on demand.
    • Multi-agent orchestration: agents can call sub-agents from the REPL, process part of the work in parallel in isolated sandboxes and merge the results; the harness loads instructions and skills into the model context, and additionally loads memory into the learner.

    Stage One: Domain Knowledge Bootstrapping

    • Two kinds of artifacts: large heterogeneous corpora produce navigation structures (summaries linked to source locations, structured metadata narrowing the retrieval scope); narrow structured domains produce exploration notes (compact cheatsheets of terminology and conventions). Each record retains source links, uncertainty and scope of applicability, and records environment boundaries.
    • Multi-agent bootstrapping: parallel agents each summarize a part of the corpus in depth, and an orchestrator agent merges them into skills, checks them against sources and assigns follow-up work.
    • Self-practice: the agent generates practice tasks from the material it has read (requiring finding sources, reconciling evidence and giving grounded answers), and the learner evaluates the attempts, records reflections and updates skills, producing the initial component K(0).

    Stage Two: Recursive Self-Improvement

    • Leaf learner loop (Algorithm 1): repeat four steps—parallel Solve (one solver per task), Diagnose (distinguish real errors from noisy feedback), Edit (revise instructions and skills), Validate (re-solve affected tasks and sample already-passing tasks, keeping an edit only if it fixes failures and causes no regression); stop when there is no progress or the budget is exhausted.
    • Splitting, merging and reflection: the learner can split D by topic, failure type, skill or tool, and sub-learners recurse in parallel; the parent learner merges the revisions (deduplicating, reconciling conflicts, generalizing recurring lessons), samples and re-solves subtasks to confirm that merging has not offset the gains, and then launches a new round of learning tasks based on the reflections.
    • Learning waste and signal: the authors distinguish stalls (idle waiting) from rework (repeated labor), and state that parallelism and reasonable splitting can reduce waste while excessive splitting causes merge conflicts; the learner uses solver feedback and learning trajectories to iteratively correct diagnoses, and reflections are passed across rounds via memory.
  4. What experiments did the paper conduct?

    On Harvey LAB, multi-learner self-improvement raises DeepSeek-V4.1-Flash test all-pass from 30.0% to 55.0%.

    Experimental Setup

    • Models under test: DeepSeek-V4.1-Flash and Qwen3.8-Flash each serve as both solver and learner; for harness evaluation, Qwen3.8-27B is used as the solver to match the published reference.
    • Benchmark: Harvey LAB Firm Knowledge (v1.2.0), containing 46 fictional clients, 266 matters, 9,288 files, about 108 million tokens, 250 tasks in total, and 2,623 scoring criteria.
    • Data split: The 250 tasks were stratified by the single-task criteria pass rate of Qwen3.8-27B before learning into 150 training / 100 test, so that the two groups have similar difficulty.
    • Metrics and judging: all-pass rate (all criteria of a task pass) and mean criteria pass rate; all experiments use Qwen3.8-Max to judge each criterion.
    • Rubric revision: The authors found that 46 criteria in 30 tasks conflicted with the task statements or source documents and revised them (Appendix B, in five categories: Contradicts/Files/Omits/Admits/Placeholder); the revision raised most scores by up to 4 percentage points and lowered only one by 1 percentage point; unless noted, revised rubrics are reported.
    • Baselines: harness without a learning component, bootstrapped component K(0), single learner (no splitting, 5 rounds), and the reference row from the published Engram evaluation; the paper does not report the number of repetitions.

    Main Results

    According to Table 3 (revised rubrics, all-pass / criteria pass, %):

    Swipe horizontally to read the table

    ModelComponentTrain all-passTrain criteriaTest all-passTest criteria
    DeepSeek-V4.1-FlashNo learning32.079.830.080.0
    DeepSeek-V4.1-FlashBootstrap34.780.633.078.9
    DeepSeek-V4.1-FlashSingle learner K(4)34.775.343.078.8
    DeepSeek-V4.1-FlashMulti-learner K(2)48.786.355.084.1
    Qwen3.8-FlashNo learning35.380.635.083.2
    Qwen3.8-FlashBootstrap37.383.234.080.5
    Qwen3.8-FlashSingle learner K(5)30.073.137.077.7
    Qwen3.8-FlashMulti-learner K(1)47.385.646.084.4
    • The authors state that on both models the gains are concentrated in all-pass: learning completes partially correct answers into fully passing ones, and the gains transfer to test tasks not involved in learning; on the test set, all-pass is 25 percentage points higher than no learning for DeepSeek-V4.1-Flash and 11 percentage points higher for Qwen3.8-Flash.
    • Multi-learner outperforms single learner; for Qwen3.8-Flash, single learner training all-pass is 30.0%, lower than the 37.3% bootstrap baseline (Table 3).
    • Per-round results (Table 4) show that multi-learner fluctuates across rounds: for DeepSeek-V4.1-Flash, K(3) test all-pass is 43.0%, lower than K(2)'s 55.0%; the main text states that K(2) comes from the merged component plus one round, and Table 4 notes four rounds after merging.

    Harness Evaluation

    • According to Table 2, under Qwen3.8-27B the persistent REPL harness achieves 78.9% criteria pass and 35.2% all-pass on the original rubrics, and 79.1% and 37.2% on the revised rubrics; the reference base agent is 58.2% and 21.6%, and the reference highest-accuracy study configuration is 70.1% and 31.0%.
    • The authors note that the evaluation and adaptation procedures differ across systems; the authors state that the harness is already a strong starting point before learning.

    Effect of the Bootstrapping Stage

    • According to Figure 4 (DeepSeek-V4.1-Flash, all 250 tasks, revised rubrics): after bootstrapping, criteria pass goes from 79.9% to 80.0%, all-pass from 31.2% to 34.0%, the average number of rounds from 69.4 to 55.0, and input tokens from 6.45M to 4.81M.
    • Bootstrapping produces 14 skills (1 navigation skill covering 266 matters + 13 skills distilled from practice); the authors state that the main role of corpus knowledge is to reduce the retrieval and context cost of each solve, and that the small accuracy increase is consistent with a strong baseline.

    Learned Domain Judgment (Cases)

    • Figure 5 (Q157, Qwen3.8-Flash): after learning, the agent judges clauses by substance rather than title, and excludes transactions filed under other business groups and unsigned files, selecting the qualifying transaction signed later (the trajectory is a paraphrase).
    • Figure 6 (Q078, DeepSeek-V4.1-Flash): after learning, it first determines the candidate scope from the delegation records and then checks settlement execution, and the returned set changes from 8 matters to 7 qualifying matters; the authors state that Qwen3.8-Flash made the same correction after learning.

    Other Ablations and Analyses

    • Single-learner control: each of the two models runs 5 rounds, both lower than multi-learner (numbers in the main results table, Table 3).
    • Per-round results: Table 4 reports all numbers for each component on 250/150/100 tasks under the original and revised rubrics.
    • Effect of rubric revision: most scores rise by up to 4 percentage points, and only one falls by 1 percentage point (Section 6.1).
  5. What are some points that can be further explored?

    The authors list five limitations, including corpus dependence, compute and error propagation; the experiments cover only one legal benchmark and three models.

    Limitations and future directions noted by the authors

    • Corpus dependence: System performance depends on the quality and availability of domain corpora, and corpora for some domains may be limited or unavailable (Section 8).
    • Compute requirements: Large-model inference and training require substantial computational resources, which may limit accessibility (Section 8).
    • Error propagation: Erroneous or biased data and flaws in the underlying model can propagate through the learning process, leading to unreliable or biased results (Section 8).
    • Model capability ceiling: Learning effectiveness depends on the underlying model's capabilities, and the authors did not examine the impact of model limitations (Section 8).
    • Domain coverage: Experiments are concentrated on a limited set of domains and may not represent performance in all domains (Section 8).
    • Future directions: Extending recursive self-improvement to the foundation model and harness is ongoing work; the authors plan to extend to domains such as finance, engineering, and science (Section 7).

    Scope of experiments

    • The models tested are DeepSeek-V4.1-Flash and Qwen3.8-Flash (each serving as both solver and learner) and Qwen3.8-27B for harness evaluation, 3 in total; the judge model is Qwen3.8-Max (Section 6.1).
    • The evaluation benchmark is only one environment, Harvey LAB Firm Knowledge (250 tasks, 150 training / 100 test) (Section 6).
    • This paper's setting learns only the knowledge repository (instructions, skills, memory), with the harness and foundation model fixed; learning them is future work (Section 2.2).
    • The paper does not report the number of repetitions, variance, or statistical significance tests for each experiment, nor does it report token costs or time figures for the learning process.
    • The authors state that experiments were conducted in a strictly isolated sandbox with no network access, using only pre-downloaded public datasets (Section 8).
  6. Summarize the main content of the paper

    Recursa lets the model system self-learn a domain knowledge base; the authors state that test all-pass improves by 11–25 percentage points on a legal benchmark.

    Recursa is a domain adaptation method for foundation model systems proposed by Alibaba research, aiming to let the system continuously learn from its own experience without human experts or stronger teacher models.

    • Problem: The authors define domain adaptation as learning the entire system (model, instructions, skills, memory, harness), which requires closing both knowledge gaps and behavior gaps; the authors state that existing methods cover only part of this and mostly rely on stronger models and are mostly evaluated in domains that can be automatically verified.
    • Method: The same model acts as both solver and learner; the harness uses a persistent Python REPL to compose tools, uses event logs for programmatic context management, and supports multi-agent parallelism. It first bootstraps navigation structures and skills from the corpus and self-practices to obtain K(0), then the learner recursively refines instructions and skills in parallel through solving, diagnosing, editing, and verifying, and multiple learners split tasks by topic and then merge revisions.
    • Main results: On Harvey LAB Firm Knowledge (revised rubrics), multi-learner self-improvement raises DeepSeek-V4.1-Flash test all-pass from 30.0% to 55.0%, and Qwen3.8-Flash from 35.0% to 46.0% (Table 3).
    • Comparison: The single-learner baselines are 43.0% and 37.0% respectively, both lower than multi-learner; Qwen3.8-Flash single-learner training all-pass is also lower than the bootstrapping baseline (Table 3).
    • Other findings: The persistent REPL harness itself is a strong starting point (Qwen3.8-27B criteria pass 79.1%, Table 2); the bootstrapping stage mainly reduces the average number of turns from 69.4 to 55.0 and input tokens from 6.45M to 4.81M (Figure 4). The authors also revised 46 scoring criteria in the benchmark that conflict with the source documents.
    • Authors' conclusion: The authors state that the results show the system can improve performance on held-out tasks without rewriting by a stronger model; they also acknowledge limitations such as corpus dependence, compute requirements, error propagation, and limited domain coverage, and state that extending self-improvement to the model and harness is ongoing work.
Read originalhuggingface.co