Prompted LinesAI guidance for insurance

Practice · Actuaries & analysts · ~15 min

Technical deep dive

For readers who will build with these tools, not just chat with them. Assumes statistics and code comfort (GLMs, R/Python) but zero LLM background.

1. What an LLM actually is, for a statistical audience

An LLM is a very large neural network (a transformer) trained to predict the next token (~¾ of a word) given all preceding tokens, over trillions of words of text. Post-training steps (instruction tuning, reinforcement learning from feedback) shape this raw predictor into an assistant that follows instructions.

Three consequences follow directly from this design, and they explain almost every strength and weakness you'll observe:

  1. It is a conditional distribution over text, not a knowledge base. Output is sampled, so it is stochastic: the same prompt can yield different answers. A temperature parameter controls sampling dispersion. Even at temperature 0, exact reproducibility across model versions is not guaranteed, a material point for actuarial documentation (§6).
  2. Fluency and truth are different objectives. The model was optimized to produce plausible text. When it lacks knowledge, it produces plausible text anyway: a hallucination. Frequency varies by task: low when summarizing a document it's been given, higher when recalling specific facts (citations, table values, policy language) from memory.
  3. Parameters encode compressed knowledge with a training cutoff. The model knows nothing after its cutoff and nothing about your company unless you put that information in the prompt. This is the single most important practical insight: an LLM is only as good as the context you give it.
GLM / GBM (your world)LLM
InputStructured featuresFree text (and images/PDFs)
OutputPoint estimate / scoreGenerated text (or structured data on request)
DeterminismDeterministic at scoringStochastic
InterpretabilityCoefficients, SHAPLargely opaque; you validate outputs, not weights
Failure modeMiscalibrationConfident fabrication
ValidationHoldout metricsTask-specific evals (§5)

2. Core concepts, precisely

3. Good at / bad at, calibrated for actuarial work

Strong today: use freely, with review

Weak or dangerous: control tightly

3A. AI agents around pricing and costing model development

The right mental model is an agent-supported model-development lifecycle, not an autonomous pricing actuary. The predictive model can still be classical and deterministic. Agents accelerate the work around it: gathering evidence, producing reproducible code, running independent challengers, testing, documenting, and monitoring.

Keep costing separate from transaction pricing. The costing layer estimates expected loss and risk costs. The pricing/rater layer then adds expenses, commission, reinsurance, capital and profit provisions, rules, and permitted underwriting judgment. An agent may trace and reconcile those components; it should not silently mix them or choose assumptions.

Agent roleWork it can accelerateControl that remains human
Data stewardProfile data, reconcile premium/exposure/loss totals, identify missingness, leakage, duplicates, and policy-year contamination; generate repeatable QA artifactsData suitability, limitations, on-leveling, trend periods, large-loss and catastrophe treatment
Experience analystRefresh experience studies, loss-cost trends, mix shifts, retention/conversion, expense and commission summaries, benchmark researchSelection of assumptions, credibility, external benchmarks, and actuarial judgment
Model workersBuild independent GLM, GBM residual, frequency/severity, current-plan relativity, and scenario challengers from one approved specificationCandidate methods, permitted variables, constraints, and interpretation of signal
Validation workerRun one frozen out-of-time holdout; compare deviance, calibration, stability, segment impacts, residuals, and sensitivity; reconcile predictions to dollarsIndependent review, fairness/proxy assessment, materiality, and model selection
Rater engineerTranslate approved factors into code, schemas, parameter tables, UI inputs, test cases, and parallel-run comparisons against the current raterRate level, relativities, implementation approval, and production release
Documentation workerDraft model documentation, filing checklists, change logs, test evidence, assumption inventories, monitoring packs, and underwriter guidanceActuarial communication, regulatory representations, sign-off, and monitoring response

The useful multi-agent pattern

Freeze the data snapshot, holdout, metric definitions, and model charter first. Then fan out independent workers by model formulation or task. One agent builds the baseline GLM, one tests a GBM residual, one builds frequency/severity, one researches peer filings, and one validates every output. The orchestrator compares artifacts; it does not average recommendations, and no builder grades its own model.

This pattern compresses iteration while preserving effective challenge. Deloitte describes agentic pricing analysis that reverse-engineers complex regulatory manuals and reduces competitor analysis from weeks toward minutes (Deloitte). Aviva is testing an Actuarial Agent to enhance pricing tools with new insights and optimize existing model code in Global, Corporate & Specialty business (Aviva/hx). Hyperexponential demonstrates agents generating pricing schemas, rating logic, interfaces, parameter tables, profiling suggestions, and documentation (hx product demonstration; vendor-reported).

Non-negotiable controls

Thin specialty data raises the value of workflow automation but lowers the credibility of unconstrained model search. Agents should help the actuary test what the current plan misses, document uncertainty, and maintain repeatable diagnostics; they should not manufacture confidence from sparse claims. The SOA's 2026 agentic-workflow research scope includes rate development, assumption development and benchmarking, model governance, documentation maintenance, and regulatory reporting, with explicit attention to reliability, explainability, bias, and human oversight (SOA Research Institute).

4. A hands-on learning path (4–6 weeks of spare-time effort)

Stage 1: Fluent prompting (week 1). Everything in Hands-on use, practiced daily on real work. Deliberately try to make the model hallucinate: ask for citations to actuarial papers, then check them. Calibrating your skepticism is the point.

Stage 2: API basics (weeks 2–3). Call a model from Python/R rather than a chat window: system prompts, temperature, structured JSON output against a schema. First project: extract a standardized claims table from three differently-formatted loss-run PDFs, with schema-constrained output, and reconcile totals against the source in code.

Stage 3: Evaluation discipline (weeks 3–4). Before trusting any pipeline, build an eval set: 30–100 examples with known correct answers, a scoring script, and a tracked accuracy metric. This is the LLM analogue of a holdout sample, and the skill that separates production work from demos (§5).

Stage 4: RAG and agents (weeks 5–6). Build a small RAG prototype over a document set you know well (e.g., your own past reports), so you can judge retrieval quality personally. Then experiment with tool use: an assistant that answers loss-development questions by writing and running code against a triangle you supply.

Stage 5: ongoing. SOA/CAS materials (see Resources), and pick one real workflow to instrument end-to-end with a colleague as reviewer.

5. Validation: treat LLM pipelines like models, because they are

For any LLM use beyond personal drafting assistance, apply model-risk thinking:

  1. Define the task narrowly and the failure cost. "Summarize claim files" is not evaluable; "extract these 8 fields from loss runs with ≥98% field-level accuracy" is.
  2. Build a labeled eval set from real data (with permissions). Measure before deploying, and re-measure on every model version change, prompt change, or vendor update. Model upgrades silently change behavior; pin model versions and re-run evals on upgrade.
  3. Measure the right failure modes: field-level accuracy for extraction; faithfulness (does every claim in the summary trace to the source?) for summarization; retrieval hit rate and answer groundedness for RAG.
  4. LLM-as-judge (using a second model to grade outputs) scales evaluation cheaply but inherits its own biases; calibrate it against human grading on a subsample first.
  5. Keep humans in the loop proportionate to consequence, and monitor for automation bias: spot-audit accepted outputs, not just rejected ones.
  6. Log everything: prompts, model version, outputs, reviewer decisions. This is your exam-readiness evidence under the NAIC bulletin regime (see Governance).

6. Professional standards: how this touches your credential

Nothing about the ASOPs is suspended because a model drafted the text or the code:

The rule that resolves 90% of questions

Treat the LLM as a bright but unlicensed junior analyst. You would never sign work such an analyst did unreviewed; the same rule applies here.

7. Data handling rules that are never optional

Full rules are in the policy template under Governance; these are the ones analysts hit daily.

← Agentic work Resources →