Stochastic LLM Agent vs. Deterministic Coded System

Stochastic LLM Agent vs. Deterministic Coded System: Comparative Failure Mode Analysis on Identical Unvalidated Inputs

2026-05-18 · agentic-ai llm-reasoning security-risk ai-architecture formal-reliability · medium · source → · wiki →
key claims
  1. Stochastic multi-step Large Language Model systems are more likely than deterministic coded systems to continue operating after an invalid or attacker-shaped input while silently shifting toward a semantically wrong task state, because external text can be reinterpreted as instructions instead of rejected as malformed inputAnthropic (2026)Abdelnabi et al. (2023)Yi et al. (2025)Microsoft (2025)
  2. Deterministic coded systems usually expose the same bogus-input failure through explicit reject, exception, timeout, or replayable wrong-state behavior, which makes the local failure path easier to reproduce and inspect even when the wider service graph is complexAvizienis et al. (2004)Ewaschuk (n.d.)Mitchell (2026)
  3. Repeated-run evidence shows that supposedly deterministic Large Language Model settings still produce materially different outputs and assessment paths on identical prompts, which weakens exact replay of one invalid-input failure path relative to deterministic softwareAtil et al. (2025)Denisov-Blanch et al. (2025)Mitchell (2026)
  4. The most distinctive agent-only failure mechanisms in the reviewed evidence are semantic drift, same-model verifier collapse, and tool or memory-mediated error propagation, because the system can keep acting on a corrupted latent task representation instead of stopping at the original boundary violationHuang et al. (2024)Mitchell (2026)Abdelnabi et al. (2023)Yi et al. (2025)
  5. Production incident evidence from Large Language Model serving and recent agent-observability research together support an inferential conclusion that stochastic systems need richer observability than conventional service monitoring aloneRanganathan et al. (2026)Dong et al. (2024)
  6. Both deterministic and stochastic systems fit the same abstract fault, error, and failure chain, but the practical asymmetry is where failure becomes visible: deterministic systems more often fail at the execution boundary, while stochastic systems more often fail later at the semantic interpretation layerAvizienis et al. (2004)Heim et al. (2025)Abdelnabi et al. (2023)Yi et al. (2025)
  7. Large deterministic systems can still become globally opaque at scale, but current evidence does not support collapsing the two classes into the same failure model, because local replayability remains stronger on the deterministic side even when global explanation remains hardEwaschuk (n.d.)Mitchell (2026)

Research Question

How do the failure modes of a stochastic multi-step Large Language Model (LLM) agent, meaning a tool-using system whose action path can vary across runs, differ fundamentally from the failure modes of a deterministic coded system when both process the same unvalidated input?

Findings

(Populated from §6 Synthesis above.)

Executive Summary

Stochastic multi-step Large Language Model agents fail differently from deterministic coded systems because the same unvalidated input can be absorbed as plausible context, branch differently across runs, and propagate a semantically wrong task state without an immediate hard failure. Deterministic coded systems can still be wrong or become globally opaque at production scale, but their local bogus-input failures are more often explicit, replayable, and classifiable through conventional fault-error-failure models and monitoring signals. Production evidence from Large Language Model serving shows that even when incidents are detected automatically, mitigation remains manual and slow, which is consistent with stochastic systems needing richer observability because ordinary operational telemetry does not fully capture their failure mechanisms. Current evidence supports a narrower asymmetry: stochastic systems are more likely to fail silently and variably at the semantic layer, while deterministic systems are more likely to fail loudly or at least reproducibly at the execution boundary.

Key Findings

  1. Stochastic multi-step Large Language Model systems are more likely than deterministic coded systems to continue operating after an invalid or attacker-shaped input while silently shifting toward a semantically wrong task state, because external text can be reinterpreted as instructions instead of rejected as malformed input.
  2. Deterministic coded systems usually expose the same bogus-input failure through explicit reject, exception, timeout, or replayable wrong-state behavior, which makes the local failure path easier to reproduce and inspect even when the wider service graph is complex.
  3. Repeated-run evidence shows that supposedly deterministic Large Language Model settings still produce materially different outputs and assessment paths on identical prompts, which weakens exact replay of one invalid-input failure path relative to deterministic software.
  4. The most distinctive agent-only failure mechanisms in the reviewed evidence are semantic drift, same-model verifier collapse, and tool or memory-mediated error propagation, because the system can keep acting on a corrupted latent task representation instead of stopping at the original boundary violation.
  5. Production incident evidence from Large Language Model serving and recent agent-observability research together support an inferential conclusion that stochastic systems need richer observability than conventional service monitoring alone.
  6. Both deterministic and stochastic systems fit the same abstract fault, error, and failure chain, but the practical asymmetry is where failure becomes visible: deterministic systems more often fail at the execution boundary, while stochastic systems more often fail later at the semantic interpretation layer.
  7. Large deterministic systems can still become globally opaque at scale, but current evidence does not support collapsing the two classes into the same failure model, because local replayability remains stronger on the deterministic side even when global explanation remains hard.

Assumptions

Analysis

The most strongly supported parts of the evidence base are repeated-run Large Language Model nondeterminism, prompt-injection and indirect prompt-injection vulnerability, and conventional software-operations expectations that bogus-input failures surface through explicit monitoring and root-cause repair. The comparative conclusion therefore rests less on one direct benchmark and more on how these evidence families fit together: stochastic agents add path variance and a tendency to absorb semantically misleading input as plausible context on top of ordinary software failure, while deterministic systems keep stronger local replayability even when they become globally hard to understand. A plausible rival interpretation is that large deterministic distributed systems are already so opaque that the comparison gap disappears in practice. The reviewed evidence does not support that stronger claim, because the operational difficulty of understanding the whole deterministic system is not the same as having one input induce different failure paths across identical reruns or being silently reinterpreted as instructions.

Risks, Gaps, and Uncertainties

Open Questions


sources

Consulted:

Identified but not consulted:


cites
cites Adversarial Input Propagation Through Multi-Step Tool-Using LLM Systems: Error Amplification Across Verification and Strategy-Selection Phases
cites Formal Generalisation Bounds for Tool-Using LLM Systems When Tools Return Non-Deterministic Outputs Outside the Training Distribution
cites Practical Limits of Large Language Model (LLM) Determinism: Temperature Zero, Fixed Seeds, and Constrained Prompts
cites Are Multi-Step Large Language Model-Based Systems Inherently Less Explainable Than Equivalently Scoped Deterministic Software Systems?
related (frontmatter)
related How do coupled enterprise risks manifest differently in agentic Artificial Intelligence (AI), meaning autonomous multi-step systems, versus generative AI deployments, and what integrated risk frameworks best predict cascading failures?
related Governance Policy Application: Deterministic Requirements vs Stochastic Large Language Model (LLM) Elements
related Architectural patterns for reliable organizational process identification, selection, and execution in Artificial Intelligence (AI) agent systems

Connected items

Loading…

View full knowledge graph →