Add the M6 manuscript draft, figure script and number check

First full draft of the Volve-DIA paper in paper/ (13 LaTeX sections, 44 pages),
four figures built from outputs/ with assertions, a checker that traces every
number to plan.md or outputs/, and a source audit with its fixes. Correct the
pooled T2(b) values in the notes to the primary values and sync the plan, README,
overview and progress page.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-25 02:02:43 +00:00
parent 8c924b7f0d
commit 221399260f
37 changed files with 4198 additions and 46 deletions

View File

@@ -0,0 +1,181 @@
% Section 4: Benchmark design. Every number is traced in paper/provenance/03_05_AB.md.
\section{Benchmark design}\label{sec:design}
\VolveDIA{} defines five tasks on the data of Sec.~\ref{sec:data} and one contrast (Table~\ref{tab:tasks}). Their
roles differ, and the roles were fixed in protocol v1 before any baseline ran. Grounded question answering (T4) and the
document-fidelity contrast C4 are the headline analyses. The hole-section task T1 on days with a published hole size
supports them. The two NPT tasks, T2 and T3, are diagnostics: they test how well a model recovers the DDR activity
codes from masked text and data, which is not the same as detecting non-productive time as an engineer would. T5 is an
optional retrieval diagnostic added later under its own protocol. All labels and answers come from code
(Sec.~\ref{sec:design:labels}); validation without a human rater is described in Sec.~\ref{sec:design:validation}, the
split and leakage rules in Sec.~\ref{sec:design:splits}, and the locked protocols in Sec.~\ref{sec:design:protocols}.
\begin{table}[t]
\centering
\caption{Tasks of \VolveDIA{}. NPT (b) is the primary definition and (a) the sensitivity definition. ``Masked'' means
that the activity code, state and state detail are removed from the input.}
\label{tab:tasks}
\small
\begin{tabular}{@{}p{0.12\textwidth}p{0.19\textwidth}p{0.19\textwidth}p{0.17\textwidth}p{0.20\textwidth}@{}}
\toprule
Task & Unit and size & Input & Metric & Leakage control \\
\midrule
T1 hole section & Report day; 932 drilling days (672 published, 260 filled) & DDR text of the day and WITSML
statistics & Pooled out-of-fold accuracy per label source & Hole-size, bit-size and casing-size fields withheld \\
T2 NPT activity & Activity; 23,447 rows, 4,286 NPT (b), 3,577 NPT (a) & Comment, neighbouring comments, 24-hour
summary & Average precision & Codes masked; unmasked run as ablation \\
T3 NPT depth interval & 10~m cell; 4,894 own-hole cells on 21 wellbores & Activity history, WITSML, formation
distance & Interval IoU; average precision per cell & Features end before the interval starts; codes masked \\
T4 grounded QA & Question; 1,662 (1,638 answerable, 24 unanswerable), 39 templates & Question plus mode-specific
evidence & Accuracy within tolerance; citation precision; wrong-wellbore rate & Answers by SQL; few-shot examples
from development wells \\
C4 fidelity & Paired T4 question; 1,376 (1,293 without date-flagged pages) & Same retrieval over XML, HTML or OCR
text & T4 metrics, paired by question & Labels from XML in every condition \\
T5 similar interval & Query interval; 410 (b), 373 (a) & Depth, WITSML and masked text before the interval &
nDCG@10, MRR, P@10 & Candidates from other wells; no code, cause, section or formation read \\
\bottomrule
\end{tabular}
\end{table}
\subsection{Labels by code}\label{sec:design:labels}
Every label is computed by code from the DDR XML tables, the WITSML logs or the pick file, and every derived value
carries its provenance. The mapping from source fields to labels is a public configuration file. A check compares
the code and state counts written in that file with the data and reports every difference. No person and no language
model
creates a label, and rendered or OCR text is never a label source. The full mapping is summarised in
Appendix~\ref{app:labels}.
\paragraph{T1: hole section.} The section of a report day is its published hole diameter. The diameter is missing in
990 reports, 260 of which contain drilling activities, so a fill rule was needed for those days. We evaluated
candidate rules by hiding known diameters and asking each rule to recover them. The chosen rule, a forward fill of the
most recently opened section of the wellbore, recovers 1.0000 of the values when the second half of a run is hidden
(the pattern of the real gaps, and correct by construction) and 0.9051 when single reports are hidden. On the real
gaps, it agrees with the hole size named in the text on 7 of 8 reports and with the bit record on 23 of 30. The 17
reports before the first known diameter of a wellbore take the first section and carry a flag. The benchmark scores
the 932 drilling days, 672 with a published and 260 with a filled label, and reports the two sources apart; the 818
non-drilling days are not scored. The 6-inch and 9.875-inch sections fail the evaluability rule and are not scored as
separate classes. A second T1 label, the operation class of an activity, maps the code to one of 15 classes; it is
used only in the label audit.
\paragraph{T2: NPT activity.} Two NPT definitions are computed side by side. Definition (a) marks the rows with an
interruption code: 3,577 rows (15.3\%), 8,343~h or 21.2\% of the reported hours. Definition (b) is the union of an
interruption code, \texttt{state = fail} and a state detail other than \texttt{success}: 4,286 rows (18.3\%), 9,626~h
or 24.4\% of the hours. Protocol v1 chose (b) as the primary definition by the rule in
Sec.~\ref{sec:design:validation}, and (a) is the sensitivity definition. Each NPT row also receives a cause group. The
code decides when it names a cause, the state detail decides otherwise, and \texttt{unspecified} is the default. The
two sources name different groups on 192 rows; these rows keep the code's group and are retained for the audit.
\paragraph{T3: NPT depth interval.} The depth of an activity is its end depth, one value per row, which is not
necessarily the depth of the problem in the hole. Only rows below the mud line can be placed in depth. Of the 23,447
activities, 9,116 have a depth of zero and 2,923 lie above the mud line, so only 50.3\% of the NPT rows (44.6\% of the
NPT hours) can be located. The located rows are mapped onto a 10~m MD grid, and a cell is positive when it holds at
least one NPT activity. Over all 26 wellbores the grid has 8,757 cells, 844 positive under (a) and 979 under (b).
Touching positive cells merge into intervals. The scored universe is the own hole of each of the 21 wellbores with
WITSML: 4,894 cells, of which 556 are positive under (b) and 478 under (a). Cells above the own-hole top of a sidetrack
belong to the parent wellbore, and the 191 positive cells there are reported apart and not scored.
\paragraph{T4: grounded questions.} Each of 39 templates has three SQL queries over the DDR tables: one enumerates the
instances, one computes the answer and one returns the evidence rows. The templates produced 3,915 candidate
instances. Of these, 371 were dropped by rule, most for an ambiguous value (311), and 1,662 questions were sampled from
the rest: 1,638 answerable and 24 with the reference answer ``not reported''. The five question families are lookup
(825 questions), aggregation (513), temporal event (134), comparison (102) and multi-hop (88). Of the 1,662 questions,
1,560 concern one wellbore, 92 compare two wellbores of one well and 10 concern the whole field. Three independent
implementations give the same answers: SQL, a separate pandas version and a direct reading of the raw XML agree on all
1,662 questions. A question has a median of 3 evidence rows (maximum 488). Questions about
trouble use the published codes, not either NPT definition. Numeric answers match within a tolerance that was fixed
per quantity before any model ran: 1.0~m for depth, 0.01~g/cm$^3$ for density, 0.1$^\circ$ for inclination, 0.25~h for
durations, 2\% for rate of penetration and 0.01~in for sizes; counts and dates must match exactly.
\paragraph{T5: relevance.} A query is an own-hole T3 interval with a known section and formation: 410 intervals under
(b) and 373 under (a), on 19 wellbores of 10 wells. The formation of an interval is the deepest pick at or above its
top. A candidate interval receives a gain $g$ from 0 to 3: one point each for the same section, the same formation and
a shared cause group. It is fully relevant when $g = 3$.
\subsection{Label validation without a human rater}\label{sec:design:validation}
No human rater was available for this benchmark, so no label in it has been checked by a person. Validation therefore
rests on three layers, none of which creates labels. Their results are in Sec.~\ref{sec:res:labels}.
\paragraph{Blind LLM raters.} Language models from different families rated masked items without seeing the codes or
each other's answers. A trial of 100 activities, rated by Claude Sonnet, Opus and Haiku, served as a pipeline check
and was not used for any decision. The decision sample was drawn before any rating: 300 activities outside the trial,
stratified by NPT zone, cause or operation class and well (105 rows positive under
(a), 45 positive under (b) only and 150 negative, in 225 strata), plus 90 T1 days (45 with a published and 45 with a
filled section). Three open-weight models, Qwen3-8B, Gemma 3 12B and Ministral 3 8B, ran locally with fixed weights and
one conversation per item. Each rated every item twice on the same day, 1,170 ratings per pass.
The decision statistic is the median over raters of Cohen's $\kappa$ \citep{cohen1960kappa} against the code label,
weighted by the inverse inclusion probability of each item, from the first pass. The second pass measures short-term
repeatability. The statistic served two decisions. First, (b) became the primary NPT definition because its median
$\kappa$ exceeded that of (a) by at least 0.02. Second, a class qualified for a separate score only with
$\kappa \geq 0.6$, at least 20 rated items and at least 3 wells with 5 items each. The raters are language models.
They may share training data or conventions with the LLM baselines, so agreement with the code labels is evidence
of consistency with one reading of the text. It is not a check by drilling engineers and not evidence that the labels
are
correct.
\paragraph{Cross-checks with third-party work.} No public NPT label set on Volve is independent of the DDR codes. We
re-ran three checks. DrillScribe \citep{paul2026drillscribe} builds episodes from the same state-detail field, so
matching its episode keys tests our parsing, not our labels. The text rules of \citet{grigorovich2026complication},
re-implemented with attribution, flag trouble intervals from comments and give a check on T3 that is partly
independent of the codes. The three stuck-pipe cases of the TSPP data set \citep{cao2023tsppdata,cao2024tspp}, on
15/9-F-4, 15/9-F-9 A and 15/9-F-1, are read case by case against what the DDR records in the same windows.
\paragraph{Calibrated judge for free text.} Free-text T4 answers (string, enumeration and list types; 233 of the 1,662
questions) are hard to score by string matching. Protocol v3 tested an LLM judge on 100 answers sampled before any
verdict. The planned reference, the author's own scores, was replaced by the automatic score against the XML answer,
because no human rater exists. The judge sees the question, the reference and the candidate answer, and never the
model, mode, source, citations or automatic score. Claude Sonnet is the primary judge and Claude Haiku the sensitivity
judge, and the statistic is unweighted Cohen's $\kappa$ with the threshold $\kappa \geq 0.6$ of gate G3. A pass shows
that the judge is consistent with the automatic scorer, not that it agrees with a person. T4 headline numbers remain
automatic scores.
\subsection{Splits and leakage control}\label{sec:design:splits}
The primary split groups items by well, because wellbores of one well share data. The 26 wellbores belong to 11 wells:
15/9-19 and 15/9-F-15 have five wellbores each, 15/9-F-1 and 15/9-F-11 four each, 15/9-F-9 two, and six wells one each.
Sixteen report dates are shared by two wellbores of the same well. A sidetrack inherits the upper hole of its parent,
and 191 of the 844 positive T3 cells under (a) lie in such inherited sections. Verbatim repetition of comments of at
least 40 characters is rare both between sibling wellbores (0.30\%) and across wells (0.96\%), so it is the shared
dates and inherited hole, not text duplication, that motivate the grouping. Both third-party repositories we compared
against also keep sidetracks with the parent well. The outer loop leaves one well out (11 folds). The inner loop for
tuning uses five-fold grouped cross-validation by well, and scores are computed on the pooled out-of-fold predictions.
A split by wellbore (26 folds) is a sensitivity analysis; its inner loop still groups by well, so the sibling wellbores
of a test wellbore never enter tuning. Nothing is chosen on a test well: no hyperparameter, prompt, threshold, class
merge or few-shot example. Systems that need prompt development use the two wells with the fewest reports, 15/9-F-7 and
15/9-F-9.
For T2 and T3, the activity code, its main and sub parts, the state and the state detail are masked in the input view,
which raises an error if a masked column appears. The equipment-failure table and the schedule fields
\texttt{daysAhead} and \texttt{daysBehind} are withheld as well, since they record NPT almost directly. TF-IDF and DistilBERT also run on unmasked input for T2 and T3. Their paired score changes measure the effect of exposing the codes. For T3,
a forecast is issued for the whole grid of a wellbore at its first in-hole activity and uses only data that end before
that time, within a 24-hour history window. The code checks that no forecast time is later than the start of the
interval it is scored against. For T1, the hole-size, pilot-size, bit-size and casing-size fields are withheld; sizes
named
in the free text stay in the input, because they are the evidence a reader would use.
\paragraph{Metrics and statistics.} For T2 and T3, average precision sums the precision at each distinct score threshold, weighted by the
increase in recall at that threshold. The reporting code computes this sum directly from the pooled held-out predictions. T3 also reports interval IoU: the length of the intersection of the
predicted and reference intervals on the 10~m grid divided by the length of their union, pooled over wellbores. T4
reports accuracy within the template tolerance, macro-averaged over the five families on the questions scoped to one
well; field questions are scored on a separate line. Citation precision is computed at the report level. The
wrong-wellbore rate counts predictions that name or cite a wellbore outside the question scope, or name a wellbore
other than the reference when the reference answer specifies one. T5 reports
nDCG@10 with linear gain $g$ \citep{jarvelin2002ndcg}, MRR and precision at 10. Confidence intervals come from 2,000 bootstrap
resamples of whole wells (95\%, seed 20261117), and comparisons are paired on the same items. Stochastic models run
with three seeds or repetitions for the complete baseline matrix. Appendix~\ref{app:record} records partial runs.
\subsection{Locked protocols, hypotheses and gates}\label{sec:design:protocols}
Each analysis was fixed in a protocol file that was locked by its SHA-256 hash before the results it governs were
computed. Protocol v1 fixed the splits, masking, NPT definition, class rules, metrics, seeds and gate thresholds before
the first baseline run. Protocols v2--v6 each extend the previous one by checksum and leave it unchanged. They cover
the replacement of two baselines, the judge, the error taxonomy with the evidence-grounding score, T5 and the
planted-signal studies. Five hypotheses were stated before G1. H1: on masked T2, the advantage of a zero-shot LLM over
TF-IDF with logistic regression is unclear. H2: unmasking the codes raises T2 and T3 scores. H3: blind raters reach
$\kappa \geq 0.6$ on binary NPT, with lower values for cause classes. H4: the evidence-grounding score correlates only
weakly with correctness. H5: OCR lowers T4 more than T2 because T4 needs exact values. T1 section is included in the document sensitivity analysis. Gates G1--G3 control the
protocol lock, baseline coverage and judge use. A threshold is never relaxed: a
change of plan goes into a new protocol with a recorded deviation. Appendix~\ref{app:record} and
Table~\ref{tab:protocols} give the lock dates, hashes, what was known before each lock, the gate outcomes and every
deviation.