Manuscript Offprint

arXiv:2610.41157

Lineage Is Memory: Parent Inheritance and Feedback Disclosure in Short-Budget LLM-Guided Optimization

Shanglin Yang, Zhan Shi

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

Abstract

Iterative language-model optimizers refine prompts and programs by evaluating a candidate, showing a proposer model a sample of failing cases, and keeping revisions that improve performance. Recent work attributes the limits of this loop to narrow single-round reflection, introducing full-set error clustering, targeted minibatches, or larger proposer models so the optimizer sees more failure modes per step. Yet every existing evaluation tests these mechanisms exclusively inside lineage-preserving search, where each revision edits a surviving parent, leaving the contribution of parent inheritance confounded with the breadth of per-round feedback. Across 1,750 pre-registered runs spanning nine prompt and program synthesis benchmarks, we separate parent inheritance from feedback disclosure under matched evaluation budgets. We find that greedy parent inheritance drives the vast majority of optimization progress, outperforming seed-reset resampling even when seed-reset proposals receive a clustered summary of all failures in every round or use a larger proposer model. While full-set error clustering and diverse failure selection improve single-step rewrites from the seed and accelerate the opening rounds of search, sequential parent inheritance rapidly closes this gap as solved error modes are retained in the candidate and filtered from subsequent failure lists. Moreover, decomposing token expenditure in GEPA reveals that proposer reflection accounts for only a small fraction of total cost whereas validation and minibatch gating consume nearly the entire budget, showing that greedy parent inheritance over raw failures captures the gains of complex reflective loops at a fraction of their compute.

1 Introduction

Reflective prompt and program optimizers refine candidate instructions or code through an iterative propose-and-evaluate loop. In GEPA (Agrawal et al., 2025), the system runs a candidate instruction on a small minibatch, presents the inputs, outputs, and evaluator feedback to a proposer model, accepts the revision if it improves minibatch performance, and selects subsequent parents from a Pareto front. Similar evolutionary loops underlie OPRO (Yang et al., 2023), EvoPrompt (Guo et al., 2023), Promptbreeder (Fernando et al., 2023), FunSearch (Romera-Paredes et al., 2023), and AlphaEvolve (Novikov et al., 2025).

Recent work has focused on widening what the proposer observes during reflection. Liu et al. (2026) note via a coupon-collector calculation that a random minibatch of three examples exposes only a small fraction of error modes per round, and propose ESPO, which clusters all training errors into three to seven diagnostic patterns before generating edits. RPT (Bayat et al., 2026) provides a tool that aggregates critiques across the training set, AdaGEPA (Chen et al., 2026) steers minibatch slots toward identified weaknesses, Contrastive Reflection (Koh et al., 2026) pairs failing and passing examples from decision-tree slices, and CASD (Singh et al., 2026) lets a coding agent inspect the full trace corpus. In all of these iterative studies, revisions are tested only inside lineage-preserving search, where every proposal edits a surviving parent. Without a lineage-off control that resets each proposal to the initial seed, existing evaluations cannot tell how much progress comes from wider single-round reflection and how much comes from accumulating edits along a parent-child lineage.

To separate these factors, we organize a large language model (LLM) optimizer around three design choices: lineage PP, feedback disclosure FF, and evaluation scheduling AA. Lineage PP determines whether each proposal edits the initial seed P=seedP = \text{seed}, which corresponds to best-of-NN resampling from the seed's feedback, or edits the current search-best candidate P=parentP = \text{parent}. Disclosure FF determines whether the evaluator shows the proposer only the scalar score, the first kk failures, kk structurally diverse failures, a random mixed minibatch of kk passing and failing examples, or an LLM-clustered summary of all failures with or without expected answers. Scheduling A governs candidate evaluation and stopping. We run a crossed P×FP \times F factorial experiment under a fixed full-search-set scheduler with early stopping, complemented by a system-level comparison against GEPA under matched maximum task-model call caps. Across 1,750 runs on nine task families, comprising five constructed rule-discovery tasks, a rubric-judged customer support task, ScoNe (She et al., 2023), a 12-intent subset of Banking77 (Casanueva et al., 2020), and BIG-Bench Hard salient translation error detection (BBH-STE) (Suzgun et al., 2022), we replicate the main contrasts on claude-haiku-5-5 and test a larger proposer model gpt-4.1.

Our main findings are as follows:

  • Parent inheritance outweighs single-round disclosure breadth and proposer size (Sections 4.1–4.2): On tasks where rules must be recovered from feedback, switching from P=seedP = seed to P=parentP = parent produces the largest accuracy gain in our study, adding +0.238 across all seven primary tasks on gpt-4.1-mini and +0.222 across five tasks on claude-haiku-5-5. This advantage holds even when seed-reset proposals draw fresh random examples each round in seed-minibatch or receive a clustered summary of all search-set failures in every round in seed-clustergold: showing just four raw failures under parent inheritance still beats seed-clustergold by +0.157. Upgrading the proposer from gpt-4.1-mini to gpt-4.1 on three feedback-dependent prompt tasks yields no clear gain in either row, while parent inheritance under gpt-4.1 adds +0.380.

  • Fact retention in the prompt explains the Banking77 gap with GEPA (Section 4.3): On the 12-intent Banking77 task, where intent names appear only in error feedback, baseline parent-first initially scored 0.372 against 0.664 for GEPA. Inspection of the search logs showed that early formatting-only edits scored 0.000 and stayed anchored to the seed, whereas GEPA's reflection prompt explicitly tells the proposer to copy domain facts from feedback into the instruction. In a follow-up experiment on Banking77 and BBH-STE, appending one sentence with this instruction raised parent-first on Banking77 from 0.372 to 0.856 at 43% of GEPA's median token cost, while seed-first with the same sentence retained only the 4 intents shown in round 1 and scored 0.317. On BBH-STE, where all six option labels are already in the seed, the same sentence reduced accuracy by -0.061.

  • Parent inheritance closes the gap with wider per-round disclosure over multiple rounds (Sections 4.4–4.6): When resetting to the seed, showing only the first four failures crowds out zero-feedback code priors on unshown error categories, and both diverse sampling and target-preserving clustering improve accuracy over first-k disclosure. Under parent inheritance, full-set clustering initially leads in round 2 by +0.173, but as solved categories are retained in the parent and filtered from future failure lists, first-k disclosure shifts across 46% to 86% of the search set, catching up by round 4 and finishing at the same level. Conversely, random mixed minibatches reduce parent-inheritance accuracy by spending feedback slots on passing examples.

  • GEPA spends most of its token budget on validation and minibatch gating (Section 4.7): Across all seven prompt tasks evaluated with GEPA, proposer reflection consumes only 2% to 15% of total tokens, while full search-set validations and minibatch checks consume the remaining 85% to 98%.

References (28)