Record M3-M4 results, G2 v2, G3 and the final analysis

Update the plan, overview, README, AGENTS and progress page with the completed
baselines, G2 v2, protocol v3 and G3, and the paired contrasts (agent below
tool_only, no detectable OCR loss on T4, code leakage on T2 but not T3). Add the
corresponding run log entries.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-20 07:00:36 +00:00
parent cd7ff483b3
commit 8cb55a3153
6 changed files with 559 additions and 48 deletions

View File

@@ -4,12 +4,12 @@ Volve-DIA: a public benchmark and baselines for drilling-context recognition, NP
Read first: `docs/plan.md` (plan, gates, decisions; §1 data facts, §6 roadmap, §10 forbidden claims, §12 decision log), `README.md` (setup, scripts, logging), `docs/danh-gia-huong-NCKH-2026-10-29.md` (why this direction, competitors, references; local only, not in git), `docs/technical_overview.md` (a lecture for newcomers: drilling, DDR, leakage, tasks, labels, OCR, evaluation, code map). Progress page: `report.html`. These docs are in Vietnamese.
## Status (18/11/2026)
## Status (20/11/2026)
- **P0 (infrastructure) done and committed** (first commit on `main`, 29/10/2026). The project folder is `/home/jovyan/lamlvh/Volve-DIA`; remote `origin` `https://gitea.vts-ai.space/lamlvh/Volve-DIA` is **public**. `scripts/run_p0.sh` runs scripts 00–05 and the tests.
- **M1 machine work committed** (17/11/2026, `1791665`). The M1 driver generated the machine outputs; its final pytest
step recorded 140 passes and one runlog test failure. The test had matched its own command line as the child
readiness signal. Corrected on 18/11; the current suite passed 145 tests.
readiness signal. Corrected on 18/11; that suite passed 145 tests.
- **Data:** `data/Volve` is now a real directory (no longer a symlink); `/home` has about 75 GB free (98%). The manifest holds 25,571 files (formation tops added), `--check` ok. Third-party material is in `data/third_party/` (untracked).
- **DDR XML:** 1,759 reports, 26 wellbores (11 wells), 23,447 activities; counts locked in `EXPECTED`. Render bugs: *Tight well* and *HPHT* ("Y" in every HTML), and the Bit Record "End mMD" column (prints `bitRun_mdHoleStart`). `03` covers only the header, 31 fields, summaries and Operations.
- **OCR:** a colleague ran the full OCR and exported it through Dataset Hub (credentials only in `.env`, never in committed files or runlog commands). `scripts/04_ocr_hub.py` matches pages to DDRs by content (3,059 of 3,066 pages, 1,752 of 1,759 reports complete; 7 pages unmatched, 16 pages with a date disagreement not yet inspected). QC on the hub pages (`scripts/05_ocr_qc.py --source hub`, 1,752 reports): content CER 2.40%, WER 5.56%, exact 0.9181; depth fields and rig name are the weakest. The shared vLLM service is not used any more; `04_ocr.py` and its page cache stay for the pilot.
@@ -34,14 +34,72 @@ Read first: `docs/plan.md` (plan, gates, decisions; §1 data facts, §6 roadmap,
marked 219 of 4,894 own-hole T3 cells with WITSML, including 72 NPT (a) and 83 NPT (b) overlaps.
TSPP2–4 have 9/14/15 DDR rows in the sensitivity windows and zero stuck-equipment codes. G1 preflight verified
all 10 T3 training folds contain positives and negatives for both definitions (21 eligible wellbores).
- **Agents:** delegate to Sonnet; to Opus only for very complex work; do not use Fable (user decision 17/11/2026).
- **M3–M4 started 18/11/2026.** `scripts/run_m34.sh` builds the frozen feature tables (932 T1 days, 23,447
T2 activities, 4,894 T3 cells), fits grouped baselines, runs T4/C4, and tracks G2 coverage in
`outputs/m34/report.json`. C4 pairs 1,376 T4 questions, retaining 1,293 when excluding evidence reports
with date-disagreement pages. The date sensitivity rebuilds each retrieval corpus. TF-IDF + logistic regression
completed T1–T3 on 18/11. TF-IDF T2(b) by well reached AP 0.463 masked and 0.995 unmasked, with paired
delta 0.531 (95% CI 0.480–0.580). TF-IDF T3(b) by well reached AP 0.123 masked and 0.127 unmasked, with
paired delta 0.0048 (95% CI −0.0005–0.0238). DistilBERT completed 111 T1 folds across both splits and
three seeds and the three masked T2(b) well runs (AP 0.579–0.603). Masked T2(b) by wellbore also has all
three seeds (AP 0.619, 0.612 and 0.624). Masked T3(b) by well is complete across three seeds
(AP 0.117–0.125, interval IoU 0.108–0.124). All DistilBERT shards (both definitions, masked and unmasked,
both splits) finished by 06:27 UTC 20/11; the last were T3(a) unmasked (93 folds) and T2(a) unmasked (111 folds).
Masked Qwen T2(b) seed 0 reached AP 0.264 against 0.463 for masked TF-IDF, with paired delta −0.200
(95% CI −0.250 to −0.152); Qwen T2 seed 1 was stopped at 17,827/23,447 (partial v1).
Qwen C4 seed 0 finished all three sources (1,376 questions each). Macro-family accuracy on the 1,366
well-scoped questions is 21.36% XML, 23.54% HTML and 19.59% OCR. The date sensitivity also finished
seed 0 (1,293 questions per source), with macro-family accuracy 20.42%, 22.92% and 19.53% on 1,284
well-scoped questions. Qwen RAG finished its 1,662 questions in seed 0 (15.4%); the Qwen agent was stopped at
545/1,662 and Llama never ran beyond the smoke (both replaced in protocol v2).
The first full C4 report exposed a missing-well comparison error for field questions, fixed in the report
code. The detached stage watcher refreshed the report at 06:32 UTC 20/11 and exited.
- **Protocol v2 (19/11/2026, plan §12 item 32):** the Qwen and Llama baselines were **stopped** on 19/11 (checkpoints kept:
Qwen T4/C4 10,214 of 16,317 seed-0 predictions, Qwen T2 seed 0 complete and 17,827 of 23,447 for seed 1, Llama none; reported as
partial v1). The v1 `api` cell is filled by the VAI model `DeepSeek-V4.1-Flash-1017` (the vopec-chatbot model; 3,600/7,100
credits per 1M input/output tokens, about 1 VND each, 10M-credit quota shared by the team; URL and key only in `.env`) on the
full T4/C4 and T2 matrix, three repetitions. **VAI full run** (started 03:22 UTC 19/11, `scripts/run_m34_v2.sh full 250000000`,
token cap, 4 workers, checkpoints `outputs/m34/v2/`) is **complete**: T4/C4 48,951/48,951 and T2 70,341/70,341. Sonnet and Haiku (no Anthropic key) replace Qwen and Llama as session subagents on a fixed auxiliary
sample: 300 T4 questions x 5 conditions and 500 T2 items, drawn over all 11 wells with seed 20261117, one repetition, outside G2
coverage (`scripts/16_m34_session.py prepare|regroup|status|collect`, batches of 15 T4 / 50 T2 items with `.txt` copies because
Read returns about 42k characters). `configs/protocol_v2.yaml` (+ `.sha256`) extends v1; never edit it while the VAI run
exists (its SHA is in every checkpoint). `g2` (v1) cannot be met; `g2_v2` needs VAI complete plus the v1 comparison baselines.
Track runs with `bash scripts/m34_status.sh`. 168 tests (20/11).
- **G2 v2 passed on 20/11/2026** (`outputs/m34/report.json` refreshed 06:32 UTC): `g2_v2.passed` True with no missing
classification or QA cells; `g2` (v1) False as expected. C4 coverage 1,376 paired questions, 1,293 without date-flagged
pages; `sha256sum -c configs/protocol_v2.yaml.sha256` OK. Headline T4 macro-family accuracy (well-scoped, mean of 3
repetitions, automatic scores) for DeepSeek: C4 XML 0.151, HTML 0.177, OCR 0.181; RAG 0.148; zero-shot 0.071; few-shot
0.151; tool_only 0.712; agent 0.618. Tool use over the XML-derived tables is far above retrieval and zero-shot. Qwen
(partial v1, seed 0): C4 XML 0.214, HTML 0.235, OCR 0.196, RAG 0.154. T2(b) masked AP by well: majority 0.179, lexicon
0.249, TF-IDF 0.461, DeepSeek zero-shot 0.405, Qwen zero-shot 0.261 (partial), DistilBERT 0.597; by wellbore DistilBERT
0.619, TF-IDF 0.484. Unmasked T2(b) by well: TF-IDF 0.994, DistilBERT 0.869. T3(b) masked AP by well: majority 0.114,
TF-IDF 0.123, DistilBERT 0.121, about chance, so T3 stays a diagnostic.
- **Agents (user decision 19/11/2026, replaces 17/11):** writing code, code review and similar engineering or editing work is delegated to Opus. Model-run benchmark tasks that produce ratings or predictions without an API key (raters, judge, reference samples) use the lower models, Sonnet or Haiku, chosen per task. Do not use Fable.
- **Session sample complete (19/11/2026):** Sonnet and Haiku answered all 110 batches (300 T4 questions x 5 conditions, 500 T2 items, one repetition,
collected into `outputs/m34/v2/session/<model>/summary.json`). Macro-family accuracy, Sonnet / Haiku: C4 XML 0.123 / 0.083, C4 HTML 0.177 / 0.147,
C4 OCR 0.187 / 0.150, RAG XML 0.128 / 0.098, zero-shot 0 / 0 (no evidence, answers withheld). Limitations: no read isolation between agents, some agents ran
extra ls/wc, group-agent outputs were quarantined and rerun one batch per agent, batches are 15 T4 / 50 T2 items (not 30 / 100).
- **Protocol v3 and G3 passed (20/11/2026, plan §1.7, §12 item 34).** No human rater exists, so `configs/protocol_v3.yaml`
(+ `.sha256`, extends v2/v1; never edit it) makes the automatic score against the XML answer the G3 reference; threshold
κ ≥ 0.6 unchanged. 100 free-text T4 answers of VAI DeepSeek rep 0 (sample sha `3c8021f9…`, prompt sha `ff32e797…`),
judged blind by session subagents (`scripts/18_m5_judge.py prepare|status|collect`, `outputs/m5/judge/`). Sonnet
(primary) κ 0.98 (well bootstrap CI 0.947–1.0), Haiku 0.90, between judges 0.92; 5 disagreements (one sentence-form
answer the string scorer missed; four OCR "MERSK INSPIRER" accepted by Haiku). This is consistency with the automatic
scorer, not human agreement; T4 headline numbers stay automatic.
- **Final analysis (20/11, plan §1.7).** Paired by-well CIs per repetition: agent − RAG +0.46 to +0.48 (excludes 0);
agent − tool_only −0.08 to −0.12 (agent is worse); OCR − XML +0.02 to +0.04 (includes 0, so H5 is not supported on T4).
Wrong-wellbore rate: RAG 0.30, C4 HTML/OCR 0.36–0.38, C4 XML 0.20, tool modes about 0.05. Code leakage T2(b): TF-IDF
+0.531, DistilBERT +0.27 to +0.29; T3 about 0. DeepSeek − TF-IDF on T2 −0.055 (CI includes 0). Qwen is partial v1, seed 0.
## Next
Roadmap and gates: `docs/plan.md` §6, §12 item 1.
1. Implement M3 baselines using the locked reporting scope. Both blind LLM passes and the class review are complete.
The timing amendment records the same-day repeat with distinct seeds.
1. G2 v2 and G3 passed (20/11). Next in M5: error taxonomy by question family and the EGS correlation with the
automatic score (RQ4); T4 headline numbers stay automatic. Then paper writing (M6) and release terms at G4. No claim
of a human, author or expert audit is allowed.
2. C4 reports results with and without the 16 date-disagreement pages; the 7 unmatched reports are dropped.
3. Decided 17/11 (plan §12 item 21): WITSML suspect values (-999, -99999, 99999, 9999, |v| > 1e15) are missing at feature stage; formation picks file is the label source; 7 unmatched OCR reports are dropped from C4; G1 locked NPT (b) (+0.025 median weighted κ in the first pass).
4. At G4, confirm the release terms for this copy. Local `license.txt` states CC BY-NC-SA 4.0 and no resale,