← Lab /Software

Language models fail to judge command safety without machine state information

LLMs cannot reliably decide safety of industrial commands without receiving current system state

Software arXiv 18 Nov 2026 Measurement Prototype evidence Threat model

Published as “The Limit Is in the Input, Not the Model: State-Dependent Command Safety in Natural-Language Interfaces to Industrial Controllers”

Why it matters

Industrial deployments must incorporate a trusted, real-time read of machine state before allowing LLM-generated commands; text-only guards cannot ensure safety.

Summary

Adding machine-state information enables large language models to correctly distinguish safety-critical commands that require opposite decisions, achieving up to 13 out of 15 correct paired decisions. Without state, even when rules are provided, all models fail to separate the cases, scoring zero pairs. The evidence comes from a controlled audit on 15 command pairs across three PLC systems using four models, showing raw accuracy improves but paired scores remain low without state. The study is limited to a small author-built test set and does not evaluate real or simulated equipment.

What they found 2

  1. Mistral 24B solves 13 out of 15 paired state-dependent cases when machine state is supplied

    “Mistral 24B solves 13/15 pairs, Qwen 14B 11/15, Mistral 7B 4/15 and Llama 8B 0/15.”

  2. Without machine state, none of the models reliably distinguish opposite-label pairs even with rules

    “Without machine state, none reliably distinguished the paired cases, even with the rules.”

Caveats 4

  • Mistral 7B with state still only achieves 28/50 raw accuracy and denies 30% of instances, showing state does not guarantee perfect performance.
  • Llama 3.1 with state attains 34/50 accuracy and a 94% deny rate, indicating high false-positive blocking of safe commands.
  • This author-built test set is a controlled diagnostic, not a deployment benchmark or prevalence estimate.
  • State inputs are clean, complete, current and explicitly named. Stale, partial, noisy inputs and inputs with irrelevant variables are untested.

What’s new here 4

  • Introduces an answerability audit that checks whether a model receives the information needed for a safety decision.
  • Uses paired command instances with opposite safety outcomes to measure state-dependent decision making.
  • Demonstrates that providing machine state, not just rules, is necessary for correct safety judgments in LLM-based interfaces.
  • Provides a reusable evaluation protocol (state ladder) for industrial controller command safety.

Threat model stated by the source

Adversaryoperator, automated agent or attacker submitting commands
Capabilitycan issue commands whose safety depends on missing machine state
Assumescontroller and hardware interlocks behave as specified; network attacks, physical access and service-denial attacks are out of scope