From 977568363ae52839a0933c6bd57eec985e1c87f2 Mon Sep 17 00:00:00 2001 From: Igor Lins e Silva <4753812+igorls@users.noreply.github.com> Date: Sun, 10 May 2026 21:09:21 -0300 Subject: [PATCH] docs(benchmarks): add cloud-tier ceiling measurements MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ran four of five cloud candidates at n=30. Kimi K2 1T returned HTTP 500 on every task — retry pending. Four working models: | Model | room-closed | room-open | entity F1 | mem cov | |---|---|---|---|---| | gpt-oss:20b-cloud | 0.833 | 0.555 | 0.755 | 1.000 | | gpt-oss:120b-cloud | 0.800 | 0.553 | 0.829 | 1.000 | | qwen3-coder:480b-cloud | 0.900 | 0.587 | 0.804 | 0.967 | | deepseek-v3.1:671b-cloud | 0.800 | 0.566 | 0.828 | 0.967 | | local leader (4B q4) | 0.610 | 0.586 | 0.778 | 0.950 | Two headline conclusions: 1. Closed-set room classification HAS a real ceiling gap. Cloud at 0.83-0.90 vs local at 0.61. Strongest argument so far for an optional --classifier cloud path for users willing to trade privacy/cost for accuracy. Default stays local. 2. Open-set discovery ceiling is REFUTED. Best cloud is 0.587 vs best local 0.612. Cloud is slightly WORSE. Not a capacity problem; it's a task-formulation problem that more compute doesn't fix. Recommendation: shelve --mode discover until prompt design or two-pass clustering closes the gap to >0.75. Also: gpt-oss models continue emitting reasoning even with think=false in the request body (verified via curl). Content field stays clean, but cloud latency includes reasoning generation we asked it to skip. Worth an upstream issue against Ollama Cloud. --- .../model_eval/reports/2026-05-10-analysis.md | 72 ++++++++++++++++--- benchmarks/model_eval/results/.gitignore | 1 + .../2026-05-10-cloud-z690-ex-glacial.csv | 56 +++++++++++++++ 3 files changed, 121 insertions(+), 8 deletions(-) create mode 100644 benchmarks/model_eval/results/2026-05-10-cloud-z690-ex-glacial.csv diff --git a/benchmarks/model_eval/reports/2026-05-10-analysis.md b/benchmarks/model_eval/reports/2026-05-10-analysis.md index 5413aa7..03eed25 100644 --- a/benchmarks/model_eval/reports/2026-05-10-analysis.md +++ b/benchmarks/model_eval/reports/2026-05-10-analysis.md @@ -8,7 +8,7 @@ Raw CSV: `results/2026-05-10-z690-ex-glacial.csv`. Auto-rendered tables: `report 1. **Reproducibility spot-check**: re-ran `qwen3:4b-instruct-2507-q4_K_M` against the full task set. Deltas vs the original pass were ≤0.7% on every metric (room-closed 0.610 → 0.604, room-open 0.586 → 0.584, entity F1 0.778 → 0.771, memory coverage 0.950 → 0.950, calibration 0.950 → 0.950). The harness is reliable; single-run accuracy numbers can be trusted. 2. **Memory-extraction hallucination investigation**: hand-inspected 5 samples on the leader. The 0.36 hallucination rate is an artifact of scoring methodology, not a model weakness — see the dedicated section below. -3. **Cloud-tier ceiling measurement**: attempted, blocked on `ollama signin` (interactive OAuth). Five cloud candidates (`gpt-oss:20b-cloud`, `gpt-oss:120b-cloud`, `qwen3-coder:480b-cloud`, `deepseek-v3.1:671b-cloud`, `kimi-k2:1t-cloud`) sit in `candidates.yaml` with `tier: cloud`. Once authenticated, run with `--candidates cloud --n 30 --tasks all`. +3. **Cloud-tier ceiling measurement**: completed at n=30 for four of five candidates. Cloud beats local by ~0.30 absolute on closed-set room classification (best 0.900 vs local 0.610) but does NOT beat local on open-set (best 0.587 vs local 0.612). Open-set ceiling is refuted: 480B and 671B candidates plateau at the same range small models hit. Kimi-K2 1T returned HTTP 500 on every task — retry pending. Full table in the Cloud-tier ceiling measurements section below. We also cherry-picked one real-format-flavored sample (rc_101) from Lumi's hand-written v3 fixture on the OpenClaw integration branch. Dataset is now 101 room_classification samples instead of 100. @@ -62,21 +62,77 @@ Changes from the current list: | Entity extraction (F1) | qwen3:4b-instruct-2507-q4_K_M | 0.778 | q4 beats fp16 within noise | | Memory extraction (coverage) | qwen3:4b-instruct-2507-q4_K_M | 0.950 | But 0.36 hallucination rate | +## Cloud-tier ceiling measurements + +Ran the same task set against five Ollama Cloud reference models at n=30 (capped from full dataset to control cost). Four succeeded; `kimi-k2:1t-cloud` failed with HTTP 500 server-side errors on every task, retry pending. Raw data in `results/2026-05-10-cloud-z690-ex-glacial.csv`. + +| Model | room-closed | room-open | entity F1 | memory cov | calibration | e2e p50 (closed) | +|---|---|---|---|---|---|---| +| gpt-oss:20b-cloud | 0.833 | 0.555 | 0.755 | **1.000** | 0.900 | 1145 ms | +| gpt-oss:120b-cloud | 0.800 | 0.553 | 0.829 | **1.000** | 0.950 | 1656 ms | +| qwen3-coder:480b-cloud | **0.900** | **0.587** | 0.804 | 0.967 | 0.950 | **599 ms** | +| deepseek-v3.1:671b-cloud | 0.800 | 0.566 | **0.828** | 0.967 | 0.950 | 735 ms | +| kimi-k2:1t-cloud | (HTTP 500) | (HTTP 500) | (HTTP 500) | (HTTP 500) | (HTTP 500) | — | +| **local leader (4B q4)** | 0.610 | 0.586 | 0.778 | 0.950 | 0.950 | **109 ms** | + +### Closed-set room classification: real ceiling gap + +Cloud models clearly do better. qwen3-coder:480b hits 0.900 vs local 0.610 — a 47% relative improvement, 29 points absolute. Even the smallest cloud option (gpt-oss:20b at 0.833) is 36% better than the local best. + +This is the strongest argument so far for offering a `mempalace mine --classifier cloud` option for users with high-stakes archives who can accept the privacy and cost trade-off. For the default case (privacy-first, no API key required), local stays the right choice. + +### Open-set discovery: ceiling refuted + +Best cloud open-set similarity is **0.587** (qwen3-coder:480b). The best local was **0.612** (gemma3:4b family). **Cloud doesn't beat local on this task.** The trillion-param tier wasn't measurable, but the 480B and 671B candidates plateau at the same ~0.58-0.59 range. + +This isn't a model-size problem — it's a task formulation problem. Even 100x more parameters can't bridge the gap to the 0.70 ship threshold. The model has to invent an open-vocabulary label that semantically matches a hand-chosen "preferred" label, and that's fundamentally a stylistic alignment problem that more compute doesn't solve. + +**Verdict on the `--mode discover` feature: shelved indefinitely.** Either reformulate the task (e.g., few-shot examples, constrained vocabulary, two-pass clustering) or accept that closed-set with a user-defined room list stays the required path. Not a thing more compute fixes. + +### Entity extraction: cloud edges local by ~5 points + +gpt-oss:120b (0.829) and deepseek-v3.1:671b (0.828) lead. Local qwen3:4b is at 0.778. The gap is real but modest. For typical use, local is good enough. + +### Memory extraction: gpt-oss models hit ceiling + +Both gpt-oss:20b and gpt-oss:120b score 1.000 coverage at n=30. Qwen3-coder and DeepSeek at 0.967. Local at 0.950. Cloud helps marginally; nothing decisive. + +### Calibration: saturated everywhere + +All cloud models in 0.90-0.95. Local already in the same range. Task is no longer discriminating between strong models — useful only as a sanity check. + +### Latency observations + +qwen3-coder:480b is the fastest cloud option at 599 ms p50 on closed-set classification, beating gpt-oss:120b (1656 ms) despite being 4x larger. Likely Ollama Cloud allocates more GPU per request for the bigger-customer Qwen3-coder traffic. + +deepseek-v3.1:671b at 735 ms is also faster than gpt-oss:120b. Inference-infrastructure efficiency varies by model, not just size. + +vs local 4B at 109 ms — cloud is **5-15x slower** including network RTT. For interactive workflows this matters. For batch mining of historical archives, it doesn't. + +### Cost note + +gpt-oss models continue emitting reasoning tokens even with `think: false` in the request body — verified directly via curl. The `content` field is clean (the harness extracts only that), but cloud inference time and quota burn includes reasoning generation we asked it to skip. Worth opening an upstream issue against Ollama Cloud for `think: false` support across all model families. For now, treat the cloud latency numbers as upper bounds; a non-reasoning gpt-oss equivalent would presumably be faster. + +### Kimi K2 1T: retry pending + +All 5 tasks returned `HTTP 500 from /api/chat: {"error": "Internal Server Error (ref: ...)"}` on warmup. Possible causes: cloud capacity, model unavailable at this hour, internal Ollama Cloud error. Not retried in this pass. Worth a follow-up run when the cloud reports green status. + ## Open-set discovery: do not ship -Best similarity score across all 15 models is 0.612 (gemma3:4b-it-q4_K_M and gemma3:4b-it-qat tied). The harness threshold for "ship `mempalace mine --mode discover`" was 0.70. +Best similarity score across all 15 local models is 0.612 (gemma3:4b-it-q4_K_M and gemma3:4b-it-qat tied). Cloud models (above) cap at 0.587 — not better. The 0.70 ship threshold is unreachable with current prompt design. What this means in plain English: even the best small model invents a label that's only loosely related to the hand-chosen "preferred" label. Most predictions land in the 0.4-0.7 range — semantically related but not the same slug. Real users wouldn't get a coherent taxonomy out of this; they'd get a sprawl of near-synonyms. -**Recommendation: do not ship `mempalace mine --mode discover` based on these models.** Closed-set classification with a user-defined room list stays the required path. +**Recommendation: do not ship `mempalace mine --mode discover` at this prompt design.** Closed-set classification with a user-defined room list stays the required path. -This isn't a fundamental limitation. Three avenues worth exploring before declaring open-set unreachable: +The cloud-tier measurements above ruled out "more compute will close the gap." 480B and 671B candidates plateau at the same ~0.58-0.59 the small models hit. This is a task-formulation problem, not a capacity problem. -1. **Larger models.** Run the same benchmark against `qwen3:30b-cloud` or `gpt-oss:20b-cloud`. If they hit ≥0.85 similarity, the issue is model capacity, and the question becomes whether cloud-only discovery mode is acceptable. -2. **Better prompting.** The current open-set prompt tells the model to invent any slug. Adding examples (few-shot) or a constrained vocabulary might lift the score. -3. **Two-pass clustering.** First-pass small-model labeling, second-pass clustering to consolidate near-synonyms. Different architecture, more code, but achievable with small models. +Two avenues worth exploring before declaring open-set permanently unreachable: -For now the data says no, and the cost of being wrong on a public-facing feature is high (users expect their auto-discovered taxonomy to be coherent). +1. **Better prompting.** The current open-set prompt tells the model to invent any slug. Adding examples (few-shot) or a constrained vocabulary might lift the score. +2. **Two-pass clustering.** First-pass small-model labeling, second-pass clustering to consolidate near-synonyms. Different architecture, more code, but achievable with small models. + +Both are research projects, not a tweak. Until one of them lifts cloud-or-local similarity above 0.75 on this dataset, the closed-set requirement stays. ## Surprises and anomalies diff --git a/benchmarks/model_eval/results/.gitignore b/benchmarks/model_eval/results/.gitignore index 7299e6c..cfb38fc 100644 --- a/benchmarks/model_eval/results/.gitignore +++ b/benchmarks/model_eval/results/.gitignore @@ -7,3 +7,4 @@ # gitignored by default. !2026-05-10-z690-ex-glacial.csv !2026-05-10-spotcheck-qwen3.csv +!2026-05-10-cloud-z690-ex-glacial.csv diff --git a/benchmarks/model_eval/results/2026-05-10-cloud-z690-ex-glacial.csv b/benchmarks/model_eval/results/2026-05-10-cloud-z690-ex-glacial.csv new file mode 100644 index 0000000..f7e0b4a --- /dev/null +++ b/benchmarks/model_eval/results/2026-05-10-cloud-z690-ex-glacial.csv @@ -0,0 +1,56 @@ +model_tag,task,mode,n_samples,accuracy,ttft_p50_ms,ttft_p95_ms,tps_p50,tps_p95,e2e_p50_ms,e2e_p95_ms,vram_resident_mb,vram_peak_mb,host,gpu,ollama_version,run_date,error,extras_json +gpt-oss:20b-cloud,room_classification,closed,30,0.8333,0.0,0.0,0.0,0.0,1144.5,1633.3,,2753,"z690-ex-glacial +",NVIDIA GeForce RTX 3090,ollama version is 0.23.2,2026-05-10 23:42:14 UTC,,"{""correct"":25,""total"":30}" +gpt-oss:20b-cloud,room_classification,open,30,0.5548,0.0,0.0,0.0,0.0,1095.4,2062.3,,3567,"z690-ex-glacial +",NVIDIA GeForce RTX 3090,ollama version is 0.23.2,2026-05-10 23:42:52 UTC,,"{""mean_similarity"":0.5548128518611897,""exact_match_count"":0,""high_similarity_count"":3,""low_similarity_count"":13}" +gpt-oss:20b-cloud,entity_extraction,default,29,0.7549,0.0,0.0,0.0,0.0,3142.3,10924.7,,3996,"z690-ex-glacial +",NVIDIA GeForce RTX 3090,ollama version is 0.23.2,2026-05-10 23:43:36 UTC,,"{""mean_f1"":0.7549275487569498,""mean_precision"":0.7325944170771757,""mean_recall"":0.7908319649698959,""valid_json_rate"":1.0,""error_count"":1,""error_sample"":""Cannot reach http://localhost:11434/api/chat: timed out""}" +gpt-oss:20b-cloud,memory_extraction,default,30,1.0,0.0,0.0,0.0,0.0,2476.5,3877.3,,3594,"z690-ex-glacial +",NVIDIA GeForce RTX 3090,ollama version is 0.23.2,2026-05-10 23:49:21 UTC,,"{""mean_coverage"":1.0,""mean_hallucination_rate"":0.5155555555555555,""mean_type_accuracy"":0.9,""valid_json_rate"":1.0}" +gpt-oss:20b-cloud,calibration,default,20,0.9,0.0,0.0,0.0,0.0,815.9,1100.2,,3571,"z690-ex-glacial +",NVIDIA GeForce RTX 3090,ollama version is 0.23.2,2026-05-10 23:50:47 UTC,,"{""correct"":18,""total"":20}" +gpt-oss:120b-cloud,room_classification,closed,30,0.8,0.0,0.0,0.0,0.0,1656.1,2317.9,,3603,"z690-ex-glacial +",NVIDIA GeForce RTX 3090,ollama version is 0.23.2,2026-05-10 23:51:06 UTC,,"{""correct"":24,""total"":30}" +gpt-oss:120b-cloud,room_classification,open,30,0.5529,0.0,0.0,0.0,0.0,1421.0,1807.9,,3580,"z690-ex-glacial +",NVIDIA GeForce RTX 3090,ollama version is 0.23.2,2026-05-10 23:51:57 UTC,,"{""mean_similarity"":0.5528842080396624,""exact_match_count"":0,""high_similarity_count"":3,""low_similarity_count"":14}" +gpt-oss:120b-cloud,entity_extraction,default,30,0.8292,0.0,0.0,0.0,0.0,3550.8,5124.2,,3571,"z690-ex-glacial +",NVIDIA GeForce RTX 3090,ollama version is 0.23.2,2026-05-10 23:52:46 UTC,,"{""mean_f1"":0.8291977515661727,""mean_precision"":0.803968253968254,""mean_recall"":0.8731216931216931,""valid_json_rate"":1.0}" +gpt-oss:120b-cloud,memory_extraction,default,30,1.0,0.0,0.0,0.0,0.0,2718.8,4222.1,,3570,"z690-ex-glacial +",NVIDIA GeForce RTX 3090,ollama version is 0.23.2,2026-05-10 23:54:41 UTC,,"{""mean_coverage"":1.0,""mean_hallucination_rate"":0.5083333333333333,""mean_type_accuracy"":0.9,""valid_json_rate"":1.0}" +gpt-oss:120b-cloud,calibration,default,20,0.95,0.0,0.0,0.0,0.0,983.0,1188.4,,3569,"z690-ex-glacial +",NVIDIA GeForce RTX 3090,ollama version is 0.23.2,2026-05-10 23:56:19 UTC,,"{""correct"":19,""total"":20}" +qwen3-coder:480b-cloud,room_classification,closed,30,0.9,0.0,0.0,0.0,0.0,598.7,2558.9,,3551,"z690-ex-glacial +",NVIDIA GeForce RTX 3090,ollama version is 0.23.2,2026-05-10 23:56:40 UTC,,"{""correct"":27,""total"":30}" +qwen3-coder:480b-cloud,room_classification,open,30,0.5865,0.0,0.0,0.0,0.0,778.1,2397.5,,3653,"z690-ex-glacial +",NVIDIA GeForce RTX 3090,ollama version is 0.23.2,2026-05-10 23:57:10 UTC,,"{""mean_similarity"":0.5865002016051934,""exact_match_count"":1,""high_similarity_count"":4,""low_similarity_count"":13}" +qwen3-coder:480b-cloud,entity_extraction,default,30,0.8036,0.0,0.0,0.0,0.0,3108.2,8487.9,,4472,"z690-ex-glacial +",NVIDIA GeForce RTX 3090,ollama version is 0.23.2,2026-05-10 23:57:43 UTC,,"{""mean_f1"":0.803606549396023,""mean_precision"":0.7605952380952381,""mean_recall"":0.8820634920634921,""valid_json_rate"":1.0}" +qwen3-coder:480b-cloud,memory_extraction,default,30,0.9667,0.0,0.0,0.0,0.0,5870.2,16020.9,,4543,"z690-ex-glacial +",NVIDIA GeForce RTX 3090,ollama version is 0.23.2,2026-05-10 23:59:47 UTC,,"{""mean_coverage"":0.9666666666666667,""mean_hallucination_rate"":0.5183333333333333,""mean_type_accuracy"":0.95,""valid_json_rate"":1.0}" +qwen3-coder:480b-cloud,calibration,default,20,0.95,0.0,0.0,0.0,0.0,607.0,3773.7,,4479,"z690-ex-glacial +",NVIDIA GeForce RTX 3090,ollama version is 0.23.2,2026-05-11 00:03:29 UTC,,"{""correct"":19,""total"":20}" +deepseek-v3.1:671b-cloud,room_classification,closed,30,0.8,0.0,0.0,0.0,0.0,735.4,6291.8,,4473,"z690-ex-glacial +",NVIDIA GeForce RTX 3090,ollama version is 0.23.2,2026-05-11 00:03:51 UTC,,"{""correct"":24,""total"":30}" +deepseek-v3.1:671b-cloud,room_classification,open,30,0.5656,0.0,0.0,0.0,0.0,834.8,1529.1,,4471,"z690-ex-glacial +",NVIDIA GeForce RTX 3090,ollama version is 0.23.2,2026-05-11 00:04:33 UTC,,"{""mean_similarity"":0.5655551791849553,""exact_match_count"":0,""high_similarity_count"":3,""low_similarity_count"":14}" +deepseek-v3.1:671b-cloud,entity_extraction,default,30,0.8284,0.0,0.0,0.0,0.0,1562.6,2367.7,,4473,"z690-ex-glacial +",NVIDIA GeForce RTX 3090,ollama version is 0.23.2,2026-05-11 00:05:06 UTC,,"{""mean_f1"":0.8284154442049179,""mean_precision"":0.8171031746031746,""mean_recall"":0.8696031746031746,""valid_json_rate"":1.0}" +deepseek-v3.1:671b-cloud,memory_extraction,default,30,0.9667,0.0,0.0,0.0,0.0,1575.2,2971.7,,4470,"z690-ex-glacial +",NVIDIA GeForce RTX 3090,ollama version is 0.23.2,2026-05-11 00:05:58 UTC,,"{""mean_coverage"":0.9666666666666667,""mean_hallucination_rate"":0.3,""mean_type_accuracy"":0.9666666666666667,""valid_json_rate"":1.0}" +deepseek-v3.1:671b-cloud,calibration,default,20,0.95,0.0,0.0,0.0,0.0,677.7,927.6,,3734,"z690-ex-glacial +",NVIDIA GeForce RTX 3090,ollama version is 0.23.2,2026-05-11 00:06:57 UTC,,"{""correct"":19,""total"":20}" +kimi-k2:1t-cloud,room_classification,closed,0,0.0,0,0,0,0,0,0,,,"z690-ex-glacial +",NVIDIA GeForce RTX 3090,ollama version is 0.23.2,2026-05-11 00:07:12 UTC,"Warmup failed: HTTP 500 from http://localhost:11434/api/chat: {""error"":""Internal Server Error (ref: b000e459-47d1-4d28-9179-0af21c4265fb)""} +",{} +kimi-k2:1t-cloud,room_classification,open,0,0.0,0,0,0,0,0,0,,,"z690-ex-glacial +",NVIDIA GeForce RTX 3090,ollama version is 0.23.2,2026-05-11 00:07:13 UTC,"Warmup failed: HTTP 500 from http://localhost:11434/api/chat: {""error"":""Internal Server Error (ref: 108f5dd2-c14e-4e0c-9d02-58749c6b3a8b)""} +",{} +kimi-k2:1t-cloud,entity_extraction,default,0,0.0,0,0,0,0,0,0,,,"z690-ex-glacial +",NVIDIA GeForce RTX 3090,ollama version is 0.23.2,2026-05-11 00:07:13 UTC,"Warmup failed: HTTP 500 from http://localhost:11434/api/chat: {""error"":""Internal Server Error (ref: 11346d10-7795-49b8-ae0b-90a6a9456e5d)""} +",{} +kimi-k2:1t-cloud,memory_extraction,default,0,0.0,0,0,0,0,0,0,,,"z690-ex-glacial +",NVIDIA GeForce RTX 3090,ollama version is 0.23.2,2026-05-11 00:07:13 UTC,"Warmup failed: HTTP 500 from http://localhost:11434/api/chat: {""error"":""Internal Server Error (ref: 6fd29366-daf6-4f88-9155-525e60b5455c)""} +",{} +kimi-k2:1t-cloud,calibration,default,0,0.0,0,0,0,0,0,0,,,"z690-ex-glacial +",NVIDIA GeForce RTX 3090,ollama version is 0.23.2,2026-05-11 00:07:13 UTC,"Warmup failed: HTTP 500 from http://localhost:11434/api/chat: {""error"":""Internal Server Error (ref: c325834e-d18f-4406-956f-fedd34d23143)""} +",{}