Three models entered a pre-registered blind evaluation: Gemma 4 26B-A4B at $0.00042 per run, Claude Haiku 4.5 at $0.0119, and Claude Sonnet 5 at $0.0399. Across 30 samples and 8 rubric criteria, all three scored identically on 7 criteria. The single divergence on criterion C8 traced entirely to token-limit truncation, not to any reasoning failure. When quality converges at the ceiling, cost is the only rational differentiation axis.
That cost gap is not marginal. The 28x spread between Gemma 4 and Haiku 4.5, and the 95x spread between Gemma 4 and Sonnet 5, translate directly to operational scale. A pipeline processing one million structured-output calls per month costs $39,900 against Sonnet 5, $11,900 against Haiku 4.5, and $420 against Gemma 4 26B-A4B via managed API; this represents a monthly delta of $39,480 for identical rubric performance on this task class. The MMLU gap between the best open and closed models shrank from 17.5 percentage points in late 2023 to effectively zero by early 2026. For structured-output pipelines specifically, that convergence appears to be complete.
Two additional forces make this moment structurally different from prior open-weights cycles. Apache 2.0 licensing removes the license-review step that once slowed open-model procurement, though self-hosting transfers other friction onto the deploying team. These hurdles include GPU qualification, indemnification gaps, and inference engineering ownership. EU AI Act GPAI enforcement powers activate August 2, 2026, making data residency a compliance requirement rather than an operational preference. Self-hosted open-weight models satisfy data residency; so do managed closed-model providers with EU-resident infrastructure.
Table of contents
Contents
- What Does It Mean for Structured-Output Quality to Hit a Ceiling?
- How Was Experiment 9 Designed to Avoid Benchmark Gaming?
- What Did the Blind Evaluation Reveal About Cost Versus Quality?
- When Does Switching to Open-Weight Models Make Economic Sense?
- Why Is C8 a Token Budget Problem, Not a Reasoning Problem?
- How Wide Is the Remaining Gap Between Open and Closed Models?
- When Do Closed Models Still Win?
- What Does Apache 2.0 Licensing Change for Enterprise Procurement?
- How Does EU AI Act Enforcement Shift the Data Residency Calculus?
- Takeaways
- References
What Does It Mean for Structured-Output Quality to Hit a Ceiling?
The quality ceiling is the finding: Gemma 4 26B-A4B matched Claude Haiku 4.5 and Claude Sonnet 5 on 7 of 8 rubric criteria at 95x lower cost. Benchmark scores can mislead in two directions, and understanding what “ceiling” means here determines whether the result generalizes to your workload.
JSON Pass Rate is not a discriminating metric at modern quality levels (Singh et al., 2026): almost every current model clears 95% or above, yet valid JSON and correct JSON diverge by 15-30 points on every frontier model (Interfaze AI, 2026). The SOB (Structured Output Benchmark) leaderboard shows the top six models within one point of each other on overall score, with structural metrics such as Path Recall and Type Safety reading 99% while 20-30% of leaf values remain wrong.
Quality ceiling, in this context, means the task-relevant rubric criteria are saturated across models of materially different cost tiers. It does not mean all models are interchangeable for all tasks. Reasoning-heavy chains, multi-step tool orchestration, and complex disambiguation tasks continue to stratify models. The ceiling applies to structured extraction and generation against a defined schema, the domain where Exp9 was conducted.
Model size is not a reliable predictor of value accuracy: open-weight GLM-5.1, GLM-4.7, and Qwen3.5-35B beat GPT-5, Claude-Opus-4.7, and Claude-Sonnet-4.6 on unified Value Accuracy in the SOB benchmark (Interfaze AI, 2026). Exp9 adds a cost-controlled data point: when Gemma 4 26B-A4B, a mixture-of-experts (MoE) model activating 4 billion of its 26 billion parameters per forward pass, operates at the same rubric level as models priced 28x and 95x higher, the ceiling is the signal.
How Was Experiment 9 Designed to Avoid Benchmark Gaming?
Exp9 (Clouatre, 2026) applied a pre-registered rubric before any model results were observed. The rubric covered eight criteria, C1 through C8, capturing schema compliance, value accuracy, field completeness, format adherence, instruction following, edge-case handling, output coherence, and response length within budget. All three models were evaluated under a blind protocol: n=10 samples per model (30 total), routed through the OpenRouter endpoint, with no post-hoc rubric adjustments.
The pre-registration constraint is the key methodological safeguard. Rubric criteria were fixed before evaluation commenced, precluding the selection of metrics that favor any particular model after results were visible. LLM-judge scoring was applied to criteria C6 and C7, using a separate model as the evaluator. Haiku 4.5 and Sonnet 5 each scored 20/20 on those criteria; Gemma 4 scored 18/20, a two-point difference that appears in the LLM-judge outputs but not in the objective scores for C1-C5 or C8.
What Did the Blind Evaluation Reveal About Cost Versus Quality?
On criteria C1 through C7, all three models scored identically: pass on every objective criterion. The LLM-judge scores for C6 and C7 showed Haiku 4.5 and Sonnet 5 at 10/10 each (20/20 judge points) and Gemma 4 at 18/20, with one missed point on C6 and one on C7, both from run-91. That two-point gap is within LLM-judge variance and does not represent a functional quality difference on the task.
| Model | C6/C7 judge | C8 | Cost/run | vs Gemma 4 |
|---|---|---|---|---|
| Gemma 4 26B-A4B | 18/20 | Truncation (10%) | $0.00042 | baseline |
| Haiku 4.5 | 20/20 | Pass | $0.0119 | 28x |
| Sonnet 5 | 20/20 | Truncation (20%) | $0.0399 | 95x |
What Does a 95x Cost Spread Mean at Scale?
Seven of eight rubric criteria produce no differentiation. Selecting Sonnet 5 over Gemma 4 for structured-output workloads matching the Exp9 task profile delivers no measurable quality gain at 95x the cost. The one criterion where differentiation appeared is addressed in the following section.
COST_PER_RUN = {
"gemma-4-26b-a4b": 0.00042,
"claude-haiku-4-5": 0.01190,
"claude-sonnet-5": 0.03990,
}
def monthly_cost(model: str, runs_per_month: int) -> float:
"""Return total monthly cost in USD."""
return COST_PER_RUN[model] * runs_per_month
def cost_per_run(model: str) -> float:
"""Return per-run cost in USD."""
return COST_PER_RUN[model]
# Example: 1 million runs/month
for m, c in COST_PER_RUN.items():
print(f"{m}: ${monthly_cost(m, 1_000_000):,.0f}/month")scripts/model_cost_convergence.pyWhen Does Switching to Open-Weight Models Make Economic Sense?
The cost decision tree below maps monthly token volume to the go/no-go threshold. At Exp9’s mean of ~2,100 tokens per call, 50 million tokens per month corresponds to roughly 24,000 structured-output calls. Under that threshold, the API cost delta does not justify the operational overhead of self-hosting; GPU infrastructure, continuous batching tuning, and MLOps staffing add costs that typically exceed token savings at low volume. Above 500 million tokens per month, the $530 vs $18,000 per month comparison makes the case; the intermediate path is a managed open-weight inference provider (OpenRouter, Together AI, Baseten), not bare-metal self-hosting.
Why Is C8 a Token Budget Problem, Not a Reasoning Problem?
C8 failures (response length within budget) in Gemma 4 26B-A4B were exclusively token-limit truncations. Outputs were structurally correct and semantically accurate until the token budget was exhausted; responses did not produce incoherence or malformed output. They simply stopped. Haiku 4.5 had no C8 failures. Sonnet 5 also hit the 4096-token cap in run-112 and run-113; its mean output of 3,652 tokens per run versus 996 for Gemma 4 makes it the most verbose model and the one most exposed to truncation risk at higher completion budgets.
What Does C8 Mean for Self-Hosted vs. Managed Inference?
The fix is a configuration change, not a model substitution. Increasing the max_tokens parameter to the 95th-percentile response length eliminates the failure mode. That said, C8 illustrates a broader operational reality: production inference is not a configuration exercise. Naive self-hosted deployments achieve 30 to 40 percent GPU utilization; a production-tuned stack using continuous batching and PagedAttention reaches 80 to 90 percent, a 2 to 3x cost differential on identical hardware (Kiely, 2026). C8 on a managed API is an operational parameter; C8 on a self-hosted stack is the entry point to inference engineering.
import httpx
# Before: default completion limit caused C8 truncation failures
# payload_before = {"model": "google/gemma-4-26b-a4b", "max_tokens": 1024}
# After: set max_tokens to 95th-percentile observed response length
# Heuristic: sample 100 runs, take p95 token count, round up to nearest 512
payload = {
"model": "google/gemma-4-26b-a4b",
"max_tokens": 4096, # p95 for Exp9 task distribution
"messages": [{"role": "user", "content": "..."}],
}
response = httpx.post(
"https://openrouter.ai/api/v1/chat/completions",
json=payload,
headers={"Authorization": "Bearer $OPENROUTER_API_KEY"},
)scripts/openrouter_invoke.pyHow Wide Is the Remaining Gap Between Open and Closed Models?
The structured-output quality ceiling does not imply open-weights have reached parity on all tasks. Open-weight models trail closed-source frontier by approximately 4 months as of May 2026, measured by Epoch AI’s Epoch Capabilities Index (ECI; Epoch AI, 2026). That gap is real and worth quantifying before deployment decisions.
The reasoning gap between open and closed models measures approximately 13 points on structured benchmarks as of June 2026 (LLM Stats, 2026). This gap manifests primarily in multi-step reasoning, adversarial prompts, and tasks requiring synthesis across long contexts. Structured-output extraction against a defined schema, the Exp9 task class, falls below the threshold where that gap becomes operational.
What Are the Scope Boundaries?
Two scope boundaries apply to Exp9 specifically. Tool calling was not tested; Gemma 4 26B-A4B scores 68.2% on tau2-bench agentic benchmarks vs higher scores on closed alternatives, and that gap has not been evaluated under the same controlled conditions. Exp9 results generalize to structured extraction and generation tasks; extension to multi-step agentic pipelines requires separate experimentation.
The practical heuristic: use open-weights for tasks where the Exp9 rubric class applies (structured extraction, schema validation, templated generation). Evaluate closed frontier models for tasks requiring the top 13 reasoning points or tool-orchestration depth that currently differentiate them. Five independent open model families reached frontier quality simultaneously by early 2026 (LetsDataScience, 2026), confirming the convergence is structural rather than attributable to any single model or provider.
When Do Closed Models Still Win?
Five conditions favor closed-model APIs regardless of token-cost arithmetic:
- No inference engineering team. Self-hosting a 26B MoE model in production requires continuous batching configuration, KV-cache tuning, GPU health monitoring, and model rollback procedures, at minimum 0.5 FTE MLOps. Without that capability, infrastructure cost exceeds token savings.
- Contractual SLA required. Self-hosted deployments carry no vendor uptime guarantee and no incident escalation path. Closed-model APIs provide contractual SLAs; for production systems with business continuity obligations, that is a hard requirement.
- Interactive latency below 2,000 ms P50 required. Self-hosted MoE inference on commodity hardware does not reliably meet sub-2-second P50 targets. Closed API endpoints with dedicated capacity are the appropriate choice for latency-sensitive workloads.
- Reasoning-heavy or agentic tasks. Multi-step tool orchestration, adversarial disambiguation, and long-context synthesis fall in the region where the benchmark gap translates to production failures. Gemma 4 26B-A4B scores 68.2% on tau2-bench agentic benchmarks versus higher scores on closed alternatives.
- GPU generation mismatch. Open-weight model releases are coupled to GPU generation cycles; a successor model may ship kernels optimized for a different architecture, requiring months of porting before stable performance on the incumbent stack (Kiely, 2026).
What Does Apache 2.0 Licensing Change for Enterprise Procurement?
All four Gemma 4 models ship under the Apache 2.0 license with native function calling and structured JSON output support (Google DeepMind, 2026). Apache 2.0 permits commercial use, modification, and redistribution without requiring downstream source disclosure. That removes one procurement bottleneck. It does not provide vendor indemnification for model outputs, GPU procurement lead-time relief (H100 SXM5 lead time is 2-6 weeks), or a patch cadence for weight-level security vulnerabilities; those responsibilities transfer to the deploying organization.
What Does Self-Hosting Provide for Audit Trails?
The audit trail advantage is concrete. A self-hosted model with a SHA-256 hash of the weights, version-pinned dependencies, and deterministic inference configuration produces a reproducible artifact satisfying change-management requirements. Cloud API endpoints provide no equivalent: model versions can be updated by the provider without notice, and the inference path is opaque. Open-weight GPAI models released under a free open-source license are exempt from Annex XI technical documentation and Annex XII downstream provider information requirements under the EU AI Act (Alation, 2026), though copyright compliance and training data summaries are still required.
| Regulation | Open-weights (Apache 2.0) | Proprietary API |
|---|---|---|
| EU AI Act GPAI (Aug 2026) | Exempt from Annex XI/XII documentation | Full documentation required |
| Audit trail | SHA-256 weight pin, reproducible | Provider-controlled, opaque |
| Data residency | Self-hosted on EU infrastructure | Cross-border transfer triggers GDPR Art. 46 |
How Does EU AI Act Enforcement Shift the Data Residency Calculus?
GPAI enforcement powers activate August 2, 2026 under Articles 101 and 113. The fine schedule is compact:
| Enforcement Date | Provision | Fine Standard | Fine Serious |
|---|---|---|---|
| Aug 2, 2026 | GPAI obligations (Art. 101/113); Transparency (Art. 50) | EUR 15M or 3% global turnover | EUR 35M or 7% global turnover |
| Dec 2, 2027 | High-risk systems (Art. 9-17) | EUR 15M or 3% global turnover | EUR 35M or 7% global turnover |
The serious-violation ceiling exceeds GDPR maximums (Alation, 2026). US-based institutions produced 40 notable AI models in 2024 vs 15 from China and 3 from Europe, meaning enforcement pressure falls disproportionately on US cloud providers serving European organizations (EWSolutions, 2026).
Does Using a Third-Party API Create a Data Residency Risk?
Data processed through a third-party API in a foreign jurisdiction creates a transfer record triggering GDPR Article 46 analysis. Data processed through a self-hosted model in the deploying organization’s own infrastructure does not. Managed closed-model providers with EU-resident deployments (Azure OpenAI EU data zones, Vertex AI EU regions, Bedrock Frankfurt) satisfy the same Article 46 requirement without the infrastructure burden, at the cost of weight-level auditability. The choice is between operational simplicity and documentation control, not between compliant and non-compliant.
Takeaways
- Quality ceiling reached for this task class: Gemma 4 26B-A4B matched Claude Haiku 4.5 and Claude Sonnet 5 on C1-C7 across n=30 blind trials (10 per model); results do not generalize to reasoning-heavy, agentic, or latency-sensitive workloads.
- C8 is a configuration problem, not a capability problem: Token-limit truncations are correctable by adjusting completion budgets; they do not indicate a reasoning gap.
- API token cost favors open weights above volume thresholds; TCO requires separate modelling. The 28x-95x spread reaches $39,480 per million monthly runs at identical rubric quality via managed API. Self-hosted TCO adds GPU infrastructure, 0.5 or more FTE MLOps, and idle-utilization loss; break-even sits at 35 to 50 million tokens per month for a single-GPU MoE deployment; multi-GPU open-weight models require ~256M tokens per month against a premium API (LetsDataScience, 2026).
- Reasoning gap exists and is bounded: Open-weights trail closed frontier by approximately 4 months and 8 ECI points; that gap surfaces in reasoning-heavy tasks, not in the Exp9 structured-output class.
- Apache 2.0 self-hosting is a viable EU AI Act compliance path, not the only one. SHA-256 weight pins and GPAI open-source exemptions provide documentation control; managed EU-resident providers satisfy the same data-residency requirement with contractual SLAs and no inference infrastructure ownership.
References
- Alation, “EU AI Act Compliance: A Practical Guide for 2026-2027” (2026) — https://www.alation.com/blog/eu-ai-act-compliance-guide
- Clouatre, H., “Exp9: Gemma 4 26B-A4B vs Haiku 4.5 vs Sonnet 5 structured-output blind evaluation” (2026) — https://github.com/clouatre-labs/llm-agent-experiments#replication-study-experiment-9
- DeepInfra, “Gemma 4 on DeepInfra: Fast & Scalable Open AI Models” (2026) — https://deepinfra.com/blog/gemma-4-on-deepinfra
- Epoch AI, “Open models lag state-of-the-art closed models by 4 months” (2026) — https://epoch.ai/data-insights/open-closed-eci-gap
- EWSolutions, “EU AI Act Updates 2026: What US Firms Must Do” (2026) — https://www.ewsolutions.com/eu-ai-act-updates-2026
- Google DeepMind, “Gemma 4 model card” (2026) — https://ai.google.dev/gemma/docs/core/model_card_4
- Interfaze AI, “Introducing SOB: A Multi-Source Structured Output Benchmark for LLMs” (2026) — https://interfaze.ai/blog/introducing-structured-output-benchmark
- Kiely, P., “Inference Engineering” (2026) — https://www.baseten.co/inference-engineering/
- LetsDataScience, “Open Source vs Closed LLMs: The 2026 Decision Framework” (2026) — https://letsdatascience.com/blog/open-source-vs-closed-llms-choosing-the-right-model-in-2026
- LLM Stats, “LLM Benchmark Leaderboard” (2026) — https://llm-stats.com/
- Singh, A. K. et al., “SOB: A Benchmark for Evaluating Structured Output Quality in Large Language Models” (2026) — https://doi.org/10.48550/arXiv.2604.25359