Recursive Self-Improvement Breakpoints: Cross-Model Experience Inheritance and Memory Mechanisms
This article explains why a harness optimized for one model often performs worse after being migrated to another, and traces the failure to lost causal context rather than lost code. It introduces continual recursive self-improvement (Continual RSI) and self-improving memory (SIM) as structured development logs that carry changes, hypotheses, evidence, and scope together. It also covers six implementation practices for making experience inheritable and shows how such a loop can be assembled on Baidu AI Cloud using general-purpose services.
1. The Starting Problem: Faster Model Iteration Makes Past Optimization Look Like Scrap
As agent engineering spreads across teams, recursive self-improvement (RSI) has become a capability many groups are competing to build. One common misunderstanding is worth clearing up first: in an engineering context, “improvement” usually does not mean changing the hundreds of billions of parameters in the underlying model. It means polishing the layer wrapped around the model — commonly called the harness. That layer includes system prompts, tool descriptions and invocation constraints, context organization strategies, failure interception rules, and retry and fallback logic.
The value of this layer comes from long trial and error. A particular prompt may sharply reduce formatting errors, an interceptor may block an entire class of high-risk operations, and a retry strategy may lift the success rate of long-chain tasks. The problem is that these gains are tightly coupled to a specific model’s “temperament.” A frequently observed pattern in practice: a harness that evolved over many rounds on model A, with strong metrics, can score even lower after being moved to model B as-is than model B’s initial configuration.
The reason is not mysterious. What survives migration is usually only the “result” — a pile of rules, interceptors, and prompts. The “cause” — the failure mode each change was meant to fix, the evidence at the time, the directions already proven useless — is left behind in history. The optimizer taking over on the new model cannot read where these rules came from, so it starts taking actions that are “reasonable but wrong”: deleting a branch that exists to fix a fatal defect as if it were redundant, rerunning an approach long proven ineffective, or oscillating between two conflicting rule sets. The end result is that more optimization makes things worse, with the process falling into oscillation and dead loops.
2. Root Cause Breakdown: What Is Lost Is Not Code but the Causal Chain
Abstracting the problem one level up yields three clear failure sources.
First, a semantic gap. A rule is a compressed conclusion and inherently lacks its premises. Without premises, the model can only judge by surface similarity.
Second, an evidence gap. Without a record of how metrics moved before and after a change, the optimizer cannot distinguish an “effective constraint” from “historical noise.”
Third, a goal gap. Different models have different capability boundaries. The same constraint may be a guardrail on model A and a stumbling block on model B. Without attribution information, no trade-off can be made.
So the key to cross-model experience inheritance is not moving the artifacts over, but moving “artifact + motivation + evidence + applicable scope” as a whole.
3. The Framework: Continual RSI and Structured Experience Memory
Two consensus components have emerged in industry discussions of this problem.
One is a continual recursive self-improvement (Continual RSI) process: close the loop of “generate change — run evaluation — attribute — persist — regenerate” instead of doing one-off tuning.
The other is self-improving memory (SIM): give the optimizer a highly structured development log rather than a simple conversation history. It should contain at least the following fields:
{"exp_id": "E-0142","target": "harness.tool_policy.retry","hypothesis": "transient timeouts are the main cause of long-chain task failures","change": "add exponential backoff retries for idempotent tools, capped at 3","evidence": {"before": 0.61, "after": 0.74, "sample": 1200},"causal_note": "78% of failed samples were timeouts and replayable","scope": {"model_class": "long-context reasoning", "task": "multi-step tool calls"},"conflict": ["E-0098"],"status": "verified"}
With this log, when the underlying model changes, the optimizer can first filter applicable entries by scope, then use evidence to decide whether to keep, downweight, or retest an entry — instead of copying everything over or throwing everything out.
4. Implementation Essentials: Making Experience Truly Inheritable
1) Make changes atomic. Change one variable at a time so attribution stays clear; batched changes strip evidence of its explanatory power.
2) Make evaluation reproducible. Fix the task set, fix randomness control, and record version numbers so before/after comparisons hold.
3) Layer the memory. Put general constraints in a global layer, scenario strategies in a task layer, and adaptation parameters in a model layer, so the layers do not pollute each other.
4) Resolve conflicts. Build priority and conflict tables for rules, and automatically fall back to the last verified state when oscillation appears.
5) Add cost guardrails. Cap iteration counts, evaluation budgets, and fallback thresholds to prevent an “optimization dead loop” from burning compute.
6) Ensure observability. Write each iteration’s hypothesis, metrics, and artifacts into a logging service with monitoring and alerting configured, and trip a circuit breaker on abnormal swings.
5. Combining with Cloud Engineering Practice
When building a similar system on Baidu AI Cloud, the loop can be assembled from general-purpose capabilities: a container platform hosts evaluation sandboxes and parallel tasks, object storage keeps memory entries and artifact versions, a message queue decouples the generate, execute, and attribute stages, and logging plus monitoring and alerting provide iteration observability. This way, accumulating and migrating experience memory no longer depends on the private features of any single model, and becomes a portable engineering asset.
6. Conclusion
The real threshold for recursive self-improvement has never been “can it change,” but “is the change grounded in evidence.” Only when memory is upgraded from chat history to a development log carrying causes and evidence does cross-model inheritance hold: the new model neither starts from zero nor inherits blindly, but continues iterating on top of verifiable experience. That is the realistic path for agents to keep evolving.
