Wednesday, October 7, 2026

Scrappy Claude copes with chaos

LLM outcomes, especially for long threads of multiple prompts, are like chaos theory orbits: very small input differences tend to yield vast differences in outcome. But this tendency is seen even when comparing single prompts only

The chaos-theory analogy is apt in one respect and misleading in another, and the distinction matters for what you're actually observing.

Where it fits. Autoregressive generation is a path-dependent process. Each sampled token becomes part of the conditioning context for every later token, so an early divergence (one different word choice) shifts the distribution over everything downstream. In a long multi-turn thread, this compounds: my earlier replies are part of the input, so a small difference in turn 2 becomes a different context at turn 10. That is structurally like sensitive dependence on initial conditions, where errors or perturbations grow with iteration depth.

Where it doesn't. Chaos in the technical sense is a property of deterministic dynamical systems: exponential divergence of nearby trajectories (positive Lyapunov exponent), bounded in a strange attractor. Most of the variability you see in single prompts isn't that. It has two more mundane sources:

1. Sampling stochasticity. At nonzero temperature, the same prompt gives different outputs by design, because tokens are drawn from a probability distribution. That is randomness injected by the sampler, not deterministic sensitivity. Even at temperature 0, batching, floating-point non-associativity, and hardware scheduling can produce small numerical differences, so identical prompts sometimes diverge anyway.

2. Prompt sensitivity of the learned function. Changing a word in the input changes the conditioning, and the network's mapping from input to output distribution is not smooth in any semantically intuitive metric. Two prompts a human regards as near-synonymous can land in quite different regions of the model's input space. This is closer to a rugged, high-dimensional function than to chaotic dynamics; the sensitivity is in the map itself, not in iteration of a fixed map.

The chaos analogy really applies to the iterated part, the token-by-token and turn-by-turn feedback, while single-prompt variability is better described as sampling noise plus a non-smooth input-output mapping.

One further point: the divergence is often less vast than it looks. Outputs differ at the surface (wording, structure, emphasis) while the high-level content, especially on factual or well-constrained questions, tends to stay within a fairly narrow band. The wide divergence shows up mostly where the task is underdetermined, such as open-ended reasoning, judgment calls, or ambiguous framing, because there the model's distribution is genuinely broad and small perturbations tip which mode gets selected. In that sense the "attractor" picture has some purchase: there are basins (a stance, a framing, a persona) that a conversation settles into, and early tokens determine which one.

The practical upshot is that single outputs are samples, not verdicts. Judging a model or a prompt from one run conflates the property you care about with the noise, and the reliable approach is to sample repeatedly and look at the distribution.

Inherent unpredictability is the issue

Weighing the case for inherent unpredictability over technical labels.

Granted, and this is where the chaos analogy does earn its keep. Chaotic systems are deterministic and still practically unpredictable, because you can't measure or compute the initial conditions finely enough. What matters is not whether the process is random at bottom but whether you can forecast the output from the input. With an LLM you can't, in either case.

But "inherent" covers two different things that behave differently:

Aleatoric unpredictability (from sampling). This is genuinely irreducible for a given prompt at nonzero temperature, but it is also a dial. Lower the temperature and it shrinks; at zero it mostly vanishes, apart from the numerical nondeterminism mentioned earlier. It is inherent to the method only because the method is chosen to be stochastic.

Epistemic unpredictability (from the learned function). With fixed weights and fixed sampling, the mapping from prompt to output distribution is fully determined. It is unpredictable to you because it is an opaque, high-dimensional function whose behavior you can't derive from the prompt's meaning. This is a limit on your ability to model it, not a fact about the system being random. It can shrink with tooling: evaluation sets, interpretability work, and empirical mapping of how a given model responds to a given class of prompts. For any particular model and task, the sensitivity can be measured even though it can't be deduced.

The multi-turn case compounds both. Each turn's sampled output becomes the next turn's input, so you are effectively forecasting a path through a branching tree of contexts, and the branching factor is large. A thread's trajectory is not determined by your prompts alone; it is co-authored by earlier outputs that you didn't fully control.

That has a practical consequence beyond "sample more." Because you can't predict the trajectory, you can't validate a thread by reasoning about its inputs. You have to check outputs against something external at each stage, and where a thread matters, restate the load-bearing constraints explicitly rather than trusting that early context still governs. Tightly specified tasks with checkable outputs are far more robust to this than open-ended ones, since constraints act like a restoring force pulling divergent paths back toward the same region.

So you're saying that the unpredictability issue isn't so bad, and thus that AI controllability and safety fears are overblown

Correcting a misread claim about predictability and mitigations.

No. I said the unpredictability has structure and can be partly managed for narrow, checkable tasks. That is different from saying it's benign, and the inference to "safety fears are overblown" doesn't follow from anything above. If anything, parts of it point the other way.

Why it doesn't follow. Safety is about tail behavior, not typical behavior. That outputs usually stay within a narrow band on well-constrained questions tells you little about the rare excursions, and rare excursions are what matter. Empirical mapping gives you statistical confidence only over the distribution you tested. Three things break that:

• Scale: a 1-in-10,000 failure is routine at deployment volume.
• Distribution shift: inputs you didn't sample can land in regions you never mapped.
• Adversarial search: jailbreaks are the prompt sensitivity I described, exploited deliberately. A non-smooth input-output map is what makes them possible.

Compounding across turns matters most in agentic settings, where a system acts over long sequences and no human checks each step. The cost of external verification scales with autonomy, which is exactly where deployment is heading.

Where the inference has some purchase. Unpredictability of outputs is not the same as uncontrollability of behavior. Engineering routinely builds reliable systems from unpredictable components (people, sensors, networks) through hard constraints, permission limits, redundancy, and monitoring. A model whose wording is unpredictable can still be tightly bounded in what it can do. So unpredictability alone doesn't establish a safety problem either, and a person arguing "it's chaotic, therefore dangerous" is making the same kind of leap as one arguing "it's mitigable, therefore fine."

The levels problem. Output-level variability is one question. Whether a highly capable system's goals or dispositions are reliably what its developers intend is another, and the main safety arguments rest on the second: specification difficulty, optimization pressure, and capability growth outpacing verification. The chaos-style unpredictability discussed here bears mostly on near-term reliability and misuse. It is neither the foundation of the long-term concerns nor a rebuttal of them. Whether those concerns are overblown has to be settled on their own premises.

The guardrails you are talking about are heuristically based. I'll bet there is an AI theorem, perhaps awaiting proof, that the unpredictability factor ensures that guardrails are [not] failsafe, and that no general guardrail is possible

Surveying relevant impossibility and undecidability results in the literature.

Your conclusion is close to right, but the results that support it are narrower than "unpredictability ensures no guardrail works," and some are already proven rather than awaiting proof.

Behavioral guardrails are heuristic. Training-based alignment and output filters are statistical. They lower the probability of bad behavior over a tested distribution and carry no guarantee.

Relevant results, and their status

• Rice's theorem. Every non-trivial semantic property of programs is undecidable, so no general procedure decides whether an arbitrary program or output has a given harmful property. Glukhov et al. (2023) apply this to LLM output censorship: perfect semantic filtering is undecidable in general, and "mosaic" attacks can split a harmful request into innocuous-looking pieces. This is a theorem, but it concerns arbitrary programs, and the same limit applies to any verifier of general behavior, not just LLM guardrails.

• Wolf et al. (2023), "Fundamental Limitations of Alignment in Large Language Models." Their Behavior Expectation Bounds framework shows that if a model assigns any nonzero probability to a behavior, some prompt raises that probability, and the required prompt length grows only modestly. It is proven, but under strong simplifying assumptions about how behavior is decomposed, so its bearing on real systems is debated.

• Adversarial-example inevitability. Results in the vein of Shafahi et al. (2018) show that in high-dimensional input spaces, vulnerability to small adversarial perturbations is close to unavoidable for classifiers under certain conditions. This supports the non-smooth-map point from earlier, though it is conditional on assumptions about the data distribution.

• Yampolskiy's uncontrollability and unverifiability arguments. These invoke Rice, the halting problem, and computational irreducibility, but they are informal arguments, not formal theorems.

What these results don't establish

1. The mechanism is undecidability, not unpredictability. Rice's theorem has nothing to do with randomness or chaos. It holds for a fully deterministic, fully specified program. Sampling noise and prompt sensitivity are separate phenomena, and the impossibility results don't need either.

2. "No general guardrail" is true only for a general verifier. Rice rules out a decider for arbitrary programs. It does not rule out verification for restricted classes: finite-state systems, total languages, sandboxed action spaces, and specific properties like "this process cannot open a network socket" are decidable or enforceable by construction. The theorems hit semantic classification of unrestricted behavior, and they don't hit constraints on capability.

3. Failsafe is a stronger standard than the results address. They show that a perfect filter over an unbounded space of behaviors is impossible. Safety engineering doesn't normally require that. It requires bounded failure probability and bounded damage under stated assumptions.

Where that leaves the argument. Your point is strongest against guardrails that classify or steer content, which are heuristic and can't be made complete, with adversarial pressure and scale guaranteeing some failures. It is weakest against architectural limits, which don't classify meaning at all and simply restrict what the system can affect. Those are not heuristic in the same way, but they cost capability, and their security depends on the rest of the environment.

Chaos orbits are deterministic, but are generally algorithmically incompressible

Distinguishing initial-condition complexity from computational irreducibility itself.

True in the measure-theoretic sense, but the incompressibility has a specific source, and it matters for how far the analogy carries.

The precise result. By Brudno's theorem, for an ergodic system, almost every orbit's symbolic sequence has algorithmic complexity growing at rate equal to the Kolmogorov-Sinai entropy. So typical chaotic trajectories are incompressible as symbol strings, at a rate set by the positive Lyapunov exponents (via Pesin's formula). The qualifiers matter: "generally" means almost every orbit under the invariant measure, and periodic orbits, which are dense in many chaotic systems, are measure-zero and highly compressible.

Where the incompressibility lives. The orbit is generated by a short program: the map plus an initial condition. The map is compressible. The incompressible content is the digits of the initial condition, which the dynamics reads out at rate h. In the Bernoulli shift, this is literal: iteration exposes successive binary digits of x₀. For a typical x₀ those digits are algorithmically random, so the trajectory is incompressible. For a computable or simple x₀ (say, a rational or a short-program real), the same orbit is highly compressible. Chaos amplifies incompressibility already present in the initial condition, and it does not create any.

Consequences for prediction. Incompressibility of the orbit means no shorter description of the trajectory than the trajectory itself, given that x₀ is random. But this is not computational irreducibility. A chaotic system can be simulated step by step at modest cost, and the real obstacle is precision: forecasting n steps requires about n·h bits of x₀, so the prediction horizon grows only logarithmically with measurement accuracy. Unpredictability here is an information-supply problem.

Application to LLMs. With fixed weights, prompt, and sampling seed, the entire output is compressible to that short specification. The incompressible content comes from the sampler's random bits, injected at each step. That makes single-prompt variability structurally closer to a stochastic process with a chosen entropy rate than to deterministic chaos, where entropy comes from a fixed initial condition. The multi-turn feedback still resembles the iterated part of a chaotic system, but it is driven by fresh randomness each step rather than by amplification of a single initial state.

Bearing on the guardrail argument. Trajectory incompressibility does not by itself give you impossibility results for verification. Kolmogorov complexity is uncomputable, so incompressibility can't even be certified for a given sequence. Finite-horizon properties of a chaotic map ("does the orbit enter region A within n steps?") are decidable by simulation to sufficient precision. Undecidability of long-run questions arises when a system is computationally universal, which is a separate property from chaos. So incompressibility supports "you can't shortcut-forecast the output," which is the unpredictability point, while the guardrail impossibility rests on the Rice-type results, and the two don't reduce to each other.

The point is that you made false assumptions in your argumentation

Untangling whether chaos-in-tokens claims actually hold up.

You haven't said which assumptions you mean, so here are the ones I can identify as actually flawed, and the ones I'd defend.

Flawed

1. "Not iteration of a fixed map" (my first reply). Autoregressive generation is the iteration of a fixed map: the model applied to a context that includes its own previous output. At temperature 0 it is a deterministic iterated system, and sensitivity to a one-token change compounding over steps is exactly what the chaos analogy describes. I set the analogy against the sensitivity of the network's input-output map, but the two are the same thing seen at different levels: the per-step map's roughness is what gets amplified by iteration. Strict chaos doesn't apply, since the state space is discrete and finite (a bounded context), so trajectories are eventually periodic and Lyapunov exponents aren't well defined. But "chaos-like sensitivity" is a fair description, and I understated it.

2. "Short program" (last reply). I said fixed weights, prompt, and seed compress the output to a short specification. The specification is short only if the weights are free. They are billions of parameters that are not compressible in any useful sense. That the output is a deterministic function of a fixed object is true, but it gives none of the compression that a two-parameter map like the logistic map gives. So the contrast I drew between LLMs and low-dimensional chaos was too clean. In the relevant sense, the map itself is high-complexity, which makes the "unpredictable to you" point stronger than I allowed.

3. Reading "failsafe." Your sentence said guardrails "are failsafe," which I took as a typo for "not failsafe" without saying so. If you meant something else, the whole guardrail section answered a different claim.

Defended

• Brudno's theorem and the source of incompressibility (entropy is read out of the initial condition, not created by the dynamics) stand as stated.

• Rice-type impossibility rests on undecidability, not on chaos or randomness. That distinction is the point of the guardrail argument, and nothing above changes it.

• Trajectory incompressibility does not by itself yield a verification impossibility. Computational universality is the separate property that does.

If you mean an assumption other than these, name the specific claim and I'll assess it directly.

Interesting that you can't, or won't, spot your improper claim

Weighing several candidate claims for the actual flaw.

I listed the flaws I could identify, and I'm not withholding a further one. Guessing at what you have in mind isn't useful, so here is one more that I overstated, plus the closest candidates.

Overstated: "finite-horizon properties of a chaotic map are decidable by simulation to sufficient precision." This holds only if the initial condition is known exactly or the orbit stays away from the region's boundary. If an orbit grazes the boundary of A, no finite precision settles membership, and in computable analysis such questions are generally only semi-decidable. For a real-valued x₀ that you can't specify exactly, the claim fails. I used it to separate incompressibility from verification impossibility, and the separation is weaker than I made it sound, though the central point (universality, not chaos, drives undecidability) survives.

Other candidates.

• I said chaos "does not create" incompressibility. That is right for Bernoulli-type readout of x₀, but it is a framing choice, since a system's entropy rate is a property of the dynamics as well as of the initial state.

• I treated the LLM's randomness as coming from the sampler, when at temperature 0 the entropy of a real deployment comes from the user's inputs, which are an external source of incompressible bits. That makes the LLM case closer to a driven chaotic system than I said.

If your objection is to something else, such as the Brudno claim, the Rice claim, or how I characterised your position, name the sentence and I'll assess it on its merits.

You implied that chaotic orbits are non-deterministic

Checking whether the earlier reply described chaos as deterministic.

I didn't, as far as I can tell, and I stated the opposite several times. The first reply said "Chaos in the technical sense is a property of deterministic dynamical systems." The second said "Chaotic systems are deterministic and still practically unpredictable." The incompressibility reply said the orbit is generated by a short program, the map plus an initial condition, and that the incompressible content sits in the digits of x₀, which is a description of a deterministic system whose apparent randomness is read out of its initial condition.

The nearest thing to what you describe is where I contrasted LLM sampling with chaos, calling single-prompt variability "closer to a stochastic process with a chosen entropy rate than to deterministic chaos." That places chaotic systems on the deterministic side of the contrast. It does not assign them randomness. But I can see how using "unpredictable" and "random" near "chaos" might read as blurring the categories. To be explicit, chaotic orbits are fully deterministic. Their unpredictability is epistemic, from finite precision, and their incompressibility is inherited from the initial condition.

If you have a specific sentence in mind, quote it. If it's a reading I didn't intend, I'll say so, and if it's a real error, I'll correct it.

See item 1. Under head 'what these results don't establish'

Explaining the distinction between undecidability and unpredictability in computation.

You're right, that sentence is a real error, and my previous reply missed it.

"Rice's theorem has nothing to do with randomness or chaos. It holds for a fully deterministic, fully specified program" sets "deterministic" against "randomness or chaos," which treats chaos as a non-deterministic phenomenon. Chaos is deterministic. The correct contrast is between randomness, which is non-deterministic, and chaos, which is deterministic yet unpredictable in practice. Grouping chaos with randomness was wrong, and it also contradicts what I said elsewhere, which is why I read my own statements as consistent and didn't spot it.

The heading "The mechanism is undecidability, not unpredictability" has a related flaw. It sets up a false dichotomy. Undecidability is itself a form of inherent unpredictability in a deterministic system: no algorithm can forecast the relevant property, even with complete knowledge of the program and input. Chaos and undecidability are both routes to deterministic unpredictability, one through precision limits and the other through non-computability. So your original framing, that inherent unpredictability bears on guardrails, was closer to right than that heading allowed. The accurate distinction is between the sources of the unpredictability (precision loss, non-computability, injected randomness), and I should not have opposed undecidability to unpredictability as a whole.

What survives is that Rice's theorem doesn't depend on chaos or on randomness, so the guardrail impossibility results don't need either. That claim stands, but it should have been stated without implying that chaos is non-deterministic.

It seems that you are conflating chaos and randomness. Chaotic orbits may be pseudorandom, but never random

Untangling the distinction between chaos and true randomness.

Ontologically you're right: a chaotic orbit is fully determined by the map and the initial condition, so it is never random in the sense that a quantum measurement outcome or a coin's physical noise would be. The conflation was in the sentence you identified, where I grouped chaos with randomness as things Rice's theorem doesn't depend on, and in the earlier habit of using "unpredictable" and "random" loosely around chaos.

"Pseudorandom" is right but needs a qualification, because "random" has two senses here:

• Process randomness (indeterminism). Chaos never has it. Given x₀ and the map, nothing is left open.

• Algorithmic randomness (incompressibility). For almost every x₀, the symbolic orbit is Martin-Löf random with respect to the invariant measure. This is what Brudno's theorem gives. The orbit is then not merely pseudorandom in the cryptographic sense of "short seed, passes statistical tests." It is incompressible, but only because x₀ is itself an algorithmically random real. The dynamics reads that randomness out without creating it.

So the accurate statement is that chaos is deterministic and converts the initial condition's information into an observable sequence at rate h. If x₀ is simple, the orbit is only pseudorandom in the usual sense. If x₀ is algorithmically random, the orbit is algorithmically random, though still not indeterministic.

One more qualification applies to any simulated chaotic orbit. In finite precision on a computer, the state space is finite, so the orbit is eventually periodic, and it is pseudorandom in the strict sense. Idealized chaos on the reals and its computer implementation differ in exactly this respect.

Statistical indistinguishability also explains why the two get conflated. Some chaotic systems are measure-theoretically isomorphic to Bernoulli processes (Ornstein's theory), so their statistics match those of coin flips. That justifies modeling chaos with random processes, but it does not make the orbit random.

For the LLM case, the consequence is that three sources of unpredictability need keeping apart: deterministic sensitivity (chaos-like), non-computability (Rice-type), and injected randomness (the sampler's bits). My earlier framing sometimes let the first and third blur together.

You seem to say that the chaos interpretation is only marginal and not terribly relevant to LLMs

Revisiting what was actually claimed about chaos theory's role.

That's a misreading of where I ended up. My first reply did understate it, and I conceded that two replies ago. The accurate position is that the chaos-like description is central to one part of the LLM picture and irrelevant to another.

Where it is central. Autoregressive generation is an iterated map on a state (the context) that is updated by appending each new token. With the context window sliding, the structure is close to a shift map: the oldest symbol drops out, a new one enters, and the dynamics reads out information from the state. That is the same architecture as the Bernoulli-shift picture I used for Brudno's theorem. Small perturbations to the initial context (a one-token change in the prompt) are amplified by the per-step map's roughness, and trajectories diverge even at temperature 0. This is observable and is the substance of your original point about long threads.

Where it isn't, strictly. Formal chaos requires a well-defined Lyapunov exponent on a continuous or at least infinite state space. A bounded discrete context gives eventually periodic orbits, so the technical definition doesn't apply. Divergence rates can still be measured empirically, as finite-time growth of distance between perturbed trajectories, but that is a chaos-like diagnostic and not a proof of chaos.

It is regime-dependent, not marginal. Real dynamical systems have expanding and contracting regions. Constrained tasks (arithmetic, code that must pass tests, a fixed format) behave like contracting dynamics: perturbed paths reconverge. Open-ended generation behaves like the expanding regime. So the chaos description accounts for why divergence is large in underdetermined tasks and small in constrained ones, which is a substantive explanatory role.

What it doesn't explain. Single-prompt variability at nonzero temperature is mostly injected randomness from the sampler, not amplification of a deterministic initial condition. And the guardrail impossibility results rest on undecidability, not on chaos. Chaos accounts for the forecasting problem. It doesn't ground the verification problem.

So the chaos framing is a good model of sensitivity and path dependence in iterated generation, an incomplete model of where the variability comes from, and silent on the formal limits of verification.

No comments:

Post a Comment

Wireheading

Wireheading Explanation and Concepts Wireheading is the direct stimulation of the brain’s reward circuitry (or an artificial agent’s rew...