Formal Generalisation Bounds for Tool-Using LLM Systems When Tools Return…
Formal Generalisation Bounds for Tool-Using LLM Systems When Tools Return Non-Deterministic Outputs Outside the Training Distribution
- Arbitrary out-of-distribution generalisation is impossible without restricting the family of deployment shifts, and classical target-risk bounds remain conditional on bounded divergence between source and target domains plus a hypothesis that performs well on bothYe et al. (2021)Ben-David et al. (2010)
- Non-deterministic tool outputs belong mainly to the aleatoric uncertainty term, so they create an irreducible error floor that additional planner training data or model scaling cannot remove on their ownGal (2017)
- Simon’s bounded-rationality frame describes tool-using Large Language Model loops more accurately than an omniscient optimization frame, which means their guarantees should be phrased as performance under partial information and finite computation rather than as exact optimal controlSimon (1978)Mitchell (2026)
- Monte Carlo Dropout provides a useful approximation to epistemic model uncertainty, but predictive uncertainty calibration still degrades under dataset shift, so the method cannot serve as a standalone out-of-distribution reliability certificate for planner outputsGhahramani (2016)Ovadia et al. (2019)
- Conformal prediction gives exact finite-sample coverage only when calibration and test points satisfy its exchangeability assumptions, while adaptive online variants weaken the guarantee to long-run coverage frequency or local regret under evolving shiftBates (2022)Gibbs (2021)Gibbs (2022)
- In a planner-tool loop, the formal guarantee is inherited from the weakest uncontrolled component, because recurrent tool use and verification can amplify a shifted or semantically corrupted observation before any independent correction arrivesMitchell (2026)Ben-David et al. (2010)
- Manageable non-determinism is limited to tool regimes with support overlap, bounded or slowly varying shift, and independent correction or abstention, while open-world, adversarial, or regime-changing tool outputs remain formally unboundedGibbs (2021)Gibbs (2022)Ye et al. (2021)Mitchell (2026)
- Current evidence supports deployment claims about calibrated abstention, set-valued prediction, or monitored online adaptation instead of guaranteed correctness for one chosen action under arbitrary production conditionsBates (2022)Gibbs (2022)Ovadia et al. (2019)
Research Question
What formal bounds can be stated for generalisation outside the training distribution in tool-using Large Language Model systems when their tools return non-deterministic outputs under unconstrained production conditions?
Findings
Executive Summary
Tool-using Large Language Model systems have no non-vacuous universal bound on generalisation outside the training distribution under unconstrained production conditions, because arbitrary out-of-distribution shift is impossible to bound without extra structural assumptions and stochastic tool outputs add irreducible uncertainty.
Current theory supports narrower guarantees: domain-adaptation target-risk bounds under bounded divergence and low shared error, approximate epistemic uncertainty estimates from methods such as Monte Carlo Dropout, and conformal coverage guarantees for set-valued outputs under exchangeable or adaptively tracked shift.
For the composite planner-tool loop, the decisive limit is the weakest uncontrolled surface, so open-world or adversarial tool outputs can make the classical bounds vacuous before the planner's internal uncertainty estimator becomes the binding constraint.
Current theory therefore supports conditional risk management, abstention, and external correction for tool-using Large Language Model systems instead of guaranteed correctness on arbitrary production trajectories.
Key Findings
- Arbitrary out-of-distribution generalisation is impossible without restricting the family of deployment shifts, and classical target-risk bounds remain conditional on bounded divergence between source and target domains plus a hypothesis that performs well on both.
- Non-deterministic tool outputs belong mainly to the aleatoric uncertainty term, so they create an irreducible error floor that additional planner training data or model scaling cannot remove on their own.
- Simon’s bounded-rationality frame describes tool-using Large Language Model loops more accurately than an omniscient optimization frame, which means their guarantees should be phrased as performance under partial information and finite computation rather than as exact optimal control.
- Monte Carlo Dropout provides a useful approximation to epistemic model uncertainty, but predictive uncertainty calibration still degrades under dataset shift, so the method cannot serve as a standalone out-of-distribution reliability certificate for planner outputs.
- Conformal prediction gives exact finite-sample coverage only when calibration and test points satisfy its exchangeability assumptions, while adaptive online variants weaken the guarantee to long-run coverage frequency or local regret under evolving shift.
- In a planner-tool loop, the formal guarantee is inherited from the weakest uncontrolled component, because recurrent tool use and verification can amplify a shifted or semantically corrupted observation before any independent correction arrives.
- Manageable non-determinism is limited to tool regimes with support overlap, bounded or slowly varying shift, and independent correction or abstention, while open-world, adversarial, or regime-changing tool outputs remain formally unbounded.
- Current evidence supports deployment claims about calibrated abstention, set-valued prediction, or monitored online adaptation instead of guaranteed correctness for one chosen action under arbitrary production conditions.
Assumptions
- The transfer from generic OOD theory to tool-using Large Language Model systems assumes that the planner component is still fundamentally a predictive model trained on finite distributions rather than an explicit causal world model. Justification: the cited mathematics is stated for predictive learners, so this item applies it to the planner layer rather than claiming a bespoke theorem for full agent stacks.
- Tool responses are treated as environment observations for the purpose of applying distribution-shift and online-calibration theory. Justification: the relevant guarantees depend on how deployment observations relate to training or calibration observations, regardless of whether the observation arrives from a human user or a tool call.
- The prior completed items on loop reach and error propagation represent current multi-step planner-tool loops closely enough to support the weakest-link synthesis used here. Justification: this item reuses their structural decomposition of planning, tool use, and verification instead of re-deriving the same loop anatomy from new case studies.
Analysis
The strongest evidence in this item comes from combining Ben-David's conditional target-risk bound with Ye's impossibility result, because together they specify both the assumptions needed for a useful out-of-distribution guarantee and the reason arbitrary production shift makes that guarantee collapse.
The conformal literature is the next strongest layer because it clarifies what remains provable after exact correctness is abandoned in favour of set coverage or regret-style adaptation over time.
A rival interpretation is that better uncertainty estimation alone could rescue planner reliability, but Ovadia et al. show calibration degradation under shift and Kendall and Gal explicitly separate irreducible aleatoric uncertainty from reducible epistemic uncertainty, so better model confidence cannot erase stochastic tool noise.
Another rival interpretation is that agent loops can self-correct around tool randomness, but Research Question 4.2 makes that claim too strong because recurrent planning and verification can propagate the same shifted observation when the correction channel is not independent.
The weakest part of the argument is the transfer from generic deep-learning theorems to full planner-tool stacks, which is why the answer is framed as a conditional synthesis of adjacent theories rather than as a new closed-form theorem for all agent architectures.
Risks, Gaps, and Uncertainties
- No consulted primary source provides one unified theorem for full planner-tool loops with stochastic tools, recurrent verification, and arbitrary production shift, so the formal answer here is assembled from adjacent theories.
- The cited uncertainty-estimation results come mainly from general predictive models rather than from live tool-using Large Language Model agents, so direct agent-specific calibration evidence remains thinner than the surrounding theory.
- The manageable-versus-unmanageable boundary is theoretically clear for exchangeable, bounded-shift, or online-adaptive settings and less well benchmarked for real production tools that mix stochastic drift with adversarial contamination.
Open Questions
- What benchmark would best measure calibrated abstention quality for tool-using Large Language Model systems when tool outputs drift but remain non-adversarial?
- How much independent error reduction do typed tool schemas, deterministic guardrails, or external verifiers provide relative to planner-only uncertainty estimation?
- Can a future benchmark isolate the separate contributions of divergence, aleatoric tool noise, and verifier independence in one end-to-end planner-tool deployment setting?
sources
Consulted:
- [x] Kendall & Gal (2017) What Uncertainties Do We Need in Bayesian Deep Learning for Computer Vision? - primary source distinguishing epistemic and aleatoric uncertainty.
- [x] Gal & Ghahramani (2016) Dropout as a Bayesian Approximation: Representing Model Uncertainty in Deep Learning - primary source for Monte Carlo Dropout as approximate Bayesian inference.
- [x] Ovadia et al. (2019) Can You Trust Your Model's Uncertainty? Evaluating Predictive Uncertainty Under Dataset Shift - primary benchmark on calibration under dataset shift.
- [x] Angelopoulos & Bates (2022) A Gentle Introduction to Conformal Prediction and Distribution-Free Uncertainty Quantification - primary tutorial source on conformal prediction guarantees.
- [x] Gibbs & Candès (2021) Adaptive Conformal Inference Under Distribution Shift - primary source for long-run coverage under non-exchangeable online shift.
- [x] Gibbs & Candès (2022) Conformal Inference for Online Prediction with Arbitrary Distribution Shifts - primary source for local regret-style adaptation under arbitrary online shift.
- [x] Ben-David et al. (2010) A Theory of Learning from Different Domains - primary source for target-risk bounds under domain adaptation assumptions.
- [x] Ye et al. (2021) Towards a Theoretical Framework of Out-of-Distribution Generalization - primary source stating that arbitrary out-of-distribution generalisation is impossible and that bounds depend on restricted shift structure.
- [x] Simon (1978) Rational Decision-Making in Business Organizations - accessible primary exposition of bounded rationality and satisficing.
- [x] Mitchell (2026) Research Question 4.1: Tool-feedback loops and explanatory reach - prior completed item on loop-level causal limits.
- [x] Mitchell (2026) Research Question 4.2: Adversarial inputs and error propagation through multi-step tool-using verification and strategy phases - prior completed item on error amplification through tools and verification.
- [x] Mitchell (2026) Research Question 3.2: The Stochastic Parrot Under Pressure - prior completed item on novelty-sensitive structural failure.
- [x] Mitchell (2026) Research Question 2.4: Pearl's Causal Hierarchy and the formal limits of observational data for intervention and counterfactual reasoning - prior completed item on why observational pattern learning does not determine higher-level causal answers.
Identified but not consulted:
- [ ] Simon (1955) A Behavioral Model of Rational Choice - stable primary reference identified but not consulted in this session.
| version | date | commit | summary |
|---|---|---|---|
| 1.0 | 2026-05-19 | 4f69d9f | Initial completion |