acceptodds
Published as a conference paper at NeurIPS 2026

Propagation of Chaos in Contextual Flow Maps

Chen, Zhengjiang Lin, Kaizhao Liu, Philippe Rigollet

Abstract

We develop a quantitative statistical theory of transformers in the large-context regime by adopting the abstraction of contextual flow maps: dynamical systems that evolve a distinguished token in the presence of a contextual measure across a stack of attention blocks. Within this framework, the finite-context model approximates an idealized infinite-context system in which the contextual measure is replaced by its underlying population, so that the context length becomes a statistical resource. Exploiting the McKean–Vlasov structure of the dynamics and the classical machinery of propagation of chaos, we establish a forward bound controlling the deviation between the finite- and infinite-context flow maps uniformly along depth, and a backward bound controlling the deviation between the corresponding training trajectories uniformly across iterations of online gradient descent. Both bounds achieve the optimal Wasserstein rate . The analysis rests on a new Eulerian adjoint formulation of the loss gradient and stability estimates for the resulting forward–adjoint system, both of which may be of independent interest. We further verify that the standard transformer architecture satisfies these estimates with Lipschitz constants independent of embedding and parameter dimensions, suggesting a structural reason why transformers train stably across model scales.

Keywords:
Sydney, Main Track

Reviews

Among:
Shape:
123456this paper, Bottom 49%
Figure 1. Mean review rating of the reviewed papers at NeurIPS 2026. This paper averages 4.33 over 3 reviews, above 49% of the others.
Reviewer_gok9OpenReview ↗
Rating
4
Clarity
2
Confidence
3
Originality
3
Quality
3
Significance
2
Read review
Summary

The work derives both forward and backward propagation of chaos results by bounding the deviation between trajectories for a PDE system that both evolves the data and parameters. The system is a generalized model for the dynamics in transformer inference and the regularity assumptions are verified for MLP and Transformer blocks. The forward propagation is established using standard stability arguments while the backward propagation is established using a new adjoint formulation leveraging regularity conditions.

Strengths and weaknesses

Strengths

The work is timely and technically sound, studying transformer dynamics of high importance given that they are the main architecture in use now. The adjoint formulation is interesting and mapping the regularity assumptions to real architectural components is appreciated. Establishing forward and backward propagation of chaos is a well needed technical result.

Weaknesses

The clarity of the work can be significantly improved:

  1. The assumptions are mentioned only after the main results. Discussing assumptions first and relating them to transformers and then present the main result, is needed to improve the flow of the manuscript.
  2. The PDE that is the object of study is directly introduced in the intro without giving guidance how this relate to an the actual transformer architecture. It should be mentioned directly how the PDE is motivated in the first place i.e. residual connections.
  3. Currently in the main result section there is little reference to section 4 which contains the main proof details. It would be helpful to refer to that section directly to ensure the reader that intuition is provided behind the main result. Currently it only mentioned at the end of the main results.
  4. As the main results rely mostly on standard applications of Gronwall's lemma verifying the fact that the regularity assumptions hold for transformers could be more of interest to the reader. Expanding this section in the main text with details from the appendix could improve the intuition behind why the regularity assumptions are natural ones.

The significance of the work can be improved:

  1. The work provides no simulations for their found result this limits the broader impact of the result. This makes it hard for a general audience to appreciate the results.
  2. A direct actionable simulation could be the rate bound depending on d and n, this would motivate also the technical conjecture in the discussion where the rate is mentioned to be generally optimal but could be suboptimal for specific cases.
  3. The discussion of the implications of the results remains highly technical in the conclusion. It would be good to discuss what future works now can do leveraging the PDE. For instance, which emergent phenomena may be good to study in this setting an example could be attention sinks.

The work appears to be technically solid and well motivated. However, the significance and clarity should be improved for accept. Therefore, I give the work a borderline accept.

Questions
  1. Could the authors provide simulations verifying the n−1/dn^{-1/d} rate from Theorem 2.1, varying both nn and dd?
  2. Could the authors expand the conclusion to discuss implications for specific emergent phenomena such as attention sinks?
  3. Could the authors move the assumptions before the main results and add motivation connecting the PDE to residual connections in the introduction?
Limitations

yes

Paper formatting concerns

no

Final justification

Overall solid paper, exposition could still be improved as I disagree with the authors on the requirements for a theory paper. Therefore I keep my score of borderline accept.

Reviewer_qsUzOpenReview ↗
Rating
4
Clarity
3
Confidence
3
Originality
3
Quality
3
Significance
3
Read review
Summary

The paper abstracts transformers as contextual flow maps: continuous-depth dynamical systems that evolve a distinguished token xsx_s in the presence of a contextual probability measure μs\mu_s, coupled through a shared velocity field V\mathcal{V}. The finite-context model, initialized with an empirical context μ0^=1n∑iδz(i)\hat{\mu_{0}} = \frac{1}{n} \sum_i \delta_{z(i)}, is compared to an infinite-context population system. The main results are a forward propagation-of-chaos bound, a backward / OGD stability bound, an Eulerian adjoint formula for the loss gradient, and a verification that simplified self-attention and MLP blocks satisfy the abstract assumptions with constants claimed independent of dd and pp.

Strengths and weaknesses

Strengths:

The paper asks a genuine statistical question for long-context transformer abstractions: how the output and training trajectory degrade when a population context is replaced by an empirical context, with nn treated as the statistical resource. The forward theorem follows a sound route — W1W_1-stability of the flow followed by empirical-measure convergence — and the bound is uniform in depth s∈[0,1]s\in[0,1], including output time.

The Eulerian adjoint formulation is a useful synthesis of neural-ODE adjoints and McKean–Vlasov/control-style sensitivities: a covector psp_s for the distinguished token and a scalar test field ϕs\phi_s for the contextual measure. The paper correctly identifies C1,1C^{1,1}-regularity of ϕs\phi_s as the property that allows the gradient formula to interact stably with empirical measures.

The exposition is mostly clear for a theory paper. The assumptions are collected, the theorem dependencies are mostly explicit, and proof sketches accompany the appendices.

 

 

Weaknesses:

 

  1. Аixed-point proof of Proposition B.2, and the same problem appears again in Proposition B.3. The weighted norm uses the factor

\begin{equation} e^{\alpha(1-s)}, \end{equation}

so ∣ψ∣X|\psi|_X implies

\begin{equation} |\nabla \psi_s|\le e^{-\alpha(1-s)}||\psi||_X. \end{equation}

For the terminal-value representation \begin{equation} u(s,z)=-\int_s^1 f(\tau,\Psi_{\tau}(z);\psi)d\tau, \end{equation}

the ψ\psi-linear contribution, after applying the stated weight, is controlled by

\begin{equation} e^{\alpha(1-s)}\int_s^1 e^{-\alpha(1-\tau)}d\tau = \frac{e^{\alpha(1-s)}-1}{\alpha}. \end{equation}

The supremum over s∈[0,1])s\in[0,1]) is (eα−1)/α(e^\alpha-1)/\alpha, which increases with α\alpha, rather than being O(1/α)O(1/\alpha). Thus the claimed contraction does not follow.

This affects the proof of Theorem 4.2 and therefore the backward propagation-of-chaos theorem, Theorem 2.2. The issue appears repairable: reversing the exponential weight can restore the contraction for existence/uniqueness, while the uniform C1,1C^{1,1} bound should be obtained separately by a direct backward Grönwall argument. But as submitted, the proof does not establish the claimed adjoint stability result.

 

  1. The adjoint derivation and C1,1C^{1,1} regularity argument need to be made rigorous.

The Eulerian adjoint derivation is carried out assuming that μsε\mu_s^\varepsilon has a density, with the general measure case left to approximation. This is not enough for the main application, since the finite-context measures are empirical and hence singular. The final gradient formula is meaningful for empirical measures, where the integrals become finite sums, but the derivation should justify the identity directly for general probability measures or specify the approximation topology and convergence argument.

There is also a local proof issue in the regularity analysis of ϕ\phi. After differentiating the characteristic formula, the displayed expression for (∇zf)⊤(\nabla_z f)^\top appears to reproduce the undifferentiated source term ff, using δV/δμ\delta V/\delta\mu where one needs the spatial derivative

\begin{equation} \nabla_z \frac{\delta V}{\delta\mu} = \nabla\nabla_\mu V. \end{equation}

This is probably a typo rather than a conceptual failure, but the C1,1C^{1,1} regularity of ϕ\phi is central to the Wasserstein stability of the loss gradient, so the proof should explicitly derive the bounds for DzΨτD_z\Psi_\tau, ∇zf\nabla_z f, and the Lipschitz constant of ∇zf\nabla_z f, including where A4 is used.

 

  1. The OGD result needs more precise probability and sampling statements.

Theorem 2.2 states a bound for every kk with a probability lower bound independent of kk. The proof, however, fixes kk and applies McDiarmid to the samples used up to that iteration. This gives a fixed-kk high-probability bound with constants independent of kk, not a single event on which

\begin{equation} \sup_k ||\theta_k-\widehat\theta_k||_{L^\infty}\le Cn^{-1/d} \end{equation}

holds. This distinction matters because the per-kk failure probability does not decay with kk, so a union bound cannot upgrade the result to a simultaneous-in- kk statement.

The sampling assumptions should also be stated explicitly. The text says the OGD stream need not be independent, while the concentration proof treats the empirical draws across iterations as independent. This is likely reconcilable by conditioning on a fixed/adversarial population stream and assuming that the empirical contexts are conditionally independent given that stream, but the theorem should say so.

There is also a notation error in the bounded-differences step: replacing one empirical atom gives \begin{equation} W_1(\widehat\mu_0^\ell,\widehat\mu_0^{\ell,\prime})\le 2R/n, \end{equation} not \begin{equation} W_1(\widehat\mu_0^\ell,\mu_0^\ell)\le 2R/n. \end{equation} The latter empirical-to-population distance is generally of order n−1/dn^{-1/d}, not 1/n1/n.

 

  1. The transformer verification overstates both the assumptions and the scope.

The appendix claims dimension-free constants for standard transformer architectures, but the self-attention verification assumes a dimension-free Euclidean/Frobenius bound on the full parameter tuple θ=(Q,K,V)\theta=(Q,K,V). This is much stronger than a dimension-free operator-norm bound: for dense matrices, ∣∣A∣∣||A|| can exceed ∣∣A∣∣op||A||_{op} by a factor of order d\sqrt{d}. Thus the dimension-free stability claim depends on a strong parameter-scaling assumption that should be made explicit.

The architectural scope should also be narrowed. The appendix verifies simplified single-head attention and smooth MLP blocks. It does not fully cover multi-head attention, residual connections, LayerNorm, attention biases, attention scaling conventions, or nonsmooth activations such as ReLU. In addition, the context dynamics in the model are independent of the distinguished token, whereas in bidirectional encoder architectures a distinguished token such as [CLS] can feed back into the context-token updates. The paper should therefore avoid saying that the assumptions are verified for standard transformers in full generality.

Questions
  1. Can Proposition B.2 and Proposition B.3 be repaired? In particular, can the adjoint well-posedness and stability be proved with a corrected weighted norm and a separate backward Grönwall estimate for the C1,1C^{1,1} bound?

 

  1. Can the adjoint identity be derived for general probability measures, especially empirical measures, rather than only by a density-based calculation plus an unspecified approximation?

 

  1. Is Theorem 2.2(ii) intended as a fixed-kk high-probability bound with constants independent of kk, or as a simultaneous bound over all kk? If the latter, the current McDiarmid argument is insufficient.

 

  1. What precise independence assumptions are made on the empirical samples z^{(k,i) across OGD iterations? Are the probabilities conditional on the population stream?

 

  1. Can the transformer verification be narrowed or strengthened, especially regarding the Frobenius parameter bound, multi-head attention, residual/normalization layers, attention scaling, and distinguished-token/context-token coupling?
Limitations

The checklist mainly points to Grönwall/regularization issues, but several stronger assumptions should be surfaced: compact support; the uniform Frobenius parameter bound; smoothness assumptions excluding ReLU unless separate analysis is provided; continuous-depth idealization rather than discrete blocks; single-head attention; conditional independence of empirical contexts; fixed-kk versus simultaneous-kk probability; and the potential looseness of n−1/dn^{−1/d} for smoother transformer-specific functionals.

Paper formatting concerns

Did not notice any formation issues

Reviewer_1q4YOpenReview ↗
Rating
5
Clarity
3
Confidence
4
Originality
3
Quality
3
Significance
3
Read review
Summary

The authors analyse transformers from the perspective of dynamical systems and contextual maps. Specifically, given an input token x0x_0 and a contextual measure μ0\mu _0, the transformer is viewed as a dynamical system characterised by \begin{align*} \dot x _s = \mathcal{V} (x_s, \mu_s; \theta (s)), \ \ s \in [0,1] \end{align*} where x1x_1 is the output produced from the token-context pair (x0,μ0)(x_0, \mu _0), θ(s)\theta (s) denotes the parameters at layers ss, and μs\mu _s is obtained through the continuity equation \begin{align*} \partial _s \mu _s + \nabla \cdot (\mu_s \mathcal{V}(\cdot, \mu _s; \theta (s))) = 0, \ \ s \in [0,1]. \end{align*} Here, μ0\mu _0 is the empirical measure associated with tokens z(1),…,z(n)z^{(1)}, \dots, z^{(n)}, \begin{align*} \mu _0 (\cdot) = \frac{1}{n} \sum _{i=1} ^n \delta _{z^{(i)}} (\cdot). \end{align*} The idea is that the above dynamical system gives an approximation to the infinite-context system, in which one would replace the empirical measure μ0\mu _0 by μ∞\mu ^\infty, the underlying population measure. The main question of the paper is how accurate this approximation is, both at inference and training (forward vs. backward pass).

Because of the McKean-Vlasov structure of the dynamical systems model, the authors argue that a propagation of chaos approach is suitable for quantifying accuracy and in particular the dependence on the context length nn. The main contributions are:

  • quantitative deviation bounds for the approximation, that hold uniformly along the depth of the network (Theorem 2.1, forward propagation);
  • an extension of uniform-in-time propagation-of-chaos results, for the online gradient descent (OGD) setting, from Guilin, Nectoux and Stos '26, which studies two-layer feedforward networks (Theorem 2.2, backward propagation);
  • an Eulerian adjoint formulation of the loss gradient (Theorem 3.1);
  • new stability estimates (Theorems 4.1 and 4.2) for contextual flows as loss gradients, that hold uniformly in depth and along parameter paths.

The adjoint formulation of Theorem 3.1, combined with the new stability estimates of Theorems 4.1 and 4.2, make up the heart of the approach used in the paper.

Strengths and weaknesses

The paper addresses an interesting and important question around transformers, when taking the perspective of contextual maps: how does the restriction to a finite context affect the performance, and how accurate is the corresponding approximation of the infinite-context limit? Adopting the contextual-map formulation, introduced by Furuya, de Hoop and Peyr'{e} (ICLR 2024), the authors focus on the associated statistical questions.

The nn-context setting considered in the paper seems to be a useful way to approach developing a useful theory for transformers. The mathematical framework used---propagation of chaos for McKean-Vlasov dynamics---is a staple within the probability community for analysing interacting particle systems, and provides a set of well-developed tools. The paper is easy to follow and the authors have provided a good overview of the literature, including distinguishing three different (mathematical) ways of viewing transformers: as a sequence-to-sequence map, a measure-to-mesaure map, and as a contextual map (with adequate references for each). The motivation for choosing the contextual-map framework, as well as the lack of rigorous statistical analysis, is sound and thus sets up the mathematical results in a nice way.

For the mathematics, they appear mostly sound. The forward propagation result Theorem 2.1 relies on Lipschitz stability in W1W_1 and concentration of the empirical measure, which seems accurate under the assumptions used. The adjoint formulation in Section 3 and the new stability estimates in Section 4 are valuable contributions with potential for becoming useful outside of this particular paper. I am also partial to the particle-system interpretation that underlies the contextual-map formulation and for this type of particle system the authors have identified what seems to be the correct tools to use.

Some potential issues with the analysis:

  • The description of Theorem 2.2, the way I interpret it, suggests control over the training trajectories uniformly over all steps kk in the OGD iterations, for the regularised setting. However, the actual result is a high-probability bound on ∣∣θk−θ^k∣∣L∞|| \theta _k - \hat \theta _k || _{L^\infty} being smaller than Cn−1/dCn^{-1/d}. That is, a bound in which the right-hand side is independent of kk, which is not the same as a bound that holds for all kk simultaneously. For example, the argument used for proving the theorem (Appendix C) uses a result by McDiarmid applied to a fixed kk.

  • For Theorem 3.,1, the adjoint formulation, the proof in Appendix B uses differentiability with respect to θ\theta of the measure-valued solution (see second paragraph in B.1). However it is not clear to me that Theorem A.1, which is invoked, provides the Fr'{e}chet differentiability used in the derivations. Moreover, whereas the derivation assumes a density, the case of an atomic measure is the main application. The authors state that this is covered by approximation, which is true, but given the level of the submission (and, the intended audience) this could be expanded upon slightly.

  • In Proposition B.2, the formula for ∇zf\nabla _z f on the top of p. 18 seems to be the same as (B.7), the expression for ff itself. The intended bound may still be true but the calculation does not seem correct as it stands.

  • There are several assumptions (see for example Section 5) that are rather strong: for example, compact support for input, and a uniformly bounded parameter path. Moreover, in a practical setting, For self-attention, there is an assumption of uniformly bounded Frobenius norms, This gives rise to the dimension-free constant MM, but in the realistic setting such bounds on the norm may grow with dimension. This should be discussed in the paper.

  • A stack of transformer blocks are treated as a continuous-depth ODE. I am unsure how this is connect to the more standard formulation of a finite-depth residual transformer layer.

Questions

Some questions related to the maths and the issue brought up above:

  • Is Theorem 2.2 intended to hold for all kk at the same time, i.e., on a common high-probability event, or only point wise for fixed number of steps kk?

  • Can you provide a rigorous statement for the differentiability used in Theorem 3.1? Preferably not simply relying on Lipschitz stability and a formal Lagrange agreement,

  • In Proposition B.2, what is the correct formula for \nalbazf\nalba _z f?

  • How should I interpret the dimension-free constants appearing in the Assumptions?

  • What are the, if any, independence assumptions ised for the OGD iterations?

Limitations

Yes

Paper formatting concerns

None

Final justification

Given the clarifications and correction of results during the review process, I believe the paper should be accepted. There are still things that could be improved, as pointed out be the reviewers, and in my opinion that is what keeps it from a strong accept. I like the paper, and the general approach, and appreciate the authors efforts to address the concerns raised in the different reviews.

Comments on the paper

1 comment
Meta-review

(a) Summary

This paper studies finite-context transformers through contextual flow maps, comparing an empirical context of length n with an infinite-context population measure. It proves a forward propagation-of-chaos bound uniform over network depth and claims a backward bound controlling the discrepancy between finite- and infinite-context online-gradient trajectories. Both achieve an n−1/dn^−{1/d} Wasserstein rate. The main technical contribution is an Eulerian adjoint formulation and associated stability estimates for the loss gradient.

(b) Strengths

The paper addresses a meaningful statistical question for long-context transformer models. The contextual-map and McKean–Vlasov formulation is well motivated, and the forward result follows a convincing combination of Wasserstein stability and empirical-measure concentration. Reviewers 1q4Y and qsUz particularly value the Eulerian adjoint formulation and the forward–adjoint stability framework, which may be useful beyond this paper. The exposition is generally clear, and all reviewers give favorable overall recommendations.

(c) Weaknesses

  • The main concern is the proof of the adjoint well-posedness and stability results underlying Theorems 4.2 and 2.2. As identified by qsUz, the exponential weight used in the fixed-point argument of Propositions B.2 and B.3 appears to have the wrong direction: after applying the stated norm, the relevant integral can increase rather than yield the claimed contraction. Reviewer 1q4Y also notes an incorrect displayed derivative in Proposition B.2. These issues appear potentially repairable, but the current proof does not establish the backward propagation result.

  • The derivation of the adjoint formula assumes a density and leaves the empirical-measure case to an unspecified approximation. Since empirical, atomic contexts are the main application, the required differentiability and limiting argument should be stated rigorously.

  • The probability interpretation of Theorem 2.2 is also unclear. The proof applies McDiarmid’s inequality for a fixed iteration k, giving constants uniform in k, but not evidently a single high-probability event holding simultaneously for all iterations. The manuscript currently describes the result as uniform across all iterations. The sampling and conditional-independence assumptions across OGD steps also require clarification.

  • Finally, the claim of dimension-free verification for “standard transformers” is too broad. The result assumes a dimension-independent Frobenius bound on the full parameter tuple and verifies simplified single-head attention and smooth MLP blocks, rather than full multi-head residual architectures with normalization. The continuous-depth connection to discrete transformer blocks should also be explained more carefully.

(d) Required clarifications

  • Provide a corrected fixed-point and stability proof for Propositions B.2–B.3, including the appropriate exponential weight and the correct spatial derivatives. Explain explicitly whether Theorems 4.2 and 2.2 remain unchanged.
  • Give a rigorous adjoint derivation for general probability measures, especially empirical measures, or specify the approximation topology and convergence argument.
  • Clarify whether Theorem 2.2 is a fixed-k bound with constants independent of k, or a simultaneous-in-k statement on one event. State the precise independence assumptions across OGD iterations.
  • Narrow or justify the transformer-scope and dimension-free claims, particularly the Frobenius-norm assumption and the relation between continuous-depth flows and finite residual blocks.

Additional simulations would be helpful but are not essential for rebuttal. If the adjoint stability proof can be repaired without changing the main rates, the paper would remain a strong candidate for acceptance.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Related papers

Loading the map…

Discussion (0)

Sign in to comment.