Principle:ANative Lab EvoAgentX Benchmark Evaluation
| Knowledge Sources | |
|---|---|
| Domains | Evaluation, Benchmark |
| Last Updated | 2026-10-21 00:00 GMT |
Overview
Method for evaluating agent workflow performance against standardized benchmark datasets using configurable collation, execution, and metric computation.
Description
Benchmark Evaluation is the process of measuring how well an agent workflow performs on a standardized task dataset. A benchmark provides train/dev/test splits, ground-truth labels, and an `evaluate()` method that computes metrics from predictions. An Evaluator orchestrates the process: it collates each benchmark example into workflow inputs (via `collate_func`), executes the workflow, extracts a prediction (via `output_postprocess_func`), and calls `benchmark.evaluate(prediction, label)` to compute per-example metrics. Results are averaged across all examples. Supports both single-threaded and parallel evaluation.
Usage
Use this principle when you need to quantitatively measure workflow performance. The `Evaluator` with a `Benchmark` subclass is the standard approach:
- QA benchmarks: HotPotQA (F1, EM, accuracy), GSM8K (exact match)
- Code benchmarks: HumanEval (pass@k), MBPP (pass@k)
- Custom benchmarks: Subclass `Benchmark` and implement abstract methods
- Parallel evaluation: Set `num_workers > 1` for concurrent evaluation
Theoretical Basis
The evaluation pipeline maps benchmark examples to metrics:
# Abstract algorithm (not real implementation)
for example in benchmark.get_test_data():
inputs = collate_func(example) # benchmark example -> workflow inputs
output = workflow.execute(inputs) # run the workflow
prediction = postprocess_func(output) # extract prediction
label = benchmark.get_label(example) # ground truth
metrics = benchmark.evaluate(prediction, label) # compute metrics
records[example.id] = {prediction, label, metrics}
avg_metrics = average(all_metrics)
Key properties:
- Collation: User-defined function maps benchmark examples to workflow inputs
- Postprocessing: User-defined function extracts predictions from workflow output
- Standardized metrics: F1, exact match, accuracy, pass@k
- Parallel execution: Thread-specific agent managers for safe concurrency
- Record tracking: Per-example predictions, labels, metrics, and trajectories