LodgeiT .ORG

← Blog

Architecture 2026-11-08 · Updated 2026-11-10 · 9 min read

Riddled basins — why you cannot prompt-engineer your way to deterministic accounting

A physics paper published this week in Nature Machine Intelligence finds that the outcome of training a neural network can depend on differences too small for extra precision to remove. Here’s what that does and doesn’t mean for financial software — and why LodgeiT Labs keeps probabilistic AI on one side of a hard boundary and the law on the other.

The “next model will fix it” objection

Whenever we walk practitioners or engineers through the LodgeiT Labs stack, the same objection eventually comes up:

“We understand why you built SWI-Prolog calculators and Logical English rules today. LLMs hallucinate denominators and invert statutory anti-avoidance tests. But frontier models are getting better every six months. Once we have deterministic hardware kernels, temperature = 0, pinned seeds, and models fine-tuned on the legislation, won’t the neural network just compute the return directly?”

It’s a reasonable question. It assumes AI unpredictability is an engineering blemish — stochastic data shuffling, floating-point noise, not enough training — and that tightening the tolerances will eventually make a neural network behave like a calculator.

New research suggests at least part of that assumption is wrong.

In a paper published in Nature Machine Intelligence (“Fractal basin geometry and the limits to predictability and reproducibility in deep learning”, DOI: 10.1038/s42256-026-01336-3), PhD researcher Andrew Ly and Professor Pulin Gong of the University of Sydney’s School of Physics report that unpredictability in deep learning training isn’t just a hardware quirk. In the settings they studied, it comes from the geometry of how gradient-based learning works — and more precision doesn’t remove it.

A basin with no inside

To see what Ly and Gong found, think about how a network is trained. An optimiser moves through a huge landscape of millions or billions of parameters, adjusting weights step by step to reduce error.

Mathematicians describe this landscape as a map divided into basins of attraction. Each possible starting configuration is a point on the map, coloured by where training ends up. If blue is Outcome A and orange is Outcome B, an ordinary basin has an inside. Near the border, a small nudge can tip you from blue to orange. But deep inside the blue region, a whole neighbourhood of nearby starting points ends up in the same place. Increase your precision and you can stay clear of the border.

Ly and Gong trained roughly 500,000 neural networks across image recognition and text-processing architectures, in fully deterministic computing environments — removing external randomness such as data-presentation order and hardware variation.

They report that, in many of these settings, the basins don’t have a safe inside. They are organised as fractals known in dynamical systems theory as riddled basins.

The geometry of a riddled basin. In a riddled landscape, every point that leads to Outcome A sits arbitrarily close to a region — of positive volume — that leads to Outcome B. However far you zoom in, blue is shot through with orange.

The headline numbers are striking:

  • Ten billion times more precision bought nothing. In one larger-network experiment, increasing the precision of the starting conditions by ten orders of magnitude ($10^{10}$) produced no measurable improvement in reproducibility.
  • A single-bit change. Changing a network’s initial configuration by the smallest amount a computer can represent — one least-significant bit — sent training to a different final configuration in about 48% of cases.
  • A capability–reproducibility trade-off. The settings that help networks learn complex patterns well, such as higher learning rates, were the same ones that pushed training into riddled regimes. Lowering the learning rate smoothed the basins, but the networks then learned less effectively.

In short: in the regimes they studied, the dynamics that make a network learn well are the same dynamics that make its training outcome hard to reproduce.

What this does and doesn’t mean for a ledger

It’s worth being precise here, because it’s easy to overclaim.

What the paper is about: the training process. Two training runs that start almost identically can end up as meaningfully different trained networks — and you can’t engineer that away with more precision.

What it is not directly about: a single, frozen model answering questions at inference time. The paper doesn’t show that a deployed model flips its answer when you reword a trust deed. That kind of input sensitivity is a real and well-documented problem with LLMs, but it’s a separate phenomenon, and riddled training basins aren’t its proven cause.

Where it does bite for us: every time a model provider retrains, fine-tunes or ships a new checkpoint, you are taking a fresh draw from that riddled landscape. “The same model, but updated” is not the same function, and Ly and Gong’s results suggest you can’t make it the same by being more careful. For most software that’s fine. For tax and accounting, where the same facts must give the same answer when an auditor replays them three years later, it’s a strong reason not to let the model be the calculation.

Statutory accounting needs exactly that. A trial balance is a zero-sum identity: debits (positive) and credits (negative) sum to zero, or the books are out of balance. Under Division 7A of the ITAA 1936, a $100,000 amalgamated loan either meets its s 109E minimum yearly repayment by lodgment day, or a deemed dividend arises under s 109D. Under Parts 3-1 and 3-3 of the ITAA 1997, a CGT event A1 either qualifies for the discount and small business concessions, or it doesn’t.

These rules don’t live on a continuous probability surface. They live in a discrete space with sharp boundaries and outcomes that are binary or exact to the cent.

When a neural network acts as both the reader of messy reality and the executor of statutory logic, two kinds of instability stack on top of each other: sensitivity to how the question is phrased, and — per Ly and Gong — instability in what the network learned in the first place, which changes with every retrain. The four failure modes we documented in our Division 7A benchmark — boolean routing collapse, look-through state mutation, advisory inversion on s 109R, and denominator hallucination — are what that instability looks like in practice. We don’t claim the paper explains each of them. We do think it removes the hope that they’ll reliably disappear with the next model.

How the LodgeiT Labs stack is built around it

Our core design rule is explicit:

The probabilistic ring proposes. The deterministic core disposes. The semantic membrane explains. Nothing crosses inward without a witness. Nothing crosses outward without a rendering.

Seen through Ly and Gong’s paper, the boundary between the LLM and SBRM plus Logical English (SWI-Prolog) separates two very different kinds of system:

Dimension Probabilistic ring (LLMs & neural classifiers) Deterministic core (SBRM + Logical English / Prolog)
How it’s built Trained by gradient descent; per Ly and Gong, the training outcome can sit in a riddled basin. Written as explicit rules (Horn clauses) over typed facts and double-entry algebra. No training step.
Reproducibility A retrain or checkpoint update can produce a different function; extra numerical precision doesn’t guarantee the same result. Same rules and same facts give the same result and the same proof tree, every run.
Capability trade-off Higher learning rates buy pattern recognition at the cost of reproducibility. No trade-off to manage; the rules are reviewed by practitioners rather than learned.
Arithmetic & rounding Arithmetic emerges from token probabilities and can drift. Exact decimal arithmetic with explicit half-away-from-zero rounding at the engine boundary.
Audit artefact Billions of opaque weights. A hash-bound proof trace citing the statutory provisions that fired.

1. Use the neural network where it’s strong (the proposer)

Ly and Gong’s trade-off cuts both ways: if you starve a network’s learning rate to make it reproducible, it stops learning well.

We want capable neural networks in the outer ring. Reading a 40-page commercial lease, parsing a messy PDF invoice or classifying raw bank-feed narratives means handling a lot of ambiguity. Across ClawDog, Tax Genii and the Fano Classifier, that’s the job we give neural models: proposing structure from messy inputs. We don’t need that layer to be perfectly reproducible, because nothing it says is final.

2. SBRM as the firewall (discretisation)

The question is how to stop that layer’s instability reaching the general ledger or the tax return. Our answer is to force every neural proposal through a rigid, typed structure before any calculation happens.

That structure is SBRM (Charles Hoffman’s Standard Business Reporting Model), together with our semantic firewall and operator-approval boundary:

  • A neural model never emits a final tax liability or posts directly to a ledger.
  • Its output has to become discrete, typed propositions — entity $X$, CGT event A1, contract date $T_1$, capital proceeds $P$, cost base elements $\{C_1, C_2\}$ — polarity-checked against a seven-way accounting taxonomy.
  • Behind an asynchronous staging boundary, a practitioner reviews the dry-run diff and the source evidence. Once approved, what moves forward is a hash-bound YAML/Markdown fact contract, not the model’s internal state.

The honest caveat: this boundary contains the instability; it doesn’t eliminate it. If the extraction step proposes the wrong fact and a reviewer approves it, the deterministic core will compute the wrong answer perfectly reproducibly. That’s why the review step, the source witness and our extraction testing matter as much as the rules engine.

3. Logical English as the calculation layer (the disposer)

Once approved facts cross into Logical English (.le) and compile down to SWI-Prolog, there is no gradient descent: no loss landscape, no learning rate, no basin to fall into.

When our CGT event A1 rules (114 rules, 62 worked scenarios, 163 test cases) or our Division 7A engine run against an approved fact contract, they perform logical resolution over discrete predicates:

  • Given the same fact contract and the same rule version, the engine produces the same result and the same proof tree every time — today, next year, or when a reviewer or regulator replays the hash receipt.
  • When the fact contract is anchored externally through Proof-of-Control (remote signing over Nostr / NIP-46) and recorded through the Scene Protocol, both the inputs and the derivation are tamper-evident.

Determinism isn’t the same as correctness. A deterministic rule that misstates the law is reproducibly wrong. That’s why the rules are written in English a practitioner can read, published openly, and reviewed by credentialed practitioners through our bounty programme before we rely on them.

Replacing hope with math

Professor Gong sums up the challenge this way:

“To build trustworthy systems, we need not only accurate predictions but also confidence that those predictions can be reproduced. This research provides a new way of understanding the limits of predictability in AI, and how we might overcome them.”

In accounting, tax and financial reporting, “hoping the model behaves consistently” was never an acceptable engineering posture. Ly and Gong’s work suggests it isn’t even a reliable bet: reproducibility of a trained network can’t simply be bought with more precision or more care.

So we respect what each kind of system is good at. Probabilistic models propose structure from messy human activity. Their proposals are collapsed into typed facts across a hard boundary (SBRM) and approved by a person. And the law is executed in a deterministic, readable substrate (Logical English), where the rules are open to practitioner review and every answer carries a proof.

That’s why we don’t bolt an LLM onto a general ledger.

References & further reading

  1. Andrew Ly & Pulin Gong (2026). “Fractal basin geometry and the limits to predictability and reproducibility in deep learning.” Nature Machine Intelligence. DOI: 10.1038/s42256-026-01336-3 (preprint: arXiv:2510.05606).
  2. University of Sydney / Phys.org (5 Nov 2026). “Fractal patterns reveal hidden limits to AI predictability.”
  3. LodgeiT Labs. “Logical English — statute is code, we just haven’t compiled it yet.”
  4. LodgeiT Labs. “What we are building — a full sweep for accounting and tax professionals.”
  5. LodgeiT Labs review bounties. Inspect and review our Logical English statutory engines →

Updated 10 November 2026: we clarified that Ly and Gong’s findings concern training dynamics rather than a deployed model’s answers to reworded inputs, softened “mathematical proof” language to match what the study shows, and added that determinism contains extraction errors rather than eliminating them.