Work · Case file 08 · Pre-registered study · 2026
OsciWriting: LLM Workload Redundancy Study
4 min readJump to proofJump to limits
At a glance
- Result
- The decision run failed the gate the PRD fixed before the run: judged substitutability topped out at 12.8 percent (strict filter) and 15.3 percent (recall filter) against a 70 percent bar, so the outcome is Abandon.
- Problem
- Similarity is not substitutability: a cached answer has to actually serve a different prompt at acceptable quality, and nobody had measured that directly.
- My role
- Solo study: the cost model, the pipeline, the judge harness and the findings.I am the sole author on the PRD and in pyproject.toml.
- Stack
- sentence-transformers · umap-learn and hdbscan · pandas and pyarrow · Claude Haiku 4.5 as judge
Proof
The problem
Two published findings suggest LLM usage concentrates in a few task types, which makes a semantic cache plus small-model router look attractive. But similarity is not substitutability: a cached answer has to actually serve a different prompt at acceptable quality, and nobody had measured that directly. I needed a go or no-go before committing to the project.
The idea. Run the writing subset, an unfiltered-random control and a scrambled null control through one identical pipeline, and let one judge-rated hypothesis, H5 substitutability, gate the whole decision, with the rule that a failed H5 means Abandon written into the PRD before the run.
Fig. 01 · Three arms, one gate
Three arms, same pipeline
- Writing subjectwriting prompts from public chat logs
- Unfiltered random control
- Scrambled null control
- Embed
- UMAP
- HDBSCANclusters of near-repeats
- Metricsscored against placeholder thresholds
- JudgeHaiku 4.5 rates pairs in four cosine bands
- Reportpilot n = 5,000, decision n = 50,000: Abandon on the H5 gate
How it works
Load, dedup, filter
First-turn English prompts come from LMSYS-Chat-1M (WildChat-1M was demoted to a cautionary fallback after the pilot). Exact dedup on normalized text runs first, then the regex writing filter, with a recall-oriented variant run alongside to expose filter bias.
Three arms
The writing subject, an unfiltered-random control and a scrambled-prompt null control are sampled so that every decision reads the gap between subject and control, not an absolute number.
Embed and near-dedup
all-MiniLM-L6-v2 produces 384-dimensional vectors; a near-dedup pass at cosine 0.98 or higher collapses near-verbatim copies in each arm before any metric runs.
UMAP then HDBSCAN
UMAP (n_neighbors 15, n_components 10, cosine) precedes HDBSCAN (min_cluster_size 20, min_samples 5), reported as a 36-cell sweep with a degeneracy guard that fails H1 when coverage is pinned at 1.0 with no noise and no sweep variation.
Metrics
H1 top-50 cluster coverage, H3 nearest-neighbour similarity at a calibrated band S3, and H4 Spearman correlation between prompt and response similarity over 10,000 pairs stratified across the full cosine range.
Judge and report
Claude Haiku 4.5 rates H2 templatedness on the top 10 clusters and H5 substitutability on prompt pairs in four cosine bands for subject and control: 2,124 and 2,156 judge calls, short of the PRD's 300 pairs per band, with only about 7 in the strict control's top band. report.py writes headline_numbers.json, figures and summary.md against the pre-committed rubric, and H5 is read first.
What was hard
Refusing to let similarity stand in for substitutability. The v1 metrics (cosine clustering, nearest-neighbour similarity) pass on this data, and the N = 5,000 WildChat pilot even produced a degenerate clustering that the rubric scored as a pass because one viral template appeared verbatim hundreds of times. I added exact and near dedup, switched the primary dataset to LMSYS-Chat-1M, added a degeneracy guard, and kept H5, the judge-rated test of whether one answer serves another prompt, as the only gate. The trade-off is that the decision now rests on an LLM judge, so the PRD requires a 100-pair human spot-check before the result counts as publishable.
Limits. The cost-model thresholds for H1 and H3 were frozen after the decision run, and the 70 percent H5 bar was a placeholder; neither changes the verdict. The negative result is internally robust but not yet judge-validated: the PRD section 8.5 human spot-check on the 100-pair audit sample is still owed, and Opus refused 38 of 100 pairs in the inter-LLM check, which also shows the LMSYS writing slice carries content that is not plainly a writing task. The README publishes no numbers; the results live in docs/findings.md and the raw results directory is gitignored.
Evidence
- Design status
- PRD v2 committed 19 May 2026, before the decision run; findings recorded 20 May 2026; v2.2 is a post-decision revisionPRD.md header; docs/findings.md header
- Thresholds
- T5 = 70 percent was a PRD placeholder, not cost-derived. The run scored H1 and H3 against placeholder T1 = T3 = 0.05; the cost model, frozen 20 May after the findings from Opus 4.7 ($5 / $25 per MTok) and Haiku 4.5 ($1 / $5 per MTok), gives c_small = 0.20 and, with an input saving target of 0.50, T1 = T3 = 0.17. At 0.17 the recall H3 fails.docs/cost_model.md; docs/findings.md section 1
- Decision-run sample
- N = 50,000 raw LMSYS-Chat-1M records, 43,979 after exact dedup; strict subject n = 6,481, recall subject n = 12,880docs/findings.md section 1
- H5 gate (decisive)
- Best acceptability 12.8 percent (strict) and 15.3 percent (recall) at cosine 0.95 to 1.00 against T5 = 70 percent; control gap -15.7 pp (strict) and +1.2 pp (recall) against the required +25 pp; Abandon both armsdocs/findings.md sections 1 and 2; the chart on this page plots the section 2 table
- Non-gating hypotheses
- H1 coverage median 0.966 / 0.982; H3 at cosine 0.9 or higher 21.4 percent / 15.2 percent; H4 Spearman 0.790 / 0.775; H2 templated in 2 of 10 / 4 of 10 clustersdocs/findings.md section 1
- Judge check
- Inter-LLM sensitivity check: 96.8 percent agreement between Opus 4.7 and Haiku 4.5 on 62 auditable pairs; Opus refused 38 of 100docs/findings.md section 3
- Pilot finding that changed the design
- On the N = 5,000 WildChat pilot, one viral Midjourney prompt template appeared verbatim 586 + 276 + 26 times and the top 4 clusters absorbed all 1,474 strict-filtered promptsdocs/decision_log.md; PRD.md changelog
- Follow-on studies
- v3 cross-user prefetch (best lift +5.7 pp against +10 pp required) and v4 personal prefetch (recurring fraction 7.4 percent against 30 percent required) also returned Abandon; 9 commits in the repositorydocs/findings_v3.md; docs/findings_v4.md; docs/decision_log.md; repository metadata
Stack
- Python 3.11 to 3.12
- sentence-transformers (all-MiniLM-L6-v2)
- umap-learn
- hdbscan
- scikit-learn
- pandas and pyarrow
- Hugging Face datasets
- Anthropic SDK (Claude Haiku 4.5 as judge)
- pytest