By NHI Mgmt Group Editorial TeamBased on Arize: “GEPA vs Prompt Learning: Benchmarking Different Prompt Optimization Approaches” (November 17, 2025)

TL;DR: Prompt Learning and GEPA share the same trace-driven feedback loop for improving LLM applications, but Arize argues that richer evals and tailored meta-prompts matter more than evolutionary search features, especially when teams cannot rebuild their stack around DSPy. The practical takeaway is that prompt optimisation is shifting from manual tuning to governed, trace-aware iteration, which creates new oversight pressure for AI applications and agent workflows, according to Arize.


At a glance

What this is: Arize argues that prompt optimisation for LLM agents is moving toward evaluation-driven iteration, where trace-aware feedback and tailored meta-prompts shape performance more than optimisation mechanics alone.

Why it matters: That matters because AI teams are now governing agent behaviour through prompts, traces, and evals, which turns prompt quality into an operational control rather than a drafting exercise.


Context

Prompt optimisation for LLM agents is the practice of improving system prompts through feedback from real runs rather than intuition alone. In agentic systems, prompts govern tool use, reasoning paths, subagent selection, and output shape, so weak prompt controls can become a governance problem rather than just a quality issue.

Arize’s comparison frames a wider shift in AI operations: trace data and evaluation design are becoming the main evidence used to judge whether agent behaviour is improving. That is directly relevant where organisations are treating LLM agents as operational systems with delegated actions, because prompt changes can alter decision boundaries without changing code.


Key questions

Q: How should teams govern prompt changes in LLM agents?

A: Teams should govern prompt changes the same way they govern other runtime controls: version them, test them against real traces, and require evidence that the new behaviour improves task execution. Prompt edits can change tool use and reasoning paths without code changes, so review needs to focus on observed behaviour, not just the wording of the prompt.

Q: Why do weak evals undermine prompt optimisation for agents?

A: Weak evals give the optimiser the wrong signal, so the system learns to optimise for shallow scores instead of better agent behaviour. When the evaluation does not expose multi-step reasoning, constraint handling, or trace fidelity, prompt updates can look successful while the real workflow still fails.

Q: What breaks when prompt optimisation ignores traces?

A: Without traces, the optimiser sees only the outcome and loses the context needed to understand where the agent went wrong. That makes it harder to improve tool selection, retrieval use, and step-by-step reasoning because the prompt is being tuned against an incomplete picture of execution.

Q: What is the difference between framework-agnostic and framework-bound optimisation?

A: Framework-agnostic optimisation can use traces from an existing application stack, while framework-bound optimisation requires the whole system to be expressed inside one abstraction before it can learn from execution. The practical difference is adoption cost, because the former fits production systems with less refactoring and less governance disruption.


Technical breakdown

Trace-level reflection in agent prompt optimisation

Trace-level reflection means using execution traces from a live or simulated run to help an LLM judge how the system behaved and how the prompt should change. In agentic workflows, traces capture retrieval, tool calls, intermediate reasoning, and final responses, which gives the optimiser more context than a final answer alone. That matters because the same prompt can fail for different reasons across different steps, and a single scalar score can hide those differences. Arize’s article argues that trace-aware optimisation is useful precisely because it exposes the path, not just the outcome.

Practical implication: Use traces as the evidence source for prompt changes, not only final outputs.

Why evaluation design matters more than prompt search mechanics

Prompt optimisation can be framed as a feedback loop, but the quality of the feedback determines whether the loop improves anything meaningful. Richer evals can encode multi-step reasoning quality, fidelity to retrieved evidence, and task-specific constraints, while weak evals reduce the optimiser to chasing superficial score gains. That is why two systems with the same optimisation loop can diverge sharply in outcome. The article’s central technical point is that evaluation engineering changes the search space by changing what the optimiser can learn from each run.

Practical implication: Design evals that expose failure modes, not just pass or fail scores.

Framework-agnostic optimisation versus structured application abstractions

A key architectural distinction is whether prompt optimisation requires a full application to be expressed in a specific framework or whether it can operate on instrumented traces from an existing stack. In the article, that difference separates DSPy-bound optimisation from a more vendor-agnostic approach that can ingest traces from different frameworks. For practitioners, this is not just an implementation detail. It affects migration cost, governance scope, and how much of the agent stack must be standardised before optimisation is possible.

Practical implication: Prefer optimisation workflows that fit the current stack instead of forcing a rewrite around one abstraction.


NHI Mgmt Group analysis

Evaluation quality is now the real control surface for agent prompt governance. Once prompts decide when tools are called, what arguments are passed, and which reasoning path is taken, evaluation design becomes part of the control plane. A weak eval can validate the wrong behaviour just as a weak policy can permit the wrong access path. For teams governing agentic systems, the practical conclusion is that prompt optimisation and control assurance now need to be reviewed together.

Trace-aware prompt tuning exposes a new governance gap: behaviour changes faster than review processes. When prompts are iterated from traces, the system can improve in ways that are not obvious from a static prompt diff. That creates oversight pressure for AI programmes because the meaningful change is in runtime behaviour, not just text. The named concept here is trace-informed prompt drift: prompt behaviour changes that only become visible when execution traces are inspected across versions. Practitioners need version-aware review of the resulting behaviour, not just the prompt string.

Meta-prompt engineering is becoming a first-class AI control, not a convenience feature. The article makes clear that the instructions used to improve prompts shape what the optimiser can learn and what it ignores. That places the meta-prompt alongside eval design as a governance artefact, especially when agents operate across retrieval, tools, and multi-step reasoning. The field implication is that organisations will need documented ownership for prompt-updating logic, not just for the prompts themselves.

Framework choice is now an operational governance decision for agent teams. If optimisation requires rebuilding an application inside one abstraction, many production teams will delay adoption or run partially governed workflows outside the toolchain. A framework-agnostic tracing model lowers that barrier and broadens where prompt evaluation can be applied. For practitioners, the conclusion is straightforward: choose optimisation workflows that preserve observability and ownership across the stack you already operate.

Agent governance is shifting from authoring better instructions to proving better behaviour. That matters because a prompt can look clean while still producing poor tool use, weak constraint handling, or inconsistent task execution. Evaluation-driven optimisation forces teams to prove improvement against traces and benchmarks, which is much closer to how agent risk is actually experienced in production. The practical takeaway is that prompt governance must be judged on observed runtime behaviour, not writing quality.

What this signals

Trace-informed prompt drift: organisations should expect meaningful agent changes to emerge from optimisation loops long before those changes are obvious in code review. That means prompt governance has to move closer to runtime observation and version comparison, especially where agents make tool decisions or multi-step judgments.

As agent stacks mature, the real question is not whether prompts can be improved, but whether the organisation can prove the improvement against the behaviours that matter. Teams that cannot tie prompt updates to observable execution evidence will struggle to control drift across releases.


For practitioners

  • Define evals against real agent failure modes Measure whether prompts improve tool selection, reasoning consistency, and constraint adherence across actual execution traces, not just final outputs.
  • Version prompts and meta-prompts together Treat the prompt and the instructions used to optimise it as governed artefacts so behaviour changes can be reviewed and rolled back as a pair.
  • Instrument existing stacks before adopting optimisation workflows Add lightweight tracing to the agent runtime so optimisation can work across current frameworks without forcing a rebuild around one abstraction.
  • Require benchmark coverage for multi-step reasoning Use tasks that expose retrieval, constraint handling, and trace fidelity so the optimiser cannot overfit to shallow correctness signals.

Key takeaways

  • Prompt optimisation for LLM agents is becoming an evaluation problem as much as a prompt-writing problem, because traces and feedback loops now shape behaviour.
  • The article’s core finding is that richer evals can matter more than extra optimisation mechanics when teams want better agent performance.
  • For practitioners, the control question is whether prompt changes can be tied to observed execution evidence, versioned cleanly, and rolled back when behaviour shifts.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Agentic AI Top 10 addresses the attack and risk surface, while NIST AI RMF and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10ASI06 — Memory & Context PoisoningTrace-driven prompt optimisation depends on reliable context and evaluation inputs.
ASI03 — Identity & Privilege AbuseAgent prompts govern tool use and delegated actions, which are core privilege controls.
Recommendation — Protect trace and context pipelines so prompt optimisation is not trained on corrupted agent state. Bind prompt changes to explicit authorisation boundaries for tools, data and delegated actions.
NIST AI RMFGOVERN — AI Governance and AccountabilityThe article is fundamentally about how AI behaviour is governed through evaluation and versioning.
MEASURE — AI Measurement and EvaluationThe article argues that measurement quality drives optimisation quality.
Recommendation — Assign accountable ownership for prompt, eval and meta-prompt changes inside your AI governance process. Define measurement criteria that reflect real agent behaviour, not just aggregate success scores.
NIST CSF 2.0PR.PS-03 — Supply Chain and Third-Party Dependencies Are ManagedFramework-agnostic tracing reduces lock-in and affects how AI systems are managed across tooling boundaries.
Recommendation — Manage prompt optimisation tooling as part of the broader AI supply chain and dependency footprint.

Key terms

  • Trace-level reflection: Trace-level reflection is the use of execution traces as context for improving an LLM application. It lets a meta-prompt examine the sequence of retrieval, tool calls, summaries, and final outputs so the next prompt version can address actual failure modes.
  • Meta-prompting: Meta-prompting is the process of asking a language model to improve another prompt based on observed performance. In agent workflows, it turns prompt optimisation into a feedback loop where the model helps refine the instructions that govern behaviour.
  • Answer Drift: Answer drift is the gradual change in a model’s responses over time, often showing up as reduced consistency or increasing error rates. It can signal degraded grounding, shifting data quality, or prompt and retrieval issues. Monitoring drift helps teams catch reliability problems before they become widespread user-facing failures.
  • Evaluation Engineering: Evaluation engineering is the practice of designing tests and feedback signals that reveal whether an AI system is actually improving. In prompt optimisation, it determines what the optimiser learns from each run, so weak evaluations can create misleading gains.

Deepen your knowledge

NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, agentic AI identity, and workload identity. It helps security and identity practitioners build the control mindset needed for modern machine and agent governance.
NHIMG Editorial Note
Published by the NHIMG editorial team on August 21, 2026.
Updated on October 12, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org