Small Models, Big Gains: How a 9B Model Drives Continuous Evolution of Large Models
This article explores a counterintuitive agent architecture in which a small ~9B-parameter model acts as a strategy layer while large models handle code implementation. It breaks down the general technical framework: a shared search state, online policy learning with exploration-exploitation balancing, conditional policy memory, a research workflow from diagnosis to attribution, an evaluation arena, and engineering practices for reliability and risk control—showing how to build a closed loop that lets models continuously hypothesize, experiment, and improve within a limited budget.
Small Models, Big Gains: How a 9B Model Drives Continuous Evolution of Large Models
When large models are used for code generation, experiment design, and system optimization, a common but easily overlooked problem emerges: models with more parameters are often very strong at execution, yet not necessarily good at “stopping to reflect on whether the method itself is wrong.” They may keep patching code along an existing line of thought, pushing local optimization to its limit, while rarely jumping out of the current framework to propose a fundamentally different technical route. A small model of around 9B parameters, by contrast—limited in capacity and knowledge density—tends to abstract strategies from problem structure, experimental feedback, and failure patterns, generating a more diverse set of candidate directions that the large model then implements, debugs, and validates. This division of labor—“small model for strategy, large model for execution”—forms a class of technical architecture worth studying: using a low-cost policy model to drive the continuous evolution of a strong execution model.
This article does not focus on any specific product or project. Instead, it abstracts the phenomenon into a general technical question: how to build a continuously learning, evaluable, and reproducible agent optimization framework that lets a model keep proposing hypotheses, running experiments, accumulating experience, and revising its strategy within a limited budget. The discussion covers the overall architecture, shared search state, online policy learning, policy memory, the research workflow, experience management, evaluation mechanisms, and engineering practices.
1. The Core Problem: Strong Execution Does Not Imply Correct Strategy
Large models are highly capable at code generation, bug fixing, and tool calling, but they are typically “executors,” not natural “research strategists.” Once a task enters the open exploration phase, the core questions are no longer “how do I write working code,” but rather “what should I try next,” “is the current failure a code defect or a methodological error,” and “should I abandon this direction entirely.” Without an explicit strategy layer, a model easily falls into local search: endlessly patching the same kind of implementation, repeatedly trying similar parameters, and ultimately burning through budget without breaking through structural bottlenecks.
Small models offer three potential advantages here. First, the strategy space is usually more abstract than the implementation space, so a 9B-class model is sufficient for pattern recognition, failure attribution, and candidate direction generation without bearing the full burden of code implementation. Second, small models are cheap to run, allowing many more rounds of policy sampling within the same budget and thus greater exploration diversity. Third, once the policy model is separated from the execution model, decisions are no longer hostage to the executor’s “implementation inertia,” making counterintuitive but effective candidates more likely.
A reasonable architecture therefore splits the system into a strategy layer and an execution layer: the strategy layer proposes, selects, and revises action plans; the execution layer turns plans into code, experiments, and validation results; and the two close the loop through a shared state and an experience store.
2. Overall Architecture: Decision Core, Shared State, Experience Store, and Evaluation Arena
The architecture can be summarized in five components:
- Policy decision core: maintains the shared search state, selects the next action, and decides whether to explore new ideas or refine historical versions.
- Shared search state: records code versions, version lineage, experiment successes and failures, unexplored directions, remaining budget, and uncertainty statistics.
- Execution and research workflow: a proposer analyzes the task and historical results to identify capability gaps; an executor implements, debugs, tests, and feeds results back.
- Skill and experience store: abstracts successful experience into conditional policy memories that support retrieval, reinforcement, revision, and retirement.
- Evaluation arena: determines whether the agent is genuinely learning and improving, rather than occasionally getting lucky.
The overall data flow: a task enters the system; the decision core reads the shared state, generates candidate actions, and scores them; the execution workflow carries out the action and produces experimental results; the evaluation arena performs reproducible validation; results are written back to the shared state and distilled into experience entries; the next decision round iterates on the updated state and experience.
A simplified state node can be represented as:
Node {version_id,parent_version,strategy_description,implementation_summary,experiment_conditions,result_metrics,failure_type,uncertainty,visit_count,remaining_budget}
When selecting an action, the system should not simply pick the node with the highest current score; it should jointly consider historical payoff, uncertainty, and budget constraints. Pseudocode:
function select_action(state, budget):candidates = state.history_nodes + generate_new_directions()for c in candidates:score = expected_gain(c)+ exploration_bonus(c.uncertainty)- cost_penalty(c.estimated_cost)- risk_penalty(c.failure_risk)if c.cost > budget.remaining:score = -infinityreturn argmax(score)
3. Shared Search State: Making Every Experiment Traceable
The shared search state is the foundation of the entire loop. It is not a simple experiment log but a continuously updated “search archive.” At minimum, it should contain: the code versions tried, the lineage between versions, success/failure outcomes of each experiment, directions not yet explored, the remaining experiment budget, and each direction’s historical performance and uncertainty.
Version lineage matters. Only by recording “which version a version was modified from, what motivated the change, and whether the result improved” can the system distinguish genuine improvement from random fluctuation. Failures are equally valuable: failure type, error location, triggering conditions, and repair attempts should be stored in structured form so the same pitfalls are not hit repeatedly.
The shared state should also be budget-aware. Open-ended search cannot run forever, so the decision core needs to know the remaining budget, per-experiment cost, validation cost, and opportunity cost. When budget is tight, the strategy should shift from broad exploration to convergent validation; after consecutive failures, it should increase penalties on the observed failure patterns or trigger a reassessment of the research direction.
4. Online Policy Learning: Balancing Exploitation and Exploration
The goal of policy learning is to let the decision core gradually learn which directions are worth pursuing and which methods should be abandoned. A common approach is to use upper-confidence-bound-style methods, such as KL-UCB-type policies. The core idea: for each candidate action, evaluate both its historical average payoff and its current uncertainty; actions with good historical performance but few attempts should receive an exploration bonus, while directions with poor performance and sufficient evidence should be deprioritized.
In non-stationary environments, historical payoffs cannot simply be averaged. The system should introduce time decay, segmented statistics, or statistics stratified by task conditions, so that an early lucky success does not mislead decisions for a long time. Failures should not all be scored as zero; they should be categorized by type: syntax errors, interface mismatches, logic defects, method inapplicability, evaluation instability, and so on—each type calling for a different corrective strategy.
Policy learning should also include stopping conditions. If a direction’s payoff confidence interval falls below a threshold after sufficient attempts, it should be marked low-potential; if no direction shows significant improvement, the system should trigger “redefine the problem” or “change the evaluation scaffold” rather than continue fine-tuning.
5. Policy Memory: Turning Success into Reusable Conditional Knowledge
Numerical reward learning alone is not enough, because much experience is conditional: a method may work for a specific task, data scale, or constraint set and fail elsewhere. The system therefore needs policy memory. Each memory entry should not merely record “method X succeeded”; it should store the method description, applicable conditions, counterexample conditions, evidence count, historical payoff range, last verification time, and invalidation flags.
A memory entry can be abstracted as:
PolicyMemory {method_summary,applicable_task_features,preconditions,expected_gain,failure_boundaries,supporting_evidence_count,counterexample_count,last_updated,confidence}
As new experiments arrive, memories should be reinforced, revised, or retired. If an entry repeatedly fails under new conditions, its confidence should be lowered or counterexample conditions added; if it has not been verified for a long time, it should be flagged for review; if it conflicts with a newer, stronger strategy, it should be retained but downweighted. During retrieval, matching should prioritize the current task’s features and preconditions rather than simply ranking by historical success rate.
6. Research Workflow: A Closed Loop from Diagnosis to Attribution
When the existing method itself is limited, patching code alone rarely produces real breakthroughs. A research workflow is needed: the proposer analyzes the current task, the evaluation scaffold, and historical experiment results to identify capability gaps and propose new solution ideas; the executor turns those ideas into code, completes debugging, testing, and validation, and feeds the results back to the decision core.
The workflow can be broken into six steps: problem diagnosis, hypothesis generation, experiment design, implementation, result validation, and failure attribution. Diagnosis must distinguish “implementation error” from “method inapplicability”; hypotheses must come with testable expectations; experiment design must control variables and record conditions; implementation must run in an isolated environment; validation must be reproducible; and attribution must be written back to the shared state and policy memory. Only with this attribution loop can the small model’s strategies be verified and corrected instead of remaining one-off suggestions.
7. Evaluation Arena: Determining Whether Learning Is Really Happening
The evaluation arena’s role is not simply to assign scores but to judge whether the agent can learn and improve from tasks. Evaluation should cover: per-task scores, cross-round learning curves, transfer to similar tasks, failure recovery, budget efficiency, and result stability. Evaluation overfitting must be guarded against—for example, repeatedly tuning against a fixed test set, memory leakage, or drifting evaluation conditions.
On the engineering side, reproducible experiment configurations, random seeds, environment versions, and result logs should be preserved; key conclusions should be verified through repeated runs; and ablation analysis should be applied to policy-memory gains to confirm that progress comes from the learning mechanism rather than lucky sampling. The arena should also enforce safety boundaries so the agent cannot game scores through non-compliant means.
8. Engineering Deployment and Risk Control
Deployment should focus on: sandbox isolation, resource quotas, versioned state, logging and monitoring, human review, and compliance auditing. The shared state and experience store should be versioned with rollback support; the execution environment should restrict network and file permissions; experiment budgets should be controlled hierarchically per task; and critical decisions can include human spot checks. General-purpose cloud capabilities—object storage, log services, monitoring and alerting—can support state persistence and observability, but the design should not depend on specific proprietary interfaces.
Key risks include: unstable strategy quality from the small model, evaluation bias causing incorrect reinforcement, memory contamination, excessive exploration cost, and uninterpretable decisions. Mitigations include: diversified policy sampling, structured failure attribution, conditional memories with counterexamples, repeated evaluation runs, hard budget constraints, and decision logs preserved along critical paths.
Overall, the value of “a 9B small model driving the continuous evolution of large models” lies not in the small model replacing the large one, but in decomposing strategy selection, code implementation, experience accumulation, and evaluation into manageable layers. The small model breaks out of inertia and proposes directions; the large model delivers high-quality implementation; the shared state and policy memory ensure every experiment informs the next decision; and the evaluation arena confirms that progress is real. Only then can a model system move from “one-shot generation” to an engineering closed loop of continuous improvement.
