Fit Criteria · Engineering Costs & Boundaries
Who are Algogens for? Fit criteria, evaluation costs, and limits
Last updated: · Grounded in 109 checked systems
- 109 verified research systems
- 19 open-source tools
- Explicit non-fit disqualifiers
Direct answer
A generator-authority Algogen loop fits engineering and scientific problems where you can write an automated, hard-to-game verifier V in code or simulation, and where checking a candidate is far cheaper than searching blindly. When no objective evaluator exists or simple syntax validation suffices, standard prompting, RAG, or constrained decoding wins on cost and latency.
Right for you if...
- You have a deterministic or physical authority (V): Candidates can be judged in code or physical simulation (a Lean 4 or Verus proof kernel, unit and fuzz harness, MILP/SMT solver, compiler, or molecular docking/DFT scorer) rather than an LLM grading itself.
- Verification is cheaper than synthesis: Checking whether a candidate works takes milliseconds to seconds, while writing it manually or enumerating grammar trees hits an exponential wall.
- You want an artifact that outlives the model: Offline discovery (Regime IV: FunSearch, AlphaTensor, AlphaDev, OpenEvolve) pays search tokens once at design time to produce deterministic C++, Python, or Rust heuristics running at zero inference latency.
- Self-critique drift is unacceptable: In formal compilation, safety-critical specs, or automated repair, correlated errors between proposer and model critic cause regressions that an orthogonal code validator blocks.
NOT right for you if...
- No reliable programmatic evaluator exists: Open-ended prose, UX polish, brand copy, or subjective decisions have no objective code check V; evolutionary loops around soft proxy scores game the metric (see arXiv:2511.02864).
- You only need JSON, regex, or tool syntax: Use standalone constrained decoding (Outlines, XGrammar, llama.cpp GBNF) at sub-millisecond token overhead instead of building a search loop.
- Your bottleneck is document lookup: Answering questions over changing internal text requires RAG with grounded citations, not formal search over structured candidates.
- A classical exact solver already finishes in milliseconds: If your problem already fits cleanly in Gurobi, CP-SAT, or Z3 without natural-language translation, adding an LLM only adds latency and API fees.
- Requirements shift conversationally mid-task: General coding and workflow tasks without fixed specs are faster in an agent harness with tests and human review.
Quick architecture fit router
Select your problem constraint and runtime goal to see whether a generator-authority loop, constrained decoding, RAG, or a standard solver/harness fits best.
Run an evolutionary program-search loop (OpenEvolve, ShinkaEvolve, CodeEvolve, or LLM4AD) against a hard-to-game sandbox evaluator, then deploy the winning code without any model in production.
Next step: Inspect OpenEvolve on Tools · Compare 31 program-evolution systems
Limit to verify: An evaluator certifies only scores on tested cases, never global optimality across unseen distributions.
Evaluation cost and architecture comparison
Every architecture trades setup rigor, inference compute, and runtime speed against what its output can actually certify.
| Architecture | Decision authority | Setup & eval cost | Runtime latency | What it certifies | Primary failure limit |
|---|---|---|---|---|---|
| Algogen loop (G + V + S) | External non-neural solver, proof kernel, compiler, sandbox evaluator, or physical simulator | High setup: define formal candidate space X and non-gameable verifier V; search compute paid at design or inference time | Zero LLM latency if deployed offline (Regime IV), or seconds to minutes per multi-round search | Primal threshold scores (evaluators), formal spec validity (checkers), or dual bounds (exact solvers) | Specification drift or weak evaluator gaming; fails if V is easier to fool than the real task |
| Standard prompting & CoT | Model next-token likelihood (or model self-critique) | Minimal setup: natural-language prompt and few-shot examples only | Single pass (sub-second to a few seconds) | Nothing formally; correlated errors can persist across self-refinement rounds | Arithmetic, invariant, and long-horizon formal constraints drift without external checks |
| RAG (Retrieval-Augmented Generation) | Retrieved source passages plus model synthesis | Moderate: chunking pipeline, embedding index, and retrieval tuning | Hundreds of milliseconds to a few seconds per query | Grounding traceability to indexed documents when citations match retrieved spans | Answers open-ended factual lookup; does not search combinatorial spaces or prove invariants |
| Constrained decoding (Outlines / XGrammar) | Compiled finite-state automaton, regex, or context-free grammar (token mask) | Low: supply JSON schema, regex, or GBNF grammar | Sub-millisecond overhead per generated token | Exact syntactic shape (valid JSON, typed fields, allowed grammar) | Accepts syntactically valid nonsense; does not check runtime semantics or truth |
| Agent harness (Model + tools) | Model orchestrates tool calls, linters, unit tests, and human approvals | Moderate: tool adapters, sandbox, memory, and retry budget | Seconds to minutes depending on tool chain length | Pass on covered unit tests or checks; leaves uncovered edge cases unchecked | Model steers control flow and stops on first pass without global search or dual bounds |
Methodology & provenance (Last updated ): Derived from the five-tuple control split in Zenodo Survey v1 (DOI 10.5281/zenodo.24091751), checked OSS runtime profiles on the Tools shelf, and comparative method limits on Validate LLM Output.
How it works in practice and verifiable evidence
Teams adopting the generator-authority pattern move through three concrete engineering steps rather than replacing their entire stack at once:
- Step 1 (Define X and cheap V): Formalize the candidate output format and attach cheap syntax checks before expensive solvers (verification cascade ordering).
- Step 2 (Test authority boundaries): Run your proposed system through the 4-question Algogen Checker and select runnable tooling on the Tools shelf.
- Step 3 (Benchmark against baselines and track limits): Measure pass rates and regressions against one-shot prompting and self-critique, and record what your validator does not prove.
Verified proof points across the library corpus
In formal Rust verification, AutoVerus reached 137/150 solved tasks on Verus-Bench versus 67/150 for repeated GPT-4o prompting. On olympiad geometry, AlphaGeometry solved 25/30 IMO-AG-30 problems versus 14/30 for symbolic deduction alone (with 0/30 for GPT-4 alone). On PDDL planning compilation (n = 109), an exploratory GPT-5.4 run dropped from 2.8% one-shot to 0.9% under Self-Refine while deterministic validator repair reached 69.7% with 0 regressions. Meanwhile, Zenodo Survey v1 recorded 0/66 evaluator-only loops establishing optimality or dual bounds alone (see Benchmarks).
Frequently asked questions
When is a generator-authority Algogen loop worth the engineering cost?
It pays off when checking a candidate solution is deterministic and far cheaper than finding one from scratch, such as verifying a Lean 4 proof, compiling and fuzzing Rust code, evaluating a packing heuristic, or solving a MILP formulation. It is especially strong for offline discovery where the discovered heuristic runs later with zero LLM calls.
When should I pick constrained decoding like Outlines or XGrammar instead of a full loop?
Pick standalone constrained decoding when your bottleneck is strict output syntax, such as valid JSON schemas, SQL dialects, regex enums, or tool-call payloads. Token masking enforces structure in sub-millisecond overhead without multi-round LLM calls, though it never proves semantic truth.
When do RAG or standard agent harnesses beat an Algogen architecture?
Use RAG for factual question answering over changing text corpora, and use an agent harness with unit tests and human review for open-ended repository edits, UI work, or conversational workflows lacking a crisp formal objective.
Why can adding an LLM hurt a problem that Gurobi, CP-SAT, or Z3 already solves?
If your constraints and inputs are already small, clean, and formalized for an exact solver that finishes in milliseconds, inserting a generative model adds token fees, latency, and stochastic failure modes without improving solution quality.