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

Shanglin Yang, Zhan ShiarXiv 2026

TL;DR

This paper demonstrates that in iterative LLM-guided optimization, parent inheritance—the act of editing the current best candidate rather than starting from the initial seed—is the primary driver of performance gains. The authors show that simple greedy inheritance often outperforms complex error-clustering techniques, effectively acting as a form of "memory" that captures the benefits of sophisticated reflective loops at a fraction of the computational cost.

What Problem Does This Paper Address?

LLMs are increasingly used as "optimizers" to automatically refine prompts or code. The standard loop involves evaluating a candidate, showing the LLM some failing examples, and asking it to propose a better version. Recent research has focused on "widening the reflection scope"—using techniques like error clustering or larger models to ensure the LLM sees every possible failure mode in a single round.

However, the authors identified a major confounding factor: almost all existing studies test these techniques within a "lineage-preserving" search (editing the best previous version). This makes it impossible to tell if improvements come from the sophisticated feedback or simply from the cumulative progress of building on a parent. This paper aims to disentangle these two factors to find out what actually makes LLM optimizers work under tight compute budgets.

Methods

The researchers developed a controlled framework called the P/F/A Optimization Loop, which breaks the process into three design choices:

  1. Lineage ($P$): Does the model edit the initial Seed ($P=seed$, essentially best-of-N resampling) or the current search-best Parent ($P=parent$)?
  2. Feedback Disclosure ($F$): What does the proposer see? Options ranged from None (just the score) and First-k (the first 4 failures) to Diverse (4 structurally different failures) and Clustergold (an LLM-generated summary of all failures with expected answers).
  3. Evaluation Scheduling ($A$): A fixed budget of 8–12 rounds per task.

They conducted a massive factorial experiment with 1,750 pre-registered runs, comparing these strategies across different models (GPT-4.1-mini, GPT-4.1, and Claude-Haiku-5.5).

Datasets

The study utilized nine task families to test different aspects of optimization:

  • Constructed Rule-Discovery: labels, dates, routing, duration, and size. These require the model to learn specific formatting or logic rules hidden in the feedback.
  • Natural Language Tasks: replies (customer support) and scone (negation reasoning).
  • Public Benchmarks: banking77 (intent classification) and bbh_ste (translation error detection).
Table 1: Specifications of the seven primary tasks and two public extension tasks.

Key Insights and Ideas

  • Lineage is the "Killer App": Switching from editing the seed to editing the parent provided a massive +0.238 accuracy boost across primary tasks. This effect was far larger than the gain from upgrading the proposer model or providing more complex feedback.
  • The "Residual-Error Exposure Shift": Under parent inheritance, simple "First-k" feedback eventually catches up to complex "Full-set Clustering." Why? As the model fixes errors, those cases disappear from the failure list, naturally pushing new, unsolved error modes into the "First-k" window in later rounds.
  • Fact Retention Gap: On tasks like banking77, where the model must discover specific category names from feedback, standard optimizers often fail because they don't "remember" to copy these facts into the next prompt. Adding a simple instruction to "copy every task-specific fact" allowed parent inheritance to smash state-of-the-art baselines like GEPA.
  • Efficiency Paradox: The authors found that state-of-the-art optimizers like GEPA spend 85% to 98% of their token budget on validation and gating, while the actual "reflection" (the LLM thinking about errors) is a tiny fraction of the cost.

Key Results

The main takeaway is visually striking in Figure 1: the blue lines (Parent inheritance) consistently and rapidly outperform the orange lines (Seed-reset), regardless of the feedback scheme used.

Figure 1: Held-out accuracy of the search-best candidate across disclosure schemes on the seven primary tasks for gpt-4.1-mini, comparing seed-reset resampling (P = seed, orange) against greedy parent inheritance (P = parent, blue). Points show means over n = 10 runs per cell; shaded bands indicate 95% bootstrap confidence intervals. The zero-feedback baseline (none) is shared by both rows.

Quantitatively, parent inheritance added +0.332 accuracy on "non-ceiling" tasks (tasks where there was room to improve). Even when the seed-reset model was given a perfect summary of every single failure (seed-clustergold), it was still beaten by a parent-inheritance model that only saw four raw failures (parent-first) by a margin of +0.157.

Table 2A: Held-out accuracy cell means and per-task lineage effect ∆lineage on gpt-4.1-mini (n = 10 runs per cell). “5 Non-Ceil.” averages over the five tasks with headroom above seed-none (labels, routing, replies, duration, size), excluding dates and scone.

Limitations and Future Work

  • Short Budgets: The study focused on "short-budget" scenarios (8-12 rounds). It's possible that on much larger budgets or significantly more complex tasks, the advantage of full-set clustering might grow.
  • Task Nature: Many tasks were "rule-discovery" oriented. The authors note that on tasks where the specification is already complete in the seed (like bbh_ste), some of these optimization strategies can actually slightly hurt performance by over-complicating the prompt.
  • Future Direction: The authors suggest that future research should always include a "lineage-off" control and a "zero-feedback" baseline to ensure that reported gains are actually due to the proposed reflective mechanism rather than just basic iterative search.

Summary updated

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.
BibTeX
@misc{yang2026lineage,
  author = {Shanglin Yang and Zhan Shi},
  title = {{Lineage Is Memory: Parent Inheritance and Feedback Disclosure in Short-Budget LLM-Guided Optimization}},
  year = {2026},
  eprint = {2610.41157},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.41157},
}
Figure