potentialpaper

Propagation of Chaos in Contextual Flow Maps

Shi Chen, Zhengjiang Lin, Kaizhao Liu, Philippe Rigollet

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

Abstract. We develop a quantitative statistical theory of transformers in the long-context regime by adopting the abstraction of contextual flow maps (CFMs): 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 nn 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 CFMs 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 n−1/dn^{-1/d} for general CFMs and parametric rate n−1/2n^{-1/2} for a restricted class of CFMs that includes transformers as a special case. 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.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
2 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:47 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
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.

Final justification

The rebuttal addressed the main technical concerns. The authors repaired the adjoint fixed-point argument, provided a weak-form derivation applicable to empirical measures, clarified the sampling assumptions, and corrected Theorem 2.2 to a fixed-iteration high-probability statement. Although this correction narrows the original claim, the forward propagation result, adjoint formulation, and backward stability framework remain substantive contributions. The remaining concerns primarily concern exposition, architectural scope, and the absence of simulations rather than correctness. I therefore maintain the accept recommendation.

Area Chair aduV · Meta-reviewOpenReview ↗
Read meta-review
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.

Final justification

The rebuttal addressed the main technical concerns. The authors repaired the adjoint fixed-point argument, provided a weak-form derivation applicable to empirical measures, clarified the sampling assumptions, and corrected Theorem 2.2 to a fixed-iteration high-probability statement. Although this correction narrows the original claim, the forward propagation result, adjoint formulation, and backward stability framework remain substantive contributions. The remaining concerns primarily concern exposition, architectural scope, and the absence of simulations rather than correctness. I therefore maintain the accept recommendation.

1 comment
Authors · CommentOpenReview ↗

Dear Area Chair,

Thank you for the overall positive assessment and for considering our submission promising. We have posted a public correction and summarize the corrected status below.


1. Propositions B.2-B.3 and stability of the adjoint.

We fixed the norm used in proving Propositions B.2-B.3 in our response to reviewer qsUz. More precisely, the fixed-point argument is repaired with the terminal-time weight eα(s−1)e^{\alpha(s-1)} in the corrected norm. We also correct the spatial derivative of the source term. These corrections preserve Theorem 4.2 and its Wasserstein stability rate.


2. Fréchet differentiability and empirical measures.

We revised our proof for the adjoint system using the weak form of the contextual flow. We included the arguments in On the proof of adjoint equation in Response to common issues. No density approximation or additional regularity assumption is needed. Theorem 3.1 remains unchanged.


3. Correct probability statement for Theorem 2.2.

Theorem 2.2 is stated for fixed kk. We included the corrected statements in On the precise statement of Theorem 2.2 of Response to common issues. Also, we remark that this is also a sharp statement in general: one does not expect the probability

P(sup⁡k∈[0,K]∥θk−θ^k∥L∞≤Cn−1/d)\mathbb{P} \left( \sup_{k \in [0,K]} \bigl\Vert{}\theta_k-\widehat\theta_k\bigr\Vert{}_{L^\infty} \leq C n^{-1/d} \right)

to be independent of the choice of K∈NK \in \mathbb{N}.


4. Transformer scope and exposition.

We will state explicitly the parameter-norm scaling behind the dimension-independent constants. Please see our response to reiewer qsUz, as well as the sections On the dimension-free constants and A stack of transformer blocks are treated as a continuous-depth ODE in Response to common issues.


Thank you again for the careful assessment.

Reviewer gok9OpenReview ↗
Rating
4/6
Confidence
3/5
Quality
3/4
Clarity
2/4
Significance
2/4
Originality
3/4
Contribution type
theory
Ethical concerns
NO or VERY MINOR ethics concerns only
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

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.

Formatting concerns

no

5 comments
Authors · CommentOpenReview ↗

We thank the reviewer for these constructive comments. Please find our detailed responses below.


Q: 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.

A: Please refer to A stack of transformer blocks are treated as a continuous-depth ODE in our response to common issues.


Q: 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.

A: Thank you for your valuable feedback. We will revised accordingly.


Q: Regarding the assumptions and verifying them for Transformers.

A: Because our general assumptions consist of standard regularity conditions, presenting them before the main results would distract readers from the core message of the paper. Regarding the technical conjecture in the discussion where the rate is mentioned to be generally optimal but could be suboptimal for specific cases, we have actually proved that Transformers can achieve parametric rate and added them to the revised manuscript. We refer to Additional Results on Parametric Rate for Transformers in the response to common issues for a more detailed explanation. Notably, we provide a comparison of the structured assumptions with the standard regularity assumptions in Section 5.


Q: Could the authors provide simulations verifying the rate from Theorem 2.1?

A: We appreciate the suggestion. Because this work focuses primarily on establishing the theoretical framework and formal convergence guarantees, and we have additionally proved the Transformers satisfies the parametric rate as stated above, we believe the rigorous mathematical derivations provided are self-contained. Given the significant computational resources required for empirical validation at scale, we leave comprehensive numerical verifications for future work.


Q: Could the authors expand the conclusion to discuss implications for specific emergent phenomena such as attention sinks?

A: We agree that investigating the link between our theoretical framework and emergent phenomena like attention sinks is a highly interesting direction. However, as our current scope is focused on the fundamental convergence properties of the model, we believe a proper treatment of specific emergent phenomena such as attention sinks would require a separate, dedicated study. We will briefly mention this as a compelling avenue for future work in the revised conclusion.

Reviewer gok9 · CommentOpenReview ↗

Remaining concerns

I thank the authors for their response. However, my concerns mostly remain. My main concern is the accessibility and relevance of the work to a broader audience.

  1. Can the authors please detail how they will describe the connection to transformer blocks in the introduction of the revised manuscript?

  2. Please provide a description of how the connection of other sections to Section 4 will be improved.

  3. A simulation does not require to be large scale a toy example is sufficient. I think this would strongly improve the manuscript.

  4. My point was not specific to attention sinks. The work should articulate what this formal derivation now makes possible that was not possible before, i.e., what new questions or results downstream become possible. Without this, the significance of the contribution is difficult to assess.

Addressing these points thoroughly would substantially strengthen the manuscript.

Authors · CommentOpenReview ↗

Response to remaining concerns (part 1)

Q1: Can the authors please detail how they will describe the connection to transformer blocks in the introduction of the revised manuscript?

A1: The intended connection is that, after introducing the standard residual scaling h=1/Lh=1/L, a stack of LL transformer blocks can be formally viewed as an Euler discretization of a continuous-depth contextual flow. More precisely, a residual network can be written as

xt+h=xt+hf(xt;θ),x_{t+h}=x_t + h f(x_t;\theta),

which can be seen as one-step Euler approximation of

ddtxt=f(xt;θ)\frac{\mathrm{d} }{\mathrm{d} t}x_t =f(x_t;\theta)

as h→0h \to 0. This interpretation is standard and has already been explained in many of the works cited in our paper and the response. Since reproducing this established discussion would be redundant and is not central to our contribution, we prefer to provide the clarification here and retain only the relevant references in the manuscript.


Q2: Please provide a description of how the connection of other sections to Section 4 will be improved.

A2: In the revision, we will add direct cross-references where each main theorem is stated. Before Theorem 2.1, we will point to Section 4.1 and explain that Theorem 4.1 controls the entire contextual flow by the initial Wasserstein discrepancy W1(μ0,μ^0)\mathrm{W}_1(\mu_0,\widehat{\mu}_0). Combining this deterministic stability estimate with the empirical Wasserstein law of large numbers and concentration yields the forward propagation-of-chaos bound. Before Theorem 2.2, we will point to Section 4.2 and explain that the adjoint representation together with stability of the forward-adjoint system, yields Lipschitz stability of the loss gradient. This produces a one-step recursion for the discrepancy between the population and empirical OGD trajectories. Iterating this recursion gives the finite-time result without strong regularization, while sufficiently strong ridge regularization makes the recursion contractive and yields the uniform-in-iteration result.


Q3: A simulation does not require to be large scale a toy example is sufficient. I think this would strongly improve the manuscript.

A3: We respectfully disagree, however, that a toy simulation would materially strengthen this primarily theoretical paper. This is a theory paper whose primary contribution is a general, rigorous analysis of finite-context approximation, rather than an empirical claim requiring experimental validation. Although a toy experiment could illustrate one particular choice of velocity field, data distribution, and parameter regime, it would provide only limited additional evidence for the general theory.

More importantly, the n−1/dn^{-1/d} rate in (2.5) is generally sharp. Indeed, at s=0s=0, its Wasserstein component reduces to W1(μ0,μ^0)\mathrm{W}_1(\mu_0,\widehat{\mu}_0), for which the classical Wasserstein law of large numbers has the optimal rate n−1/dn^{-1/d} when d≥3d\geq 3. Given this theoretical sharpness result and the focus of the paper, we prefer not to add a toy numerical example and instead keep the presentation focused on the general analysis.

Reviewer qsUzOpenReview ↗
Rating
4/6
Confidence
3/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
theory
Ethical concerns
NO or VERY MINOR ethics concerns only
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.

Formatting concerns

Did not notice any formation issues

3 comments
Authors · CommentOpenReview ↗

We thank the reviewer for these constructive comments. Please find our detailed responses below.


Q: Can Proposition B.2 and Proposition B.3 be repaired?

A: For Proposition B.2: define the Banach space

X\mathrel{:=}\bigl\\{\psi:\lbrack 0,1\rbrack \times\mathbb{R}^d\to\mathbb{R}\\,:\\,\psi(s,\cdot)\in C^1(\mathbb{R}^d),\\,\Vert{}\psi\Vert{}_X\lt \infty\bigr\\},

with norm

∥ψ∥X:=sup⁡s∈[0,1],z∈Rdeα(s−1)(∣ψ(s,z)∣∣z∣+1+∣∇zψ(s,z)∣),\Vert{}\psi\Vert{}_X \mathrel{:=} \sup_{s\in\lbrack 0,1\rbrack , \\ z\in \mathbb{R}^d} e^{\alpha(s-1)} \left( \frac{\vert{}\psi(s,z)\vert{} }{\vert{}z\vert{} + 1}+ \vert{}\nabla_z \psi(s,z)\vert{} \right),

for some α=α(A)>0\alpha = \alpha(\mathbf{A})\gt 0 be chosen in the rest of the proof, the proofs for Proposition B.2 then remain the same. In particular, the integral is thus controlled by

∥u∥X≤C(∥ψ∥Xsup⁡s∈[0,1]eα(s−1)∫s1eα(1−τ)dτ+1)=C(1α∥ψ∥Xsup⁡s∈[0,1](1−eα(s−1))+1)≤C(1α∥ψ∥X+1).\begin{aligned} \Vert{}u\Vert{}_X &\leq C\left(\Vert{}\psi\Vert{}_X \sup_{s \in \lbrack 0,1\rbrack }e^{\alpha(s-1)}\int_s ^1 e^{\alpha(1-\tau)} \\ \mathrm{d} \tau + 1\right) \\\\ &= C\left(\frac{1}{\alpha}\Vert{}\psi\Vert{}_X \sup_{s \in \lbrack 0,1\rbrack }(1-e^{\alpha(s-1)}) + 1\right) \leq C\left(\frac{1}{\alpha}\Vert{}\psi\Vert{}_X + 1\right) . \end{aligned}

Choosing α=4C(C+1)\alpha=4C(C+1), the map ψ↦u\psi\mapsto u leaves the ball ψ∈X:∥ψ∥X≤C+1\\{\psi\in X:\Vert{}\psi\Vert{}_X\leq C+1\\} invariant. The proof for Proposition B.3 keeps unchanged after establishing Proposition B.2 under this ∥ψ∥X\Vert{} \psi\Vert{}_{X} norm.


Q: 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?

A: Yes, we have revised the proof accordingly using the weak formulation. We refer to On the proof of adjoint equation in our response to common issues for further details.


Q: Is Theorem 2.2(ii) intended as a fixed-high probability bound with constants independent of kk, or as a simultaneous bound over all kk?

A: The theorem is intended as a simultaneous bound over all kk. Please refer to On the precise statement of Theorem 2.2 in our response to common issues for more details.


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

A: Please refer to Clarification of independence assumptions across OGD in our response to common issues.


Q: 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?

A: Yes, the Frobenius norm bound can indeed be replaced by the operator norm; please refer to our response On the dimension-free constants for a detailed explanation. Furthermore, our current verification straightforwardly generalizes to multi-head attention, and we will include this in a remark in the revised manuscript. Additionally, as noted in Line 257, post-layer normalization corresponds to a Riemannian setting. Exploring alternative attention scaling mechanisms and coupling strategies represents very promising directions, which we look forward to investigating in future work.

Reviewer qsUz · CommentOpenReview ↗

Thank you for providing further clarification. My main concerns are satified. I appreciate the authors' efforts and will incorporate this rebuttal into my final evaluation

Authors · CommentOpenReview ↗

Correction to Theorem 2.2

Dear Reviewer qsUz,

After a further proof check, we found that Theorem 2.2 of our initial response were stated too strong. It should be stated for fixed kk. We included the corrected statements in On the precise statement of Theorem 2.2 of Response to common issues. Also, we remark that this is a sharp statement in general: one does not expect the probability

P(sup⁡k∈[0,K]∥θk−θ^k∥L∞≤Cn−1/d)\mathbb{P} \left( \sup_{k \in [0,K]} \bigl\Vert{}\theta_k-\widehat\theta_k\bigr\Vert{}_{L^\infty} \leq C n^{-1/d} \right)

to be independent of the choice of K∈NK \in \mathbb{N}. We will correct this issue in the paper. Thank you again for your careful reading of our paper.

Reviewer 1q4YOpenReview ↗
Rating
5/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
theory
Ethical concerns
NO or VERY MINOR ethics concerns only
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

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.

Formatting concerns

None

2 comments
Authors · CommentOpenReview ↗

We thank the reviewer for these constructive comments. Please find our detailed responses below.


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

A: Thanks for pointing this out. Please refer to On the precise statement of Theorem 2.2 in our response to common issues.


Q: Can you provide a rigorous statement for the differentiability used in Theorem 3.1?

A: Yes. Please refer to On the proof of adjoint equation for further details.


Q: In Proposition B.2, what is the correct formula for ∇zf\nabla_zf?

A: Thanks for pointing out this issue. The correct formula is

(∇zf(s,z;ϕ))!⊤=−ps!⋅!(∇∇μV)[xs,μs;θ(s)](z)−∫Rd!∇ϕs(ξ)!⋅!(∇∇μV)[ξ,μs;θ(s)](z),dμs(ξ).(\nabla_z f(s,z;\phi))^{\\!\top}=-p_s\\!\cdot\\!(\nabla\mkern-10mu\nabla_{\mu} \mathcal{V})\lbrack x_s,\mu_s;\theta(s)\rbrack (z)-\int_{\mathbb{R}^d}\\!\nabla\phi_s(\xi)\\!\cdot\\!(\nabla\mkern-10mu\nabla_{\mu} \mathcal{V})\lbrack \xi,\mu_s;\theta(s)\rbrack (z)\\,\mathrm{d}\mu_s(\xi).

We will also revise the corresponding arguments.


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

A: Please refer to On the dimension-free constants in our response to common issues.


Q: What are the, if any, independence assumptions used for the OGD iterations?

A: Please refer to Clarification of independence assumptions across OGD in our response to common issues.


Q: A stack of transformer blocks are treated as a continuous-depth ODE.

A: Please refer to A stack of transformer blocks are treated as a continuous-depth ODE in our response to common issues.

Reviewer 1q4Y · CommentOpenReview ↗

Thank you for providing further clarification and addressing my questions. I appreciate the authors' efforts and will take these changes and clarifications into consideration for my final evaluation.

Comments on the paper

3 comments
Authors · CommentOpenReview ↗

Responses to Common issues

We thank the AC and the reviewers for these constructive comments. Please find our detailed responses to the common issues below.


On the precise statement of Theorem 2.2.

The theorem is intended for the trajectory. Take Theorem 2.2 (i) for example, we have rewritten it as: For η>0\eta\gt 0 and λ∈[0,η−1)\lambda\in\lbrack 0,\eta^{-1}), we let kc=(log⁡(1+Cη))−1k_c = (\log(1+C\eta))^{-1}. Then, for any k≤kck \leq k_c,

∥θk−θ^k∥L∞;≤;C,n−1/d,\bigl\Vert{}\theta_k-\widehat\theta_k\bigr\Vert{}_{L^\infty} \\;\leq\\; C\\,n^{-1/d},

with probability at least 1−2exp⁡!(−η−1n,1−2/d)1-2\exp\\!\left(-\eta^{-1}n^{\\,1-2/d}\right). Similarly, for Theorem 2.2 (ii), there exists ηc,λc\eta_c,\lambda_c depending on A\mathbf{A}, such that if η<ηc\eta\lt \eta_c and λ∈(λc,η−1)\lambda\in(\lambda_c,\eta^{-1}), then for any k∈Nk \in \mathbb{N},

∥θk−θ^k∥L∞;≤;C,n−1/d,\bigl\Vert{}\theta_k-\widehat\theta_k\bigr\Vert{}_{L^\infty} \\;\leq\\; C\\,n^{-1/d},

with probability at least 1−2exp⁡!(−η−1,n,1−2/d)1-2\exp\\!\left(-\eta^{-1}\\,n^{\\,1-2/d}\right). Also for Theorem 2.2 (ii), we have that for any K∈NK \in \mathbb{N}

sup⁡k∈[0,K]∥θk−θ^k∥L∞≤Cn−1/d\sup_{k \in [0,K]} \bigl\Vert{}\theta_k-\widehat\theta_k\bigr\Vert{}_{L^\infty} \leq C n^{-1/d}

with probability at least 1−2Kexp⁡!(−η−1,n,1−2/d)1-2K\exp\\!\left(-\eta^{-1}\\,n^{\\,1-2/d}\right). Indeed, we have also revised the application of the McDiarmid inequality to the supremum function as follows: Replacing one sample z(ℓ,i)z^{(\ell,i)} by an independent copy z‾(ℓ,i)\overline z^{(\ell,i)} produces a new initial measure μ‾0ℓ\overline\mu_0^\ell and new empirical OGD trajectories θ‾ll>ℓ\\{\overline\theta_l\\}_{l \gt \ell}. We have the bound that for any K∈NK \in \mathbb{N},

∣sup⁡k≤K∥θk−θ^k∥L∞−sup⁡k≤K∥θk−θ‾k∥L∞∣≤sup⁡k≤K∥θ^k−θ‾k∥L∞.\left\vert{}\sup_{k\leq K}\Vert{}\theta_k-\widehat\theta_k\Vert{}_{L^\infty}-\sup_{k\leq K}\Vert{}\theta_k-\overline\theta_k\Vert{}_{L^\infty} \right\vert{}\leq\sup_{k\leq K}\Vert{}\widehat\theta_k-\overline\theta_k\Vert{}_{L^\infty}.

For l=ℓl=\ell, since the perturbed trajectories agree before step ℓ\ell, applying Theorem B4 to the single OGD step gives

∥θ^ℓ+1−θ‾ℓ+1∥L∞≤ηC,W1(μ^0ℓ,μ‾0ℓ)≤ηC⋅2Rn.\Vert{}\widehat\theta_{\ell+1}-\overline\theta_{\ell+1}\Vert{}_{L^\infty}\leq\eta C\\,\mathrm{W}_1(\widehat\mu_0^\ell,\overline\mu_0^\ell)\leq\eta C\cdot\tfrac{2R}{n}.

Thus, for any k≥ℓk \geq \ell,

∥θ^k−θ‾k∥L∞≤;(1−η(λ−C))k−1−ℓ,2RCηn.\Vert{}\widehat\theta_{k}-\overline\theta_{k}\Vert{}_{L^\infty} \leq\\;(1-\eta(\lambda-C))^{k-1-\ell}\\,\tfrac{2RC\eta}{n}.

Because 1−η(λ−C)<11-\eta(\lambda-C) < 1 in Theorem 2.2 (ii), iterating gives the McDiarmid coefficient

ciℓ:=sup⁡k≤K∥θ^k−θ‾k∥L∞≤∥θ^ℓ+1−θ‾ℓ+1∥L∞≤ηC⋅2Rn.c_i^\ell \mathrel{:=} \sup_{k \leq K} \Vert{}\widehat\theta_{k}-\overline\theta_{k}\Vert{}_{L^\infty} \leq\Vert{}\widehat\theta_{\ell+1}-\overline\theta_{\ell+1}\Vert{}_{L^\infty}\leq\eta C\cdot\tfrac{2R}{n}.

and the previous proof strategy follows.


Authors · CommentOpenReview ↗

On the proof of adjoint equation.

We have revised the derivation using the weak formulation, and added a proof for the differentiability involved. Specifically, for every f∈C1(Rd)f\in C^1(\mathbb{R}^d), define the weak measure variation σs\sigma_s by

⟨σs,f⟩:=ddε∣ε=0∫Rdf(z),dμsε(z).\langle\sigma_s,f\rangle \mathrel{:=} \left.\frac{\mathrm{d}}{\mathrm{d}\varepsilon}\right\vert{}_{\varepsilon=0} \int_{\mathbb{R}^d}f(z)\\,\mathrm{d}\mu_s^\varepsilon(z).

Thus σs\sigma_s is a compactly supported distribution of order one, ⟨σs,1⟩=0\langle\sigma_s,1\rangle=0, and σ0=0\sigma_0=0 because μ0ε=μ0\mu_0 ^{\varepsilon} = \mu_0. The testwise differentiability of the right hand side can be proved using the differentiability of the flow map and we briefly described as follows: Let Φsε\Phi_s^\varepsilon be the characteristic map associated with μsε\mu_s^\varepsilon:

{∂sΦsε(x)=V(Φsε(x),μsε;θε(s)),Φ0ε(x)=x.\begin{cases} \partial_s\Phi_s^\varepsilon(x) =\mathcal{V}(\Phi_s^\varepsilon(x),\mu_s^\varepsilon; \theta^\varepsilon(s)),\\\\ \Phi_0^\varepsilon(x)=x. \end{cases}

The derivative of Φsε\Phi_s^\varepsilon in ε\varepsilon at ε=0\varepsilon=0 must satisfies the following equation

{∂sUs(a)=DxV(Φs(a),μs;θ(s))Us(a)+∫Rd∇∇μV[Φs(a),μs;θ(s)](Φs(b))Us(b),dμ0(b)+DθV(Φs(a),μs;θ(s))η(s),U0(a)=0,\begin{cases} \partial_sU_s(a) &= D_x\mathcal{V}(\Phi_s(a),\mu_s;\theta(s))U_s(a) + \int_{\mathbb{R}^d} \nabla\mkern-10mu\nabla_{\mu} \mathcal{V} \lbrack \Phi_s(a),\mu_s;\theta(s)\rbrack (\Phi_s(b)) U_s(b)\\,\mathrm{d}\mu_0(b) \\\\ &\quad + D_\theta\mathcal{V}(\Phi_s(a),\mu_s;\theta(s))\eta(s), \\\\ U_0(a) &= 0, \end{cases}

whose existence, uniqueness, and regularity, follow directly from similar arguments in Proposition B.2 and Proposition B.3. Applying a standard Gronwall argument to

sup⁡a∣Φsε(a)−Φs(a)ε−Us(a)∣,\sup_a\left\vert{} \frac{\Phi_s^\varepsilon(a)-\Phi_s(a)}{\varepsilon}-U_s(a) \right\vert{},

we can prove the uniform convergence and that ∂εΦsε∣ε=0=Us\left.\partial_\varepsilon\Phi_s^\varepsilon \right\vert{}_{\varepsilon=0}=U_s. Thus,

ddε∣ε=0∫Rdf(z),dμsε(z)=∫Rd∇f(Φs(a))⋅Us(a),dμ0(a),\left.\frac{\mathrm{d}}{\mathrm{d}\varepsilon}\right\vert{}_{\varepsilon=0} \int_{\mathbb{R}^d}f(z)\\,\mathrm{d}\mu_s^\varepsilon(z) = \int_{\mathbb{R}^d} \nabla f(\Phi_s(a))\cdot U_s(a) \\,\mathrm{d}\mu_0(a),

which proved the differentiability. As we use the weak formulation, the remaining parts of the derivation only requires the above testwise differentiability, so the desired conclusion follows. More specifically, for a smooth multiplier ϕs\phi_s and an absolutely continuous multiplier psp_s, define the token and measure constraint terms by

T(θε)=∫01ps⋅(x˙sε−V(xsε,μsε;θε(s)))ds\mathsf{T} (\theta^{\varepsilon}) = \int_0^1 p_s\cdot (\dot x_s^{\varepsilon} -\mathcal{V}(x_s^{\varepsilon},\mu_s^{\varepsilon}; \theta^{\varepsilon}(s))) \mathrm{d}s

and $M(θε)=∫Rdϕ1(z)dμ1ε(z)−∫Rdϕ0(z)dμ0(z)−∫01∫Rd[∂sϕs(z)+∇ϕs(z)⋅V(z,μsε;θε(s))]dμsε(z)ds.\mathsf M(\theta^\varepsilon) = \int_{\mathbb{R}^d}\phi_1(z) \mathrm{d} \mu_1 ^\varepsilon(z) -\int_{\mathbb{R}^d} \phi_0(z) \mathrm{d} \mu_0(z) - \int_0^1 \int_{\mathbb{R}^d} [ \partial_s \phi_s(z) +\nabla \phi_s(z) \cdot \mathcal{V}(z,\mu_s^\varepsilon;\theta^\varepsilon(s)) ] \mathrm{d}\mu_s^\varepsilon(z)\mathrm{d} s .$ We then define the augmented Lagrangian $L(θε)=ℓ(x1ε,y0)−T(θε)−M(θε),L(\theta^\varepsilon) = \ell(x_1^\varepsilon,y_0) -\mathsf T(\theta^\varepsilon) -\mathsf M(\theta^\varepsilon),$ and the rest proofs remain the same. A more detailed proof that contains all the details is added to the revised manuscript.

Authors · CommentOpenReview ↗

Clarification of independence assumptions across OGD.

We assume that conditional on the population stream (x0k,μ0k,y0k)k∈N\\{(x_0^k,\mu_0^k,y_0^k)\\}_{k\in\mathbb{N}}, the samples z(k,i)∼μ0kz^{(k,i)}\sim\mu_0^k are independent for all k∈Nk\in\mathbb{N} and i∈1,2,…,ni\in \\{1,2,\dots,n\\}. We will revised the corresponding statement in our paper.


A stack of transformer blocks are treated as a continuous-depth ODE.

A residual network can be written as

xt+1=xt+f(xt;θ),x_{t+1}=x_t + f(x_t;\theta),

which can be seen as one-step Euler approximation of

ddtxt=f(xt;θ).\frac{\mathrm{d} }{\mathrm{d} t}x_t =f(x_t;\theta).

For applications to general residual networks, we refer to [1,2,3]. For Transformers, we also refer to [4] for a more detailed explanation.

[1] Weinan E. A proposal on machine learning via dynamical systems. Communications in Mathematics and Statistics, 5:1 – 11, 2017

[2] Eldad Haber and Lars Ruthotto. Stable architectures for deep neural networks. Inverse problems, 34(1):014004, 2018.

[3] Ricky TQ Chen, Yulia Rubanova, Jesse Bettencourt, and David K Duvenaud. Neural ordinary differential equations. In NeurIPS, 2018.

[4] Borjan Geshkovski, Cyril Letrouit, Yury Polyanskiy, and Philippe Rigollet. A mathematical perspective on transformers. Bulletin of the American Mathematical Society, 62(3):427–479, 2025.


On the dimension-free constants.

The dimension-free constants were obtained under the assumption of the boundedness of ∥θ∥L2\Vert{}\theta\Vert{}_{L^2}. What we really computed are the explicit formulas using ∥θ∥L2\Vert{}\theta\Vert{}_{L^2} and RR for those parameters L0,M0,L1,L2,L3L_0,M_0,L_1,L_2,L_3 used in Assumption A. For transformer, although we didn't write in the proofs, one can actually compute those explicit formulas using the operator norms of Q,K,VQ,K,V matrices together with RR to obtain a dimension-free dependency also. Since our abstract contextual flow framework does not require θ\theta to be expressed in terms of matrix norms, we adopted the standard L2L^2-norm of θ\theta to present our main results cleanly. The norm ∥θ∥L2\lVert\theta\rVert_{L^2} may itself depend on the ambient dimension, but such dependence is model- and training-specific and therefore lies outside the scope of our theory. We will add a remark that for Transformers, under the boundedness of the operator norms of Q,K,VQ,K,V, one can also get dimension-free parameters L0,M0,L1,L2,L3L_0,M_0,L_1,L_2,L_3.


Additional Results on Parametric Rate for Transformers.

Regarding the technical conjecture in the discussion where the rate is mentioned to be generally optimal but could be suboptimal for specific cases, we have proved that for V\mathcal{V} with the structures in the following Assumption B, we can obtain the parametric rate n−1/2n^{-1/2} for sup⁡s∈[0,1]∣xs−x^s∣\sup_{s\in[0,1]} |x_s-\widehat x_s| in Theorem 2.1 and for sup⁡k≤kc∣θk−θ^k∣L∞\sup_{k \leq k_c}\\|\theta_k-\widehat\theta_k\\|_{L^\infty} (or sup⁡k∈N∣θk−θ^k∣L∞\sup_{k \in \mathbb{N}}\\|\theta_k-\widehat\theta_k\\|_{L^\infty} when λ>λc\lambda > \lambda_c) in Theorem 2.2, which is better than the current n−1/dn^{-1/d}-rate in Theorem 2.1 and Theorem 2.2 for general abstract contextual flows.

Assumption B. The vector field V(x,μ;θ)\mathcal{V}(x,\mu;\theta) has the form

V(x,μ;θ)=F(∫RdF(x,y;θ)dμ(y))+G(x;θ),\mathcal{V}(x,\mu;\theta) = \mathcal{F}\left(\int_{\mathbb{R}^d} F(x,y;\theta) \\ \mathrm{d} \mu(y)\right) + G(x;\theta),

where F(x,y;θ):Rd×Rd×Rp→RmF(x,y;\theta) : \mathbb{R}^d \times \mathbb{R}^d \times \mathbb{R}^p \to \mathbb{R}^m for some m∈Z+m \in \mathbb{Z}_+, F:Rm→Rd\mathcal{F}:\mathbb{R}^m \to \mathbb{R}^d, and G(x;θ):Rd×Rp→RdG(x;\theta) : \mathbb{R}^d \times \mathbb{R}^p \to \mathbb{R}^d. Also, there exists an L4>0L_4 \gt 0, such that for all x,y∈Rdx,y\in\mathbb{R}^d and θ∈Rp\theta\in\mathbb{R}^p,

∣F(x,y;θ)∣≤L4(∣x∣+∣y∣+∣θ∣+1),∥DF(x,y;θ)∥≤L4,∥D2F(x,y;θ)∥≤L4,\vert{}F(x,y;\theta)\vert{} \leq L_4(\vert{}x\vert{} +\vert{}y\vert{}+\vert{}\theta\vert{} +1), \quad \Vert{}DF(x,y;\theta)\Vert{}\leq L_4, \quad \Vert{}D^2 F(x,y;\theta)\Vert{}\leq L_4,

and

∣G(x;θ)∣≤L4(∣x∣+∣θ∣+1),∥DG(x;θ)∥≤L4,∥D2G(x;θ)∥≤L4.\vert{}G(x;\theta)\vert{} \leq L_4(\vert{}x\vert{}+\vert{}\theta\vert{} +1), \quad \Vert{}DG(x;\theta)\Vert{}\leq L_4, \quad \Vert{}D^2 G(x;\theta)\Vert{}\leq L_4.

Here, D,D2D,D^2 denotes the Jacobian and the Hessian of F,GF,G with respect to x,y,θx,y,\theta. Also, for all w∈Rmw \in \mathbb{R}^m,

∣F(w)∣≤L4(∣w∣+1),∥DF(w)∥≤L4,∥D2F(w)∥≤L4.\vert{}\mathcal{F}(w)\vert{} \leq L_4(\vert{}w\vert{}+1), \quad \Vert{}D\mathcal{F}(w)\Vert{} \leq L_4, \quad \Vert{}D^2\mathcal{F}(w)\Vert{} \leq L_4.

Specifically, Transformers satisfies these assumptions. Also, note that these assumptions imply the more generic Assumptions A. We will include these results in the paper, and compare this structured assumptions with the generic regularity assumptions in Section 5.

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

Missing a submission?

Loading the discussion…