DEV Community

David
David

Posted on

Plotting a Cost-vs-Correctness Pareto Frontier for Coding LLMs Without Version Leaks or Layout Shift

Most LLM leaderboards collapse a model family into a single row and ignore how much reasoning-effort settings shift both accuracy and cost. On real coding tasks, cranking effort from High to Max can double or triple your token bill for one or two percentage points.

At FollowAgents, we built a static, zero-dependency Python + inline SVG scatter plot for our November 24, 2026 coding-model snapshot so developers can inspect the efficiency frontier directly—without shipping a charting bundle or risking Cumulative Layout Shift (CLS).

Why model-level rankings hide effort-tier token taxes

In the CursorBench 4.1 runs from our November 2026 snapshot, the same base weights behave like completely different products depending on reasoning effort:

  • Gemini 4 Neon: High reaches 63.7% at $6.54/task (88,596 tokens). Pushing to Extra High reaches 65.4% (+1.7 points) at $10.67/task (136,273 tokens, +63% cost).
  • Claude Opus 5.5: High scores 54.5% at $3.87/task (56,162 tokens), compared with 58.1% at $11.88/task (213,070 tokens) on Max.
  • Claude Fable 5.2: Extra High scores 58.8% at $17.84/task (194,918 tokens), whereas Max rises to 61.3% while jumping to $48.11/task (541,003 tokens).

When all effort tiers sit in one ranked table, teams end up either defaulting to expensive Max settings or picking a model without seeing the cheaper tier right below it.

Computing a version-isolated Pareto frontier in Python

A configuration belongs on the cost-vs-correctness Pareto frontier when no cheaper run achieves equal or higher correctness. In models_eval.py, sorting by (cost_usd, -score) reduces the computation to a single linear sweep:

def compute_pareto_frontier(models: list[dict], strict_v41_only: bool = True) -> set[str]:
    """Return IDs of models on the cost-vs-correctness Pareto frontier."""
    candidates: list[tuple[float, float, str]] = []
    for m in models:
        cb = m.get("cursorbench") or {}
        score = cb.get("score")
        cost = cb.get("cost_usd")
        version = cb.get("version")
        if score is None or cost is None or cost <= 0:
            continue
        if strict_v41_only and version != "4.1":
            continue
        candidates.append((float(cost), -float(score), m["id"]))

    candidates.sort(key=lambda row: (row[0], row[1]))
    frontier: set[str] = set()
    best_score = float("-inf")
    for _, neg_score, model_id in candidates:
        score = -neg_score
        if score > best_score:
            frontier.add(model_id)
            best_score = score
    return frontier
Enter fullscreen mode Exit fullscreen mode

One easy mistake when aggregating public benchmarks is letting older dataset revisions quietly join the same frontier line. In our snapshot, DeepSeek V4.1 Flash had a CursorBench v4.0 measurement (47.7% at $0.98/task, 537,000 tokens), while GPT-6.2 Astra had no CursorBench 4.1 entry yet.

By gating frontier membership with strict_v41_only=True, the connecting polyline includes only the five CursorBench 4.1 Pareto-optimal configurations:

  1. Claude Haiku 5.5 (Extra High): 44.3% · $0.56/task
  2. Claude Haiku 5.5 (Max): 48.4% · $1.12/task
  3. Gemini 4 Neon (Medium): 57.7% · $3.07/task
  4. Gemini 4 Neon (High): 63.7% · $6.54/task
  5. Gemini 4 Neon (Extra High): 65.4% · $10.67/task

Prior-version runs can still be plotted as reference points with an explicit v4.0 badge without distorting the 4.1 curve, and missing benchmark cells remain — instead of being interpolated.

Precomputing dual Log and Linear SVG coordinates for zero-CLS axis toggling

Cost spans nearly two orders of magnitude ($0.56 to $48.11). On a linear axis, everything under $2 collapses into a vertical stack; on a logarithmic axis, the $48 tail stops dominating the visual scale, so you lose the shock of how steep the Max-tier outlier is. Both views are useful.

Instead of pulling in a client-side charting library that measures the DOM after load, the server renders a fixed viewBox="0 0 860 420" inline SVG with both coordinate sets precomputed in Python:

def _x_log(cost: float) -> float:
    lo, hi = math.log10(0.45), math.log10(55.0)
    clamped = min(max(cost, 0.45), 55.0)
    return 68.0 + ((math.log10(clamped) - lo) / (hi - lo)) * 760.0


def _x_linear(cost: float) -> float:
    clamped = min(max(cost, 0.0), 50.0)
    return 68.0 + (clamped / 50.0) * 760.0
Enter fullscreen mode Exit fullscreen mode

Every plotted <circle> and <text> label carries data-cx-log / data-cx-lin (or data-x-log / data-x-lin), and the Pareto <polyline> carries data-points-log / data-points-lin. Toggling between scales on the client only swaps those attributes—keeping layout dimensions locked at 0 CLS and costing a few lines of plain JavaScript.

Cross-checking with harness-coupled and production-volume signals

A single IDE cost curve still has blind spots. Real terminal workflows depend heavily on the agent harness around the model: in Terminal-Bench 4.1, Claude Opus 5.5 and Claude Fable 5.2 inside Claude Code score 65.76%, while Gemini 4 Carbon (High) inside Antigravity CLI scores 64.5% and GPT-6.2 Astra inside Codex reaches 62.1% (paired with 91.5% on LiveCodeBench). Combining Pareto cost tiers with harness-level CLI scores and weekly production token volume (such as OpenRouter rankings) helps separate low-cost routing tiers from high-effort escalation tiers.

You can explore the live chart, compare all 19 configurations across 7 independent evaluation sources, and check linked coding agent hosts on the FollowAgents Model capability & cost explorer (public, no login, ad-free).


Note: This article was drafted with AI assistance and fact-checked against our Python SVG renderer (models_eval.py) and November 24, 2026 benchmark snapshot.

Disclosure: I work on FollowAgents.

Top comments (0)