The Context Efficiency Frontier (CEF) measures whether a context-control system reduces model input while preserving task outcomes. It does not treat token savings alone as a product win.
This document preregisters the public protocol before results are collected. Changing a threshold, workload, scorer, or exclusion after inspecting results requires a new protocol version and a written reason.
For a fixed model, task, prompt, tool set, and sampling configuration, does Entroly reduce provider-observed context usage without a material loss in task quality, evidence recall, or grounding?
The benchmark reports a Pareto frontier. It does not collapse quality, cost, and latency into a promotional composite score.
Every experimental result is paired with raw on the same workload version,
task, provider, model, replicate, and scorer.
| Condition | Context behavior |
|---|---|
raw |
Complete unmodified task context. This is the required baseline. |
native_compaction |
Only the model or agent’s documented native context management is enabled. |
entroly |
Entroly controls context; model-native compaction is disabled where the provider exposes that control. |
combined |
Entroly and documented model-native context management are both enabled. |
Entroly and combined trials must retain the ctx_... Context Commit ID for the
exact selected context. The artifact is integrity evidence, not proof that a
task score or model answer is correct.
The default non-inferiority tolerance is one percentage point.
-0.01.-0.01.0.01.The analyzer emits quality_preserving_context_win: true only when all four
hypotheses pass. Larger minimum savings thresholds may be declared by a
workload-specific preregistration, but cannot be lowered after results are seen.
Each invocation writes one JSON object conforming to
context_efficiency_trial.schema.json.
context_tokens, reasoning_tokens, and output_tokens come from the
provider response or an auditable provider log, not a local tokenizer.billed_cost_usd comes from an invoice, provider usage ledger, or a declared
immutable pricing snapshot. Reports must identify which source was used.usage_source, cost_source, cost_source_reference, and
provider_request_id make that provenance machine-readable. A request ID may
be replaced by a stable redacted hash.latency_ms is wall-clock request latency measured at the same boundary for
all conditions.task_score, evidence_recall, and unsupported_claim_rate are bounded in
[0, 1] and use the scorer named in the pairing key.context_sha256, response_text, and response_sha256 bind each score to
the exact evaluated response. Private reports may redact response text only
in a separate license-safe manifest; a public headline requires auditable
scorer inputs.outcome: error, preserve the error class, and
report zero usage when no provider response exists. Positive usage is never
fabricated from a local tokenizer.The first public report should include all completed suites, not only favorable ones.
| Capability | Initial suite | Primary score |
|---|---|---|
| Long-context QA | LongBench HotpotQA and 2WikiMultihopQA | official answer score |
| Tool use | Berkeley Function Calling Leaderboard subset | executable call accuracy |
| Repository coding | SWE-bench Verified or a version-pinned public subset | resolved task rate |
| Long-running agents | Versioned OpenClaw and Hermes traces | terminal task success plus evidence recall |
| Structured operations | Versioned JSON, logs, and API traces | exact field or incident recovery |
Every suite needs enough independent tasks for a meaningful paired interval. Synthetic needle tests and deterministic conformance fixtures remain useful CI gates, but they are labeled separately and cannot support the headline product claim.
The claim fails for a condition when any primary hypothesis fails. A point can
remain on the descriptive Pareto frontier while still receiving NO CLAIM from
the statistical gate.
Allowed exclusions are limited to failures proven to be benchmark-infrastructure errors affecting all paired conditions, such as a missing dataset file. Model timeouts, context-limit errors, tool failures, and safety refusals are outcomes. All exclusions must be listed with task IDs before analysis.
python -m benchmarks.context_efficiency_frontier trials.jsonl \
--bootstrap-samples 2000 \
--quality-tolerance 0.01 \
--output report.json
python -m benchmarks.context_efficiency_report report.json \
--output report.md
The JSON report is the source of truth. The Markdown table is generated from that artifact and shows failed conditions and caveats alongside passing ones.
A public Entroly CEF result must include:
The preferred headline has this form:
On the named model and workload, Entroly retained the preregistered quality bound while reducing provider-observed context by X% (paired 95% CI: L-U, N tasks).
Do not generalize beyond the evaluated models, workloads, budgets, and scorer.