Jason OuFIAA · Actuarial AI

Study 01 · Life insurance experience · measured 2026

Can a model read an experience study?

Forty-seven synthetic portfolios — 250 000 policies each, four benefit lines, with anomalies planted by a generator that keeps the answer key sealed. Two Qwen 27B models, crossed with two harnesses, scored on the held-out split. This page is the findings: what the models found, what they invented, what it cost, and where the benchmark itself was wrong.

47 scenarios · 23 opt / 24 held-out 250 000 policies · seed 42 2 × 2 models × harnesses strict scoring + FP accounting MIT
71.2%
strict accuracy — best cell
Qwen3.8-27B on its own harness, 23 books × 3 runs1
41.9%
false alarms per claim
same cell: 79 hits, 57 false alarms, 136 claims1
−30pts
optimism gap
tuning split → unseen books, both models2
3.4×
cost spread, same exam
1.95 M tokens / 21.9 h vs 0.89 M / 5.9 h3

The four questions a demo cannot answer

Suppose you want an LLM to help with experience studies: read A/E tables, flag the lines worth investigating, draft the commentary. Before anyone signs that off, four questions have to be answered — and one convincing demo answers none of them.2

  1. How good is the model at the task — how much of what is really in the data does it find?
  2. What does it miss, and what does it invent? A miss and an invention cost different things and are fixed differently, so they cannot be averaged into one score.
  3. What does one answer cost, in time and tokens, reported beside the result it bought?
  4. Is the pipeline around the model still fit for purpose — and on what evidence would you say so?
What you govern is the model and the harness together. A notice saying “we upgraded the model” is not an assessment.

That sentence is the reason this benchmark exists. Everything below is an attempt to answer the four questions with numbers that survive being pulled apart.

The task, and what the model is actually shown

A/E is actual claims divided by expected claims. A line sitting at 1.00 is running to assumption; a line at 1.30 is a portfolio costing 30 % more in claims than the pricing basis said it would. Experience analysis is the job of deciding which gaps are signal.

One subject is one scenario folder. The prompt body reads only three files — the four yearly A/E series, a summary.json, and the IP recovery A/E by diagnosis. Everything else in the folder is listed by path only: age × gender detail, PNG charts, and the raw claims and exposure behind every ratio. The model may read those with a sandboxed Python call, or not.

The whole feedRoughly 130 numbers plus a file list: about 2.7k prompt tokens bare, about 6.6k with the evidence pack added.
in the promptcontentrole
ae_<benefit>_by_year.csvfour series × ten years, e.g. 2018: Actual=257 Expected=389.6 AE=0.660the evidence
summary.jsonoverall A/E and claim counts per linescale context
ae_ip_termination.csvIP recovery A/E by diagnosissecond axis
everything elseage × gender detail, charts, raw claims, exposurelisted only, readable on request

The answer is one JSON object, and the shape is verified against the pinned prompt:

{"scenario_id": "sc-f69eea",
 "overall_assessment": "anomalies",
 "findings": [{
   "benefit": "Death",
   "years": [2018, 2024],
   "pattern": "drift",
   "direction": "increase",
   "magnitude": "+0.15/yr, A/E 0.66 -> 1.31",
   "confidence": 0.9,
   "evidence": ["ae_death_by_year.csv: monotone rise 2018-2024, CI unchanged"],
   "recommended_action": "refer Death claim frequency to pricing and reserving"}]}

pattern is one of drift | shock | volatility | recovery | other, direction one of increase | decrease | dispersion. A clean scenario requires an empty findings list — claiming anything on it is a false alarm. Matching is strict: benefit, pattern, window and direction must all agree, so a vague or mislabelled answer scores nothing. recommended_action is recorded but deliberately not scored: grading free-text advice is a separate unsolved problem.

Two scenarios, one easy and one that is not

Both are real scenarios shipped in the repo, both drawn from the published CSVs. Models are fed text only — the charts here are the same numbers, plotted.

The simple case — sc-f69eea

DeathCITPDIP
sc-f69eea — one line, one movement. Death climbs every year from 2018 (0.660) to 2024 (1.307) while nothing else moves. Planted control, from the sealed manifest: drift +0.15/yr on Death, 2018–2024. data/eval/optimization/sc-f69eea/artifacts/ae_*_by_year.csv
Data table — A/E by year, sc-f69eea
YearDeathCITPDIP
20150.6261.0060.9861.023
20160.7011.0041.0411.029
20170.6370.9651.0250.996
20180.6601.0481.0290.999
20190.7841.0241.0100.997
20200.9831.0240.9630.999
20211.0630.9711.0130.978
20221.1131.0451.0071.004
20231.2611.0121.0180.998
20241.3071.0210.9851.012

The insight here is a sentence: Death is deteriorating over 2018–2024 and nothing else moved. A harnessed model finds this one reliably. shock, recovery and volatility saturate at 100 % accuracy for every harnessed configuration.

The complex case — sc-c9d78b: four findings, three of them inside the noise

DeathIPCI (control, unchanged)
sys_cascade_drift_shock_2018, held-out split. Four planted findings on two benefit lines: Death drift 2016–2019 +0.05/yr, IP drift 2016–2019 +0.03/yr, Death shock 2020 ×1.3, IP shock 2020 ×1.2. CI and TPD were left alone. data/eval/heldout/sc-c9d78b/artifacts/ae_*_by_year.csv
Why this scenario is hardThe year-to-year Poisson noise on Death at these claim counts is about ±0.045; on IP, about ±0.026.
plantedwindowsizeis it visible?
Death shock2020×1.3yes — the only one the eye catches, at 1.294
Death drift2016–2019+0.05/yrwanders 0.925 → 0.996 → 1.070 → 1.030, then reverts; slope ≈ the noise
IP shock2020×1.21.127 — visible only against the drift underneath it
IP drift2016–2019+0.03/yragainst ±0.026 noise — one step smaller, same problem

Three of the four findings sit inside the noise floor. That is the point: a benchmark where every answer is obvious measures nothing an actuary cares about. The skill under test is deciding whether a gap between actual and expected is signal, which is the same move in lapse and persistency, expense A/E, mortality and morbidity studies, and reserve-adequacy work.

Two ways to ask: the model alone, or the model with a harness

Same scenario, same model, same endpoint, same sampler, one turn. Nothing differs except the harness.

A

The model alone (--harness off) — role, A/E definition, pattern taxonomy, JSON contract; the file list; the CSVs on disk. The model reads tables and answers.

B

The model with a harness (--harness full --tool-calls 4) — all of A, plus a deterministic evidence pack computed from the CSVs before the model is called, an explicit rules block for the taxonomy, and up to four sandboxed Python calls.

The evidence pack is where most of the value is. Real block from a published prompt — a CI volatility case where the line moved +0.44 in level over 2022–23 and the pack still calls it scatter-dominated, which is exactly the distinction the model has to get right:

[CI] mean A/E 0.975 | evidence profile: scatter-dominant: the largest single-year move
     exceeds the net level change ... Poisson z-scores are INVALID here
  trend: gradient 0.0275/yr, R2 0.19, total 0.247
  step:  +0.292 at 2022 (score 1.9)
  excursions (windows whose level differs from the rest, best first): 2022-2023 (2y) +0.436 score 4.9
  YoY sd: empirical 0.2435 vs Poisson 0.0305 -> overdispersion x7.97 (Poisson null INVALID on this line)
  onset: max 1yr move / excursion size = 1.22 (the whole excursion arrives in ONE year, then holds)
  yearly: 2021:0.88(z-4.4) 2022:1.41(z+16.2) 2023:1.24(z+9.8) 2024:0.89(z-4.7)

It ships with a reading guide that says what does not count: mild overdispersion is the normal texture of these scenarios, and tiny age or duration cells are unreliable however extreme their A/E looks. The discipline rules add the parts of the taxonomy a model cannot infer — that a trend which reverts at the end is still drift, that a one-year spike inside a swinging line is volatility, not drift.

Sandbox is advisory, not enforced

A tool call is run_sandboxed_python(): python -I -c with cwd at the scenario's artifacts/, 10 s timeout, 4 000-char output. There is no setrlimit, no network block, no filesystem jail. All 97 tool calls recorded across the campaigns stayed inside artifacts/ — but that was the model's choice, and a direct probe showed model-authored code could read elsewhere. Anyone rebuilding this should implement a real jail before running anything untrusted.

Who built the harness — and why it matters who

Neither subject model wrote its own harness. Both lineages were built by an operator-side agent running a third model, deliberately not one of the two being examined, so that no model tuned the exam it later sat. Each pass was one hypothesis and one edit, tested on the affected books, re-checked against the neighbours it could have disturbed, then kept or reverted with the code and prompt snapshotted — seven passes in all, 307 diary entries, 268 of them ending in a harness edit. The record is explicit that a human still chose which failures to pursue: the delegation covered effort, not judgement. The method behind this is written up here.

How an answer is measured

A unit is one planted control in one run; a control planted across a whole scenario counts as four units, one per benefit line. A unit is a hit only if benefit, pattern, window and direction all agree with the sealed manifest.

The ledger, with the arithmetic shownEvery published number in the repo is reproducible from these formulas by scripts/score_xam.py.
metricformulathe question it answers
accuracy strict recallstrict hits ÷ unitsdid it find what was there?
FP/claimfalse alarms ÷ claims that countedwhen it spoke, how often was it wrong?
precisionhits ÷ claims = 1 − FP/claimhow far can you trust it when it speaks?
tokensprompt + completion, from API usagewhat one answer consumes
wall timerequest sent → answer completewhat one answer costs in time

Accuracy and FP/claim have different denominators and never add to 100 %. Within the units ledger, accuracy + miss-rate = 100 %; within the findings ledger, precision + FP/claim = 100 %. Reporting only one of them hides half of what happens — and the two subjects in this study fail in opposite directions.

# worked example: Qwen3.8-27B on its own harness, held-out, 23 books × 3 runs
units 111 | strict hits 79 | false alarms 57 | claims that counted 79 + 57 = 136
accuracy   = 79 / 111 = 71.2 %
FP/claim   = 57 / 136 = 41.9 %
precision  = 79 / 136 = 58.1 %
median per answer: 6 714 prompt + 13 763 completion tokens · 813 s ≈ 13 min 33 s

Results

All figures on the same 23 held-out books, three runs each, so every row is like-for-like. sc-e6ffa4 is excluded from every cell (see the failure record). Precision is 1 − FP/claim.

Table 1 — five configurations, one examCost cells are medians per answer. Both models were served on the same slot with the same sampler.
configurationaccuracyFP/claimprecisiontokens / answermedian time
Qwen3.8-27B + its own harness71.2 %41.9 %58.1 %6 714 + 13 763813 s
Qwen3.6-27B + its own harness65.8 %38.7 %61.3 %6 603 + 5 779289 s
Qwen3.8-27B + Qwen3.6's harness70.3 %43.1 %56.9 %——
Qwen3.8-27B, no harness64.0 %65.7 %34.3 %——
Qwen3.6-27B, no harness59.5 %40.0 %60.0 %——
Accuracy and trust are a trade, not a ranking. Accuracy alone puts 3.8 first; precision reverses it. The unaided 3.8 cell at 34 % precision is the single most robust result in the dataset — the harness is what makes its output usable.

Where the models actually differ

Table 2 — held-out accuracy | FP/claim by scenario familyCells are accuracy | FP per claim. Full six-column grid including cross-loaded harnesses: EXPERIMENT_INDEX §6 Table A.
family3.6 no harness3.8 no harness3.6 + own3.8 + own
systemic coordinated multi-line event41 | 5254 | 6644 | 5156 | 51
shock75 | 2567 | 72100 | 8100 | 8
drift67 | 2567 | 7067 | 3367 | 40
mixed93 | 780 | 4887 | 2487 | 28
recovery IP termination100 | 0100 | 55100 | 0100 | 0
volatility100 | 0100 | 60100 | 57100 | 60
noise_trap lookalike; truth is volatility0 | 10017 | 9250 | 6250 | 70
CLEAN nothing plantedsilent ✓falsely accusedsilent ✓silent ✓
  1. All the recall difference lives in two families. Drift, recovery and volatility saturate for every harnessed configuration; the models separate on systemic (44 % vs 56 %) and both fall down on noise_trap (best case 50 %). The benchmark's discriminating power is concentrated in a minority of families — which is worth knowing before you quote a single blended score.
  2. No family where one model dominates on both metrics. 3.8 leads systemic by 12 points; 3.6 leads mixed by 6 with 7 % false alarms.
  3. The trap works. Unharnessed, 3.6 scored 0 % accuracy with 100 % FP/claim on noise_trap: it claimed anomalies and got every one wrong.
  4. The clean book separates character. Harnessed, both stay silent. Unharnessed, 3.8 falsely accused a portfolio with nothing planted in it.

A harness does not transfer

Exam B gave Qwen3.6-27B exactly Qwen3.8-27B's instrument — identical harness bytes (stats_pack.py 16e53e0ef0b097ab, run_zero_shot.py a4b967de975625f9), identical 3 866-character system prompt, identical books, runs and samplers. This is the only fully controlled comparison in the study.

Table 3 — one instrument, two models (123 units)The reliability difference disappears once both models are harnessed; the recall gap does not.
accuracyFP/claimprecision
Qwen3.6-27B78/123 = 63.4 %44.7 %55.3 %
Qwen3.8-27B85/123 = 69.1 %44.8 %55.2 %
difference+5.7 pts−0.1+0.1

Each model does best on the harness tuned for it: handing 3.8 the harness built for 3.6 cost it 0.9 accuracy points and 1.2 points of precision. Earlier in the campaign a cross-loading looked like an +8.3-point gain — at 9 books. It decayed to −1 by 23 and was withdrawn. The same wrapper was worth about 24 points of precision to 3.8 and about 6 points of accuracy to 3.6, because the two models lacked different things.

Over-claiming and mislabelling are different diseases

false positives = mislabels (a miss occurred) + over-claims (no miss occurred)
                = min(FP, misses)             + max(0, FP − misses)
Table 4 — where the false alarms come from123 units each. “Over-claims” are inventions with no corresponding miss at all.
configurationhitsmissesFPsover-claims
3.8 own harness853869+31
3.6 on 3.8's harness784563+18
3.6 own harness794450+6

3.8 emits 154 claims for 123 truths — 25 % more claims than there is truth — and 31 of its false alarms have no corresponding miss: pure invention. 3.6 emits 129 claims for 123 truths and only 6 inventions; its errors are almost entirely mislabels, meaning it sees the right line and picks the wrong word. That distinction is a practical instruction: over-claiming needs discipline (“do not report what is not there”), mislabelling needs vocabulary work. Applying precision suppression to 3.6 would be the wrong medicine — and that was confirmed experimentally. The 3.6-specific pattern-vocabulary edits worked; attempts to make 3.6 report less made it worse.

Tool use, asymmetrically

The harness offers up to four sandboxed Python calls. Qwen3.8 used them in about 24 % of held-out runs (17 of 72; 10 of 64 in the tuned corpus). Qwen3.6 used them 0 of 144 — never, after two dedicated attempts to activate the loop, including mandatory-use wording. Its reasoning is defensible: the evidence pack already contains the arithmetic. That asymmetry turned out to be a robustness advantage — the one hard failure in this study was a malformed tool request, which 3.6 cannot produce.

Cost, next to the score

One held-out exam, 72 calls, measured over the whole published corpora including retries.

Bar length is normalised per measure; the numbers beside each bar are the measurements. 3.6 reaches roughly 93 % of 3.8's accuracy for about a third of the time and tokens, at better precision. At median-per-answer rather than corpus totals the same comparison is about 6 hours versus about 16 hours. totals include every call actually made in those corpora, retries included

Cost is reported beside accuracy everywhere in this project because it changes the ranking — not because it is a footnote. A governance pack that quotes a model's accuracy without its per-answer cost is quoting half a number.

The optimism gap: −30 points, both models

Tuning scores rank models; they do not predict unseen performance. Both models lose roughly 30 points moving from the 23 books they were tuned on to 24 unseen books. This is a property of the benchmark and harness, not of either model — and it is the single most important methodological finding here.

The discipline it implies is boring and non-negotiable: tune on the optimization split, report only the held-out number. The held-out split here has been spent — those 24 scenarios are published with their answers, so they can never serve as an unseen exam for anything that reads this repo. A new exam needs new scenarios with fresh controls.

Not every miss is a model failure

Two apparent failures were audited back into the data, and both came back as benchmark problems.

sc-d72b95 — the unit is not identifiable

The missing unit is a Death drift planted at factor 0.05 over 2021–2024. Fitted from the data: slope +0.0253/yr, SE 0.0251, t = 1.01 against a critical value of 3.18 on 2 degrees of freedom. The 95 % confidence interval [−0.083, +0.133] contains zero and the planted value; the minimum detectable slope at 80 % power is +0.088/yr. The planted effect is about half of what four annual observations can resolve. 3.6 in fact finds all three identifiable controls in that book — it is at ceiling on the units the data support.

sc-f520e5 — genuinely ambiguous

The volatility is real (variance ratio F = 17.1 against a critical 5.41), but the same line also carries a genuine level excursion (0.95 → 1.34 → 0.80; mean 1.102 inside the window against 0.943 outside). The model's alternative “drift” reading is defensible from the data; the truth merely prefers the volatility label. Attempts to push the model toward the truth made the score worse, because they asked it to ignore a real feature.

An experience study has the same property on the other side of the table: some years you cannot tell, and the professional act is to say so. A benchmark that cannot record “undecidable” will train people to over-claim.

The one hard failure, kept on the record

sc-e6ffa4 never completed under one configuration and is excluded from every like-for-like cell rather than quietly patched. Counted as a failure the totals become 69 % | 45 % for 3.8's own harness and 64 % | 39 % for 3.6's on the 24-book view. The diagnosis is written up in full in the experiment index, with the fix deliberately not applied, so that a reader can argue with the evidence instead of with a summary. Silent patching is how a benchmark stops meaning anything.

Limitations, stated plainly

  • Two subjects, one serving stack. “The harness must be re-derived per model” rests on a 2 × 2 matrix of two models × two harnesses over 23–24 scenarios. That is a real signal at real replication cost, not a general theory of harness portability.
  • Synthetic data. Generated by a separate public project; no real policyholders, no real portfolio. Patterns are planted by design, so a “hit” means recovering a known signal — real A/E review involves judgement calls with no answer key, and this cannot measure that.
  • The harness is one turn with up to four analysis calls. Conclusions are about how much a static evidence pack, rules block and prompt are worth — not about long-horizon autonomy.
  • The sandbox is advisory. See the caveat above.
  • The held-out split is spent, and two units are unidentifiable.
  • Sampling randomness is controlled, not removed: temperature 1.0, three runs summed rather than median-and-spread, so run-to-run noise sits inside the totals.
  • No unit tests on stats_pack.py, score_xam.py, harness_gate.py or leakcheck.py. Their correctness rests on the runtime preflight gate, the freeze gate and the frozen corpora — which is why every campaign edit was validated by regenerating all 23 optimization packs and diffing them.

Replicating it

# stdlib only — no install step for the harness itself
bash scripts/harness_preflight.sh                          # leak + integrity gate, zero API calls
python3 scripts/stats_pack.py data/eval/optimization/<sc-id> --text   # print one evidence pack
python3 scripts/score_xam.py results/<corpus>/zero_shot --json-out /tmp/scores.json
python3 scripts/harness_gate.py results/<corpus>/zero_shot --split heldout --runs 3

# the pins behind every published number
generator commit 66a73d0 · seed 42 · scale full (250 000 policies)
claim targets 5000 / 12000 / 8000 / 15000 for Death / CI / TPD / IP
registry config/scenarios.yaml — 47 scenarios (23 optimization / 24 heldout)

Do not run generate_scenarios.py on a fresh clone

Assembly deletes and rebuilds data/eval/ and rewrites data/truth/. A published clone already holds the exact 47 scenarios every number here was measured on, so a --scale tiny smoke test replaces the real exam with a 5 000-policy one and re-seals the truth store. Undo with git checkout -- data/eval data/truth, or experiment in a scratch clone.

What a clone containsThe published corpora are the only byte-exact provenance this project has.
contentsizenote
code + docs + config + tests~0.6 MBeverything needed to run and score
results/ corpora + harness_snapshot/102 MBfrozen harness bytes behind every number
data/eval/**/artifacts/31 MBwhat the prompt and pack actually read
data/truth/236 KBplanted controls, published so a third party can score
clone total~135 MBlargest single file 0.41 MB
left out, regenerable5.2 GBdata/raw/, exposure and claims CSVs

What building it taught me

Five lessons that cost a rebuild each. They are the reason the harness, the scorer and the docs look the way they do — and they transfer to any measured AI task, not just this one.

1

Snapshot the harness before the first call, not after the last. Code and prompts are copied into results/<corpus>/harness_snapshot/ at the start of a campaign, because it is the only record of what was actually run. Numbers whose snapshot was not kept are numbers nobody can re-derive.

2

Two failure modes need two remedies. Of 3.8's 69 false alarms, 31 were pure invention; of 3.6's 50, only 6 were — its errors were almost all mislabels, the right line with the wrong word. The vocabulary work that helped 3.6 was the wrong medicine for over-claiming, and the attempts to make 3.6 report less simply did not work.

3

Tune on a split you are willing to burn. The tuning scores were 95.5 % and 97.7 %; the held-out scores 63.4 % and 69.1 %. The split is spent now and cannot be reused — which is the correct price, and the reason the next exam needs fresh scenarios.

4

A documented defect is more valuable than a silently patched one. The run that never completed under one configuration is recorded with its three concurrent causes and the repair was declined, so the number stays auditable; the parse fix that genuinely changed nothing was applied and labelled. Two units that are statistically unidentifiable are flagged as benchmark artefacts, not scored as model failures.

5

Cost is a first-class result. The two headline campaigns differ by 5.4 accuracy points and by 2.2× the tokens and 3.7× the wall clock, on one shared local server. With the cost column removed, the ranking would have been wrong for anyone with a queue.

Governance controls this benchmark provides

Sealed truth per scenario so answers cannot leak into prompts; per-pass manifests that make each published figure re-derivable; a scorer that counts false alarms rather than rewarding volume; frozen harness bytes stored beside the results; and an explicit statement of what the numbers do not support — no production claim, no real portfolio, no substitute for an actuary's judgement.

What this changes about how the rest is built

The finding that earns its keep is not a score, it is a governance rule: after any model change, re-measure the model-and-harness pair and re-tune on recorded evidence. Behaviour moves when a model is retrained even when its architecture does not, so a new model version inherits an unproven harness, not a working one.

That rule reaches every other repository in this portfolio. The underwriting engine's agent prompts and escalation thresholds are a harness; so is the compliance questionnaire logic; so is the analysis dashboard's commentary layer. Each of them ships with the same three requirements this benchmark learned to insist on: a ground truth that is generated rather than curated, a scorer that counts false alarms, and a snapshot of the exact bytes behind the claim. The interlock is on the ecosystem page; the six findings as a ledger are on the findings page.

The next extension is not a new benchmark. claims A/E is the first surface, not the limit: adding lapse, expense or reserve A/E means a new scenario family and a new section of stats_pack.py — not a new scorer, and not a new governance argument.
Notes and provenance
  1. Life_Insurance_Experience_Bench · README §3 — worked example from results/harness_final/scores.json and the per-run records.
  2. docs/MODEL_AND_HARNESS_EVOLUTION.md — §1.2 the four governance questions, §1.4 headline results, §3.2 transfer, §3.6 optimism gap, §3.7 over-claim decomposition, §3.10 identifiability, §3.11 the recorded failure.
  3. docs/EXPERIMENT_INDEX.md — §6 Tables A and B, §3 harness versions and hashes, §8 known failures. Cost totals from the published corpora, retries included.
  4. Synthetic_Life_Insurance_Data_Generator @ 66a73d0 — the generator behind every scenario: deterministic, seed 42, planted controls on actuals only. Charts on this page are plotted from the shipped ae_*_by_year.csv files, rounded to three decimals; the source CSVs are the authority.

Source repos pinned to the commits quoted: Life_Insurance_Experience_Bench 8067f00, Synthetic_Life_Insurance_Data_Generator 66a73d0. Both MIT-licensed.