---
library: "bootstrap"
slug: "EvaluatorOptimizer"
name: "EvaluatorOptimizer"
ref: "EvaluatorOptimizer#ae09"
hash: "sema:EvaluatorOptimizer#mh:SHA-256:ae098f2db7c18e00fa1dea16a305133a0778bd157652d5ee42b65f3bf86eef83"
type: "Protocols"
layer: "Society"
version: "0.11.0"
root: "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5"
license: null
url: "https://semahash.org/vocabularies/bootstrap/patterns/EvaluatorOptimizer"
---

# EvaluatorOptimizer

Generate-evaluate-refine loop

Society · Protocols

## Mechanism

A two-role [Loop](https://semahash.org/vocabularies/bootstrap/patterns/Loop.md) to [Optimize](https://semahash.org/vocabularies/bootstrap/patterns/Optimize.md) a solution where a Generator produces output and an Evaluator critiques it, providing structured feedback. The feedback is fed back to the Generator for refinement. [Loop](https://semahash.org/vocabularies/bootstrap/patterns/Loop.md) continues until the Evaluator approves or max iterations reached. The Evaluator can be the same model with a different [Context](https://semahash.org/vocabularies/bootstrap/patterns/Context.md), or a separate model. It invokes a [MetaCheck](https://semahash.org/vocabularies/bootstrap/patterns/MetaCheck.md) to ensure the scoring [Criteria](https://semahash.org/vocabularies/bootstrap/patterns/Criteria.md) remain consistent across optimization cycles.

## Invariants

- Feedback loop converges
- Optimizer improves score on Evaluator metric

## Signature

- Optimize(Loop)

## Preconditions

- Initial solution
- Modification operator
- Scoring function

## Postconditions

- High-quality solution found

## Failure modes

- Evaluation Drift: Evaluator criteria shift across iterations.
- Cosmetic Changes: Generator makes superficial edits that don't address feedback.
- Evaluator Capture: Generator learns to game the evaluator's criteria.

## Where this came from

—

## Builds on

- [Loop](https://semahash.org/vocabularies/bootstrap/patterns/Loop.md) (references)
- [Criteria](https://semahash.org/vocabularies/bootstrap/patterns/Criteria.md) (references)
- [MetaCheck](https://semahash.org/vocabularies/bootstrap/patterns/MetaCheck.md) (references)
- [Optimize](https://semahash.org/vocabularies/bootstrap/patterns/Optimize.md) (references)
- [Context](https://semahash.org/vocabularies/bootstrap/patterns/Context.md) (references)

## Identity

- Library: bootstrap 0.11.0 (root a6a3d1ff0f98)
- Ref: EvaluatorOptimizer#ae09
- Hash: sema:EvaluatorOptimizer#mh:SHA-256:ae098f2db7c18e00fa1dea16a305133a0778bd157652d5ee42b65f3bf86eef83

## Links

- Page: https://semahash.org/vocabularies/bootstrap/patterns/EvaluatorOptimizer
- JSON: https://semahash.org/vocabularies/bootstrap/patterns/EvaluatorOptimizer.json
- Library: https://semahash.org/vocabularies/bootstrap
- Library index: https://semahash.org/vocabularies/bootstrap/index.json
