TL;DR
When you chain LLMs, retrievers, and tools together, an early hallucination or sloppy retrieval doesn't just sit quietly—it mutates, snowballs, or occasionally gets fixed by later steps. This paper models that invisible "semantic corruption" as a physical-style dynamical system, allowing engineers to predict how errors compound across black-box pipelines and mathematically pinpoint the best places to drop limited verification checkpoints.
What Problem Does This Paper Address?
Modern AI rarely relies on a single prompt; instead, we build multi-step pipelines combining retrieval, reasoning, code execution, and verification. Historically, we’ve evaluated these systems in two ways: testing individual components on clean inputs, or running post-mortems on failed end-to-end traces to build failure taxonomies.
Neither approach is predictive. Knowing each step is 90% accurate in isolation doesn't tell you end-to-end reliability, because pipeline steps aren't independent. An upstream error enters the working context and can be amplified, masked, or repaired downstream. Furthermore, if you only have the compute budget to add two verification "checkpoints" into a six-step pipeline, post-hoc taxonomies won't tell you where to put them.
As shown above, actual system failure rates deviate noticeably from what you would expect if clean-input local errors simply accumulated independently—a discrepancy the authors call the dependency gap.
Methods
Because we can't peer inside black-box API calls to see "semantic corruption" directly, the authors model it as a scalar latent load ($e_t \ge 0$)—think of it like heat or noise accumulating in a circuit at each step $t$.
What’s novel here is treating a sequential LLM pipeline via a linear stochastic recurrence with three distinct channels:
- Inherited-error propagation ($\alpha_t$): How much the current component amplifies or dampens incoming corruption from step $t-1$.
- Persistent context sensitivity ($\gamma_t$): How much an ambiguity or trap in the original task prompt ($e_0$) keeps re-infecting later steps, even if step $t-1$ looked clean.
- Fresh error injection ($\mu_t$): New mistakes introduced by the current step itself.
Since latent load is invisible, the authors operationalize it using observable black-box proxies ($z_t$)—like normalized numerical deviation in math, or $1 - \text{Recall/Precision/F1}$ in RAG. By probing the pipeline with controlled, ordered perturbations (e.g., deliberately corrupting current states while holding initial context fixed), they estimate proxy-scale versions of $\alpha_t, \gamma_t,$ and $\mu_t$.
Finally, they model a checkpoint (like a verifier step) as an intervention that attenuates inherited propagation ($\alpha_t \to \rho_t$). Under this setup, reducing terminal mean load turns out to be monotone submodular—meaning a simple, fast greedy algorithm is guaranteed to achieve at least $(1 - 1/e) \approx 63\%$ of the optimal checkpoint placement under a fixed budget.
Datasets
The authors run inference-only evaluations (using Qwen3-8B and Qwen3-32B) across three established benchmarks—no new datasets are introduced:
- GSM8K and MATH for multi-step sequential mathematical reasoning pipelines.
- HotpotQA for a 4-stage RAG pipeline (query reformulation $\to$ dense retrieval $\to$ LLM reranking $\to$ answer generation).
Key Insights and Ideas
- Downstream leverage matters more than local clumsiness: Unrolling the recurrence reveals a suffix-product structure. A fresh error at step $k$ is multiplied by the amplification factors of every step after it ($\prod_{i=k+1}^{n-1} A_i$). Therefore, the best place for a checkpoint isn't necessarily the most error-prone step—it’s a step carrying load into a highly amplifying downstream tail. This same math applies to parameter estimation: measurement errors early in the pipeline corrupt your risk predictions far more than late ones.
- Original sin lingers: Conditioning only on the current step's failure misses history dependence, because the original prompt stays in the shared context window. Explicitly tracking initial load ($z_0$) alongside current load ($z_t$) noticeably shrinks Markovian approximation errors without needing the full trace history.
- Three growth regimes: Just like classical dynamical systems, the upper bound on pipeline corruption exhibits stable ($\bar{A} < 1$, errors dampen), critical ($\bar{A} = 1$, linear growth), and unstable ($\bar{A} > 1$, exponential compounding) depth-scaling regimes.
Key Results
- Proxy representation: On a depth-4 RAG chain ($N=400$), tracking just current and initial proxy states $(z_t, z_0)$ performs nearly as well as using the entire trace history—full history reduces next-state Mean Absolute Error (MAE) by only $0.0072$ (~$1.7\%$). However, adding specific error-type features reduces MAE by $22\%$, showing what scalar compression leaves on the table.
- RAG propagation: On a 100-example RAG diagnostic set, upstream retrieval proxy load correlates strongly with downstream reranking error ($r = 0.592$) and final answer error ($r = 0.358$), with a local Retrieve $\to$ Rerank response slope of $0.76$ ($R^2 = 0.35$).
- Checkpoint placement: On GSM8K with Qwen3-32B under a budget of $K=2$ checkpoints (32 evaluation examples), uniform placement reduces final proxy error compared to no checkpoints, but leaves the actual failure rate unchanged ($9/32$). Propagation-aware greedy and dynamic programming placements reduce both proxy load and actual failures to $7/32$ (directional improvement). On independent RAG tests, however, greedy placement did not establish a failure-rate advantage over uniform placement.
Limitations and Future Work
- Structural assumptions: The math assumes fixed-length, sequential chains—not branching graphs, loops, or dynamic agentic routing.
- Scalar bottleneck: Squashing complex semantic errors into a single number loses nuance (as seen in the $22\%$ MAE drop when error-type features are added).
- Intervention idealization: Submodularity holds only if a checkpoint reduces inherited load without altering downstream transition dynamics or fresh error rates, and it optimizes mean load rather than worst-case tail risk.
- Calibration sensitivity: Practical utility hinges on having good domain proxies and clean calibration runs, which proved tougher to translate into failure-rate wins on RAG than on Math. Future work aims to tackle DAG workflows, richer multi-dimensional states, and tail-risk objectives.
Summary updated