Explaining Process, Instrument and Data-Path Causes in Plain Language: Local Language Models That Use Detector Decisions

Oleksandr KlymenkoarXiv 2026

TL;DR

When an industrial sensor suddenly spikes, is the physical process actually changing, is the sensor broken, or did a software bug mangle the data along the wire? Rather than asking an LLM to play detective—a job at which local models fail surprisingly often—this paper proposes a strict division of labor: let classical statistical algorithms make the diagnosis, and use local LLMs strictly to translate that math into plain-English explanations, policed by deterministic safety rules.

What Problem Does This Paper Address?

Picture an operator watching a dashboard of tank levels and vessel temperatures at 2:00 AM. When an alarm goes off, classical anomaly detectors spit out terse, mathematical fragments—things like "CUSUM alarm" or "level moved 7.43 $\sigma$ within five samples." An operator needs to know the root cause (process change, instrument fault, or data-path corruption) and what to check next, ideally in a clear sentence they can read in passing.

Large language models are great at turning cryptic fragments into fluent prose. However, in industrial monitoring, an unchecked LLM is a liability: it might hallucinate a measurement that never happened, blame the wrong cause with complete confidence, or hang the system if the model server crashes. The challenge is getting the readability of an LLM without sacrificing the speed, mathematical rigor, and uptime of traditional engineering.

Methods

The author introduces an explain-only architecture built on a strict separation of powers:

Figure 1. Division of roles. The detectors of [4] decide the cause; the model receives the decision and its evidence and writes the explanation; rules R1–R6 admit it or replace it with a template, which is also used when the model call fails. The cause shown to the operator is always the detectors’.
  1. Deterministic Triage: Streaming statistical detectors analyze the raw channel in constant memory and lock in the verdict (process, instrument, data-path, or undetermined) along with structured evidence lines.
  2. Local LLM Explainer: A local model (3B to 32B parameters, served via Ollama behind Spring AI or LangChain4j) receives the decided cause, the evidence, and a list of permitted next checks. Its only job is to return a short JSON explanation.
  3. Six Mechanical Grounding Rules: Instead of using a second LLM to check for hallucinations, the system uses fast, deterministic code to check six rules: valid JSON format (R1), exact match with the decided cause (R2), every number in the text must exist in the input evidence—accounting for rounding (R3), the recommended check must match the cause (R4), no lexical contradiction asserting rival causes (R5), and a maximum length of 80 words (R6).
  4. Bounded Fallback: Beneath a reliability guard that caps timeouts and retries, if the LLM breaks any rule—or if the server fails—the system instantly swaps in a safe, deterministic text template.

Datasets

No new datasets were created; instead, the paper evaluates its system on synthetic streaming telemetry runs from a previously published triage benchmark (alxkm/telemetry-triage). The author sampled 260 test incidents (spanning regulated tank levels and heated vessel temperatures across 20 fault types) where injected ground-truth faults were paired with detector decisions. Notably, the detectors were 90% accurate on this set, meaning 26 incidents carried an upstream misdiagnosis. Prompts and rules were frozen beforehand using 65 separate development incidents.

Key Insights and Ideas

  • LLMs are poor telemetry detectives: Even when handed the exact same summarized evidence as the statistical detectors, local LLMs couldn't match them—and throwing a bigger 32B model at the problem didn't beat a tiny 3B model. Why? Classical detectors bake in domain physics (calibrated noise, plausible rates of change) that models cannot reverse-engineer from summary lines alone.
  • Raw numbers break small models in systematic ways: When given raw time-series readings without detector summaries, two models (llama3.2:3b and qwen2.5:7b) essentially gave up and guessed "instrument fault" on ~99% of all incidents.
  • Safety by construction, not compliance: Prompted with explicit rules, the models rarely broke them. Still, the mechanical gate guarantees that even if a prompt or model version drifts tomorrow, an invented number or altered verdict cannot reach the human operator.
  • Scaling buys specificity, not rule-following: Smaller models passed the safety gate easily by writing generic textbook definitions. Larger models actually wove specific numbers from the evidence into their sentences—at the cost of much higher latency.

Key Results

  • Gate & Faithfulness: Across 1,300 explanation calls, 1,296 (99.7%) passed all six grounding rules (the only 4 rejections were JSON syntax misses by mistral:7b). In a manual audit of 50 accepted explanations, 46 were semantically faithful; all 4 unfaithful ones came from qwen2.5:7b misstating specific sensor failure mechanisms.
  • Specificity vs. Latency: Quoting actual evidence measurements jumped from 13.8% (llama3.2:3b at 0.23 s median latency) to 44.9% (mistral:7b at 0.61 s) and 64.6% (qwen2.5:32b at 14.7 s). Spring AI and LangChain4j performed identically behind the port.
Figure 3. Attribution by the models themselves (X2): from the detectors’ evidence without their verdict, and from the raw readings, against the detectors’ decisions on the same 260 incidents (dashed). Whiskers are 95 % percentile-bootstrap intervals.
  • Attribution Gap: Asked to diagnose causes themselves, models scored 46.5%–59.2% from detector evidence and 5.4%–41.2% from raw readings, trailing the deterministic detectors' 90.0%. Models especially struggled with data-path corruption (20%–57% accuracy vs. the detectors' 100%).
  • Resilience: Under simulated server outages (HTTP 503s, 429 rate limits, and 70-second hangs), 100% of calls cleanly degraded to the fallback template within 10.3 seconds worst-case.

Limitations and Future Work

  • Form vs. Meaning: The grounding rules verify that a number exists in the facts, not that it is used sensibly. For instance, two explanations passed the gate while misinterpreting a 40-second trigger-to-decision timestamp gap as the duration of a stuck sensor value.
  • Synthetic Scope & Model Scale: All tests used single-channel synthetic data and small-to-medium open models running locally. Real industrial plants have rich side-channel context (like maintenance logs or adjacent sensors) where larger hosted models might genuinely shine.
  • Human Evaluation: Semantic faithfulness was audited by a single rater (the paper's author), and actual usefulness to working control-room operators remains to be tested in the field.

Summary updated

BibTeX
@misc{klymenko2026explaining,
  author = {Oleksandr Klymenko},
  title = {{Explaining Process, Instrument and Data-Path Causes in Plain Language: Local Language Models That Use Detector Decisions}},
  year = {2026},
  eprint = {2611.35247},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.35247},
}
Figure