Manuscript Offprint

arXiv:2611.04035

Recursa: Toward Recursively Self-Improving Foundation Model Systems

Erkang Zhu, Yin Lin, Xiaorong Shi, Xuanrui Lin, Jingren Zhou

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Foundation models in changing environments can encounter unfamiliar domain knowledge that their original training did not cover. However, new domains rarely provide large amounts of expert-created training data or reliable supervisory signals for further training.

We introduce Recursa, a foundation model system that adapts to new domains by learning from its own experience without human experts or a stronger teacher model. Recursa uses a knowledge repository to store what it learns: domain-specific skills and instructions on when to apply them, along with memories of past task experiences and reflections on what to improve. Recursa bootstraps the repository from domain materials and then refines it through recursive self-improvement. It uses parallel learners to execute tasks and synthesize local improvements, then validates and merges the improvements into the knowledge repository. On Harvey LAB's Firm Knowledge benchmark, Recursa raises the all-pass rate on held-out test tasks from 30.0% to 55.0% with DeepSeek-V4.1-Flash and from 35.0% to 46.0% with Qwen3.8-Flash.

1. Introduction

A foundation model is trained across diverse domains, yet it will always encounter new knowledge, unseen requirements, and unfamiliar tools in a changing environment. Adapting the model through further training, such as reinforcement learning, requires extensive training data and reliable supervision or reward signals, which a new domain rarely provides at first. The model's instructions, skills, memory, and harness, on the other hand, can be learned directly from domain materials and task experience. The accumulated knowledge in these components, in turn, provides data for training the model. Therefore, domain adaptation means learning the whole system, not just the model. The challenge, then, is not just to train a strong model once, but to build a foundation model system that continues to acquire knowledge and adapt its behavior.

We call this problem foundation model system learning: improving a system comprising a model, instructions, skills, memory, and a harness through domain materials and task experience. Learning must close two gaps. The knowledge gap arises when the system lacks the domain's facts, terminology, or knowledge of where its materials are located. The behavior gap arises when the system has the required information but applies it incorrectly; for example, it may find the relevant documents yet select the wrong ones when writing an answer. To close the knowledge gap, the system can learn from the domain's materials; to close the behavior gap, it can learn by working on tasks and reflecting on feedback. We study the setting in which the system recursively self-improves: the system's own model modifies the system to address both gaps and refine the improvement process itself, without help from a human expert or a stronger model.

Knowledge-intensive domains such as law and finance make this problem harder. The domain knowledge is scattered and lacks a common organization, and behavioral expectations are highly local: the same evidence may support different conclusions depending on the context and the user's objectives, and correctness is often difficult to verify automatically. This requires an efficient learning method capable of drawing on more materials and task experience than any one agent can examine. This also requires a harness that can sustain long-horizon work for the same model in both roles: finding evidence among thousands of documents to solve a task, and diagnosing and reflecting on failures across many long agent trajectories to improve the learning process.

Existing methods learn parts of the system: its instructions (Khattab et al., 2024; Yuksekgonul et al., 2025; Agrawal et al., 2026; Zhang et al., 2026d), harness (Cheng et al., 2024; Zhang et al., 2025b; Hu et al., 2025; Zhang et al., 2026b; Lee et al., 2026; Zheng et al., 2026), tools, skills, and subagents (Zhang et al., 2026a; Lin et al., 2026a; Xu et al., 2026; Zhu et al., 2026), the learning method itself (Zelikman et al., 2024; Zhang et al., 2026c; Ye et al.,

1^{1}Alibaba Research. Correspondence to: Erkang Zhu erkang.zhu@alibaba-inc.com, Yin Lin yin.lin@alibaba-inc.com, Xiaorong Shi shxiaorong.sxr@alibaba-inc.com, Xuanrui Lin linxuanrui.lxr@alibaba-inc.com, Jingren Zhou jingren.zhou@alibaba-inc.com.

Preprint. November 4, 2026.

Table 1. Recursa's learning phases.

PhasePrimary signalsObjective
BootstrappingDomain materials and self-practice tasks generated from themClose the knowledge gap: summarize and map the materials and practice applying them, with parallel agents covering the materials.
Recursive self-improvementTraining tasks, execution traces, and available feedbackClose the behavior gap: refine the knowledge repository from task experience by decomposing learning across child learners, attempting tasks in parallel, and validating results.

2026; Lee et al., 2026; Xu et al., 2026), or foundation models (Hebbar et al., 2026; Yang et al., 2026). Most of these methods learn how to act from task feedback, targeting the behavior gap. In contrast, methods that limit themselves to studying a domain corpus (Li et al., 2026a; Sun et al., 2026; Engram, 2026) target the knowledge gap. Incorporating domain knowledge and applying it correctly, however, requires addressing both gaps. In-context reflection on task feedback (Shinn et al., 2023) learns from linguistic feedback without updating weights, but keeps its reflections within a single task's retries rather than accumulating them across tasks. Moreover, most existing methods are evaluated on coding, mathematics, and games. In those domains, evaluation often focuses on short, exact answers that do not check supporting evidence or reasoning behind the answers, or on numerical metrics that allow repeated self-testing and refinement on the same task. Often, these methods also rely on a stronger model to drive learning (Yuksekgonul et al., 2025; Hu et al., 2025; Zhang et al., 2025b), rather than using the system's own model to self-improve.

We introduce Recursa, a foundation model system that adapts to new domains through recursive self-improvement. Recursa stores what it learns in a knowledge repository of instructions, skills, and memory that the model draws on when solving tasks and improving the system itself.

Recursa bootstraps the knowledge repository by summarizing and mapping domain materials and practicing on tasks generated from them, thereby closing the knowledge gap. It then refines the repository through task experience to close the behavior gap (Table 1). The same model bootstraps, solves, and learns iteratively. Each iteration updates the knowledge repository and changes how the model acts as a solver as well as a learner. This cycle lets the system improve on its own rather than relying on guidance from a stronger model. Both phases distribute work across parallel agents and merge their results, enabling them to process larger amounts of domain material and diverse task experience. All agents run on a harness built for long-horizon work (Section 3).

The accumulated learning in the knowledge repository becomes the source of training data for model learning and harness improvement. In this paper, we focus on learning

the knowledge repository that forms the basis for a fully recursively self-improving foundation model system.

We evaluate Recursa on Harvey LAB's Firm Knowledge benchmark (Harvey AI, 2026), where the correctness of a long-form answer depends on specific knowledge and its accurate application. We found that the harness alone provides a strong starting point. Bootstrapping makes each task attempt more efficient, and recursive self-improvement enables the system to complete substantially more tasks: without a stronger model revising it, Recursa raises its all-pass rate on held-out test tasks from 30.0% to 55.0% with DeepSeek-V4.1-Flash and from 35.0% to 46.0% with Qwen3.8-Flash.

References (37)