PACE: Two-Timescale Self-Evolution for Small Language Model Agents

Chen Ling, Pei Chen, Xiangchen Guan, Jiaming Qu, Shayan Ali Akbar, Madhu Gopinathan, Erwin CornejoNeurIPS 2026

TL;DR

Can a tiny, frozen language model rewrite its own code and prompts to get smarter—without Fine-Tuning or crying to GPT-4 for help? Yes, if you get the timing right. PACE introduces a two-speed self-evolution loop that tweaks safe text prompts first, and only lets the model rewrite its underlying Python control logic after prompt gains flatten out—allowing 9B-parameter models to punch way above their weight class.

What Problem Does This Paper Address?

Anyone who has deployed an LLM agent knows the dirty secret: the model is only half the battle. The rest is an exhausting human ritual of tuning prompts, fixing brittle regex parsers, and tweaking retry loops.

Recently, "self-evolving" agents promised to automate this by inspecting their own failures and rewriting themselves. There’s just one catch: almost all of them assume you have a massive frontier model acting as the architect, debugger, and judge.

What if privacy, latency, or cost restricts you to a frozen Small Language Model (SLM) with 4B to 14B parameters? Left to their own devices, SLMs struggle to self-evolve. If you only let them edit prompts, they hit a ceiling fast because words alone can't fix broken output parsers or missing verification steps. Conversely, if you let a 9B model rewrite its own executable Python code ("control logic") right out of the gate, chaos ensues—it writes syntactically valid code that silentlylobotomizes its own accuracy.

Methods

Instead of inventing a brand-new way to mutate prompts or write code, the authors realize the real magic is in scheduling and gating. They propose PACE (Prompt And Control Logic Evolution), which separates adaptation into two distinct timescales around a frozen model:

Figure 2: Overview of PACE. An agentic controller invokes prompt evolution until gains saturate, then proposes bounded control-logic updates and commits them only after held-out validation.
  1. Fast, Low-Risk Prompt Evolution (PE): By default, PACE keeps the Python scaffolding locked and refines text instructions. It generates candidates via handcrafted perturbations, failure reflections, and crossovers (merging strengths of top prompts), maintaining a Pareto front that balances accuracy against token cost.
  2. The Saturation Trigger: PACE watches validation improvements. As long as prompt tweaks yield gains above a threshold ($\epsilon = 0.01$), it stays in text-land. Once gains flatline, it unlocks the toolbox.
  3. Slow, Validated Control-Logic Evolution (CE): Now, the SLM analyzes recent errors and proposes bounded code edits to its solver function—like adding majority voting, retry loops, or stricter answer extraction.
  4. Proposal vs. Acceptance: Because SLMs cannot be trusted to judge their own code, PACE never accepts an edit on faith. Every candidate solver must beat the current champion on a fresh held-out validation slice by a strict margin ($\delta = 0.02$) within a resource budget. If accepted, prompt evolution restarts to adapt the text to its shiny new body.

Datasets

PACE is evaluated across four static benchmarks and one interactive environment (no new datasets are introduced):

  • MMLU: Knowledge-intensive multiple-choice reasoning.
  • MGSM: Multilingual grade-school math.
  • HotpotQA: Multi-hop question answering.
  • IFEval: Strict, verifiable instruction following.
  • $\tau$-bench: A multi-turn agentic benchmark (Retail and Airline domains) where the agent navigates domain policies, API tools, and a simulated human user (powered by Claude Sonnet 4.5).

Key Insights and Ideas

  • Prompts and code fix fundamentally different bugs: Tracking failure modes reveals why two timescales work. Early prompt evolution wipes out formatting and basic extraction errors. Once it plateaus, the remaining errors are deep reasoning mistakes or hard constraint violations—problems that require structural changes like multi-sample voting or verification passes.
  • Premature optimization is the root of instability: Letting an SLM edit code from step one produces wild, noisy swings because it tries to write structural patches for problems caused by a terrible initial prompt.
Figure 1: PACE evolution dynamics on Qwen3.5-9B. Prompt-only evolution (+PE) improves early but quickly saturates, while control-logic evolution (+CE) is noisy when structural updates are applied from the start. PACE first exploits stable prompt refinement, then introduces a validated control-logic update after prompt gains plateau, producing a performance jump and final better ac- curacy.
  • SLMs are terrible coders, which is fine if you have a bouncer: Across audited runs, the 9B model proposed 87 control-logic edits, and 68 were rejected! One rejected edit wrote a strict JSON parser that crashed MMLU accuracy from 83% to 0%. Empirical validation turns a noisy idea generator into a reliable optimizer.
  • Big models don't need this: When tested on a massive model (DeepSeek-V4-Flash, 284B total parameters), PACE actually lowered average accuracy by 0.3 points. Frontier models already squeeze most of the juice out of vanilla setups; PACE specifically shines where capacity is tight.

Key Results

Tested on frozen Qwen3-4B, Qwen3.5-9B, and Ministral-3-14B, PACE sweeps the board, winning all 12 backbone–benchmark combinations against prompt optimizers (MIPROv2, GEPA, ACE) and self-modifying baselines (Gödel Agent).

  • Closing the frontier gap: On Qwen3.5-9B, PACE boosts MMLU from 0.818 to 0.889 (+8.7% relative) and IFEval from 0.697 to 0.761 (+9.2% relative), closing 79% of the MMLU gap to the giant 685B DeepSeek-V3.2 reference. On HotpotQA, Qwen3.5-9B + PACE (0.803) actually beats vanilla DeepSeek-V3.2 (0.779).
  • Multi-turn tool use: On $\tau$-bench, Qwen3.5-9B with PACE outperforms published GPT-4o and Claude 3.5 Sonnet baselines across all multi-trial consistency ($pass^k$) metrics in both Retail and Airline domains.
  • The Cost: Evolution is a one-time upfront cost of 2.1M–3.9M tokens. At deployment, evolved solvers (which often discover voting or verification) use 1.6–5.2$\times$ more tokens, translating to a modest 1.30$\times$ wall-clock latency on MMLU thanks to batched serving.

Limitations and Future Work

PACE trades inference compute for accuracy—it does not magically beat baselines at equal token cost. Repeatedly checking a validation pool can also introduce subtle selection bias, and empirical gating offers no formal safety guarantees for high-stakes or adversarial environments. Moreover, if the base model is simply too small for the task (like Qwen3-4B on HotpotQA or multi-trial Airline tasks), no amount of scaffolding saves it.

Looking ahead, the authors point out a neat byproduct of their bouncer-at-the-door approach: all those accepted and rejected evolution trajectories form a natural, reward-labeled dataset that could be used to train dedicated "evolution controllers" in the future.

Summary updated

Abstract

Deploying language-model agents in production often requires substantial compute and human effort to tune prompts, parsers, validators, and other components of the agent pipeline. Self-evolution offers a promising alternative, but most existing frameworks assume access to frontier models that can reliably diagnose failures, propose revisions, and judge their own updates. We study whether frozen small language models (SLMs) can serve as effective self-evolving agents under resource constraints. We propose PACE (Prompt And Control Logic Evolution), a two-timescale framework that coordinates low-risk prompt refinement with higher-risk control-logic updates. PACE evolves prompts under fixed control logic until prompt-level gains saturate, then considers constrained control-logic updates that are accepted through held-out validation. Across three frozen SLM backbones ranging from 4B to 14B parameters and four controlled benchmarks, PACE achieves the best performance on all 12 backbone--benchmark combinations, improving over vanilla SLM agents by up to $+9.2\%$ relative improvement and over the stronger single-mode evolution baseline by up to $+5.4\%$ relative improvement. A $\tau$-bench case study further shows that PACE improves multi-turn tool-use success over vanilla and prompt-only evolution. These results suggest that reliable SLM agent self-evolution is possible without updating model weights or relying on frontier-model teachers, and that the key benefit is not any single final solver pattern but autonomous, validated discovery of task-appropriate inference strategies.
BibTeX
@inproceedings{ling2026pace,
  author = {Chen Ling and Pei Chen and Xiangchen Guan and Jiaming Qu and Shayan Ali Akbar and Madhu Gopinathan and Erwin Cornejo},
  title = {{PACE: Two-Timescale Self-Evolution for Small Language Model Agents}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=oJZW5RKOB4},
}
Figure