:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
2026-08-18
Model comparison: claude-sonnet-4-5 (current default) against claude-sonnet-5, on the same 111 signals from 48 ground-truth groups, same RNG seed, same fixtures.
Both runs produced 45 reports.
Each model drove every LLM stage: pre-emit summarization and actionability, query generation, matching, specificity, report summarization, and both safety judges.
Aggregate metrics
| Metric | sonnet-4-5 | sonnet-5 | Delta |
|---|---|---|---|
| ARI | 0.733 | 0.802 | +0.069 |
| Homogeneity | 0.964 | 0.979 | +0.014 |
| Completeness | 0.930 | 0.936 | +0.006 |
| Mean purity | 0.972 | 0.981 | +0.009 |
| Mean group recall | 0.743 | 0.748 | +0.006 |
| Malicious leaked rate | 0.000 | 0.000 | 0 |
Match quality
| Failure mode | sonnet-4-5 | sonnet-5 |
|---|---|---|
| CORRECT | 69 (79.3%) | 72 (83.7%) |
| UNDERGROUP | 13 | 11 |
| OVERGROUP | 5 | 3 |
Pre-specificity (LLM matcher before specificity judge)
| Failure mode | sonnet-4-5 | sonnet-5 |
|---|---|---|
| CORRECT | 68 (78.2%) | 73 (84.9%) |
| OVERGROUP | 16 | 6 |
| UNDERGROUP | 3 | 7 |
On sonnet-4-5 the specificity judge is a net gain, taking 78.2% to 79.3%. On sonnet-5 it is a net loss, taking 84.9% down to 83.7%: the matcher already avoids most overgrouping, so the judge's remaining effect is to split groups that belonged together. The judge's thresholds are tuned against a matcher that overgroups, and would want retuning before sonnet-5 ships.
Retrieval diversity
| Metric | sonnet-4-5 | sonnet-5 |
|---|---|---|
| query_diversity | 0.417 | 0.496 |
| candidate_diversity | 0.460 | 0.480 |
Both models emit exactly 3 queries per signal. Sonnet-5's queries are less similar to each other, so their candidate sets overlap less and the union fed to the matcher is larger.
Pre-emit actionability by source
| Source | sonnet-4-5 | sonnet-5 |
|---|---|---|
| Zendesk | 34/45 (76%) | 35/45 (78%) |
| GitHub | 19/29 (66%) | 22/29 (76%) |
| Linear | 12/18 (67%) | 13/18 (72%) |
Every failure in both runs is a false positive, so no actionable signal is dropped.
Safety
| Judge | sonnet-4-5 | sonnet-5 |
|---|---|---|
| Signal safety filter | 103/103 | 98/98 |
| Report safety judge | 45/45 | 45/45 |
Cost and latency
| Metric | sonnet-4-5 | sonnet-5 |
|---|---|---|
| Wall clock | 11m 00s | 11m 49s |
| LLM calls | 473 | 510 |
| Input tokens | 983,119 | 1,265,073 |
| Output tokens | 55,980 | 55,570 |
| Cost (list price) | $3.79 | $4.63 |
| Latency p50 / p95 | 3652 / 11382 ms | 2781 / 5760 ms |
Cost per stage, as the delta sonnet-5 adds over sonnet-4-5:
| Stage | Delta cost |
|---|---|
| match | +$0.55 |
| query_generation | +$0.32 |
| safety_filter | +$0.11 |
| actionability | +$0.07 |
| specificity | +$0.05 |
| report_safety_judge | −$0.26 |
Output token counts are flat between the runs, so the whole difference is input.
match costs more because each call carries a larger candidate set, which follows from the higher retrieval diversity above.
report_safety_judge gets both cheaper and 5x faster (10889ms to 2112ms average) because adaptive thinking spends fewer tokens than the fixed 8192-token budget.
query_generation is the one stage whose extra cost buys nothing: 142 calls for 87 signals.
Sonnet-5 returns 5 queries where QueryGenerationResponse caps at 3, so pydantic rejects the response and call_llm retries with the full conversation resent.
It recovers on the retry, so quality is unaffected, but roughly 55 calls per run are wasted.
Tightening the prompt's query-count instruction should remove about $0.32 of the $0.84 gap.
Method
Run with SIGNAL_MATCHING_LLM_MODEL and SIGNAL_EMISSION_LLM_MODEL set per run.
Both runs went straight to the Anthropic Messages API rather than through the internal LLM gateway, so gateway-side behavior (per-team attribution, Bedrock fallback) is not covered here. Signals run concurrently and only the match step is serialized, so lock-acquisition order varies between runs. The ARI gain and the pre-specificity overgroup drop (16 to 6) are larger than that noise; the sub-0.01 moves on completeness and recall are not. Each configuration was run once.