- Rating
- 3
- Clarity
- 3
- Confidence
- 2
- Originality
- 2
- Quality
- 2
- Significance
- 2
Read review
Summary
The paper studies an attention-only transformer architecture for a Gaussian denoising task in which all tokens are corrupted by noise. The authors propose a two-stage empirical Bayes interpretation. In Stage 1 repeated Gaussian self-attention updates evolve the noisy tokens as particles, with the goal of refining an empirical approximation of the unknown clean prior. In Stage 2 a long-range residual preserves the original noisy input and uses it as a query for a posterior-mean readout against the refined particles.
Strengths and weaknesses
Strengths
- The two-stage empirical Bayes interpretation and, in particular, separating prior refinement from posterior readout, gives an interesting statistical role to depth and to the long-range residual.
- The part that seems genuinely new to me is Stage 2: after the particle dynamics, the original noisy input is preserved and used as the query for inference against the refined particles. This could have implications in practice.
Weaknesses
- I may be missing an important distinction in the authors' intended contribution (please correct me if I am wrong): from my understanding, Eq. (1), equivalently Stage 1 of Algorithm 1, appears to overlap very strongly with the in-context manifold denoising dynamics of Rosu et al., Section 3. Rosu et al. introduce the same kernel-weighted attention update in Eq. (4), prove its implementation by attention in Lemma 2, and state in Lemma 3 that their manifold denoising algorithm is exactly this update. The present Stage 1 seems to use essentially the same Gaussian-kernel residual averaging mechanism, up to notation, including the all-token noisy denoising task and the fixed-bandwidth kernel update. The main difference I see is that Rosu et al. formulate the clean distribution as supported on a manifold, whereas this paper works directly on . This is a difference in setting, but I do not see it as changing the underlying attention dynamics substantially. Could the authors give more details about the difference between their approach and Rosu et al.?
- The scaling is interesting, since it suggests the finite-sample regime where the kernel estimate should approximate the desired vector field. However, in the current version it is mostly intuitive. If this scaling is meant to be a main contribution, it should be stated and proved as a precise theorem or estimate.
- The connection between mean-field self-attention and diffusion dynamics, forward or backward, is also already well established in prior work. For example, Sinkformers proves diffusion/heat-equation limits in Theorem 1 and discusses the corresponding mean-field attention dynamics in Proposition 4, for the same Gaussian attention on . Related results also appear in Bruno et al., Proposition 3.9, on . The paper would benefit from clarifying more precisely what is new in its attention-diffusion interpretation.
- Regarding Theorem 5.1, I think the relation to Castin et al. should be discussed more explicitly. Castin et al. already prove the mean-field limit of essentially the same type of attention dynamics on for compactly supported measures. The interesting part here would be the extension to non-compact data. However, much of the difficult part seems to be absorbed into the definition of the admissible class , which appears to assume the stability and recovery properties needed for the conclusion. Thus the theorem reads more like a conditional consistency statement than a new general mean-field theorem.
- The Gaussian case is analyzed more explicitly, which is useful. However, in this case the dynamics is explicit. Moreover, Gaussian preservation and the reduction of transformer PDEs to mean/covariance equations were already studied by Castin et al. I therefore find the Gaussian analysis useful for understanding Stage 2, but not by itself a substantially new mean-field phenomenon.
I think the most interesting contribution is the two-stage empirical Bayes composition, especially the Stage 2 long-range-residual readout. My concern is that the other components carrying much of the mathematical weight of the paper (Stage 1, the attention-denoising dynamics, the score/reverse-diffusion interpretation, and the compact support mean-field limit) seem already substantially present in prior work. I am therefore not fully convinced that the new part is developed enough in the current version. That said, I would be happy to reconsider my score if the authors can clarify more precisely what is new, what is inherited from prior work, and whether there are additional technical contributions of the two-stage empirical Bayes mechanism that I have not fully appreciated.
References
- Sander, Michael E., et al. "Sinkformers: Transformers with doubly stochastic attention."
- Castin, Valérie, et al. "A unified perspective on the dynamics of deep transformers."
- Bruno, Giuseppe, et al. "A multiscale analysis of mean-field transformers in the moderate interaction regime."
- Rosu, Paul, et al. "From softmax to score: Transformers can effectively implement in-context denoising steps."
Questions
- What exactly is new in Stage 1 compared with Rosu et al., Section 3?
- How is the forrward/reverse-diffusion interpretation different from Rosu et al., Sander et al., and Bruno et al.?
- Is the type scaling a formal contribution? If so, can it be stated as a theorem or estimate?
- What is the precise relation between Theorem 5.1 and the compact-support mean-field limit of Castin et al.?
Limitations
yes
Paper formatting concerns
no
Final justification
From my point of view, the theoretical contribution of the paper remains limited, especially in light of the existing literature discussed during the rebuttal. For this reason, I keep my original score.
We thank the reviewer for the detailed comparison with Rosu et al., Sander et al., Bruno et al., and Castin et al. Three of the four are already cited, though not at the depth the reviewer points to; we are grateful for the specificity. The fourth, Castin et al., we simply missed. It is directly relevant, and we regret the omission. The reviewer also identifies a genuine presentation problem, which we address below.
What kind of contribution this is. Our contribution is a formulation and abstraction, not a new attention primitive; not signposting that invites the reading that novelty is claimed for the dynamics themselves. It is not: Gaussian attention is an established variant (Chen et al., 2021), and the Stage 1 update, the attention–diffusion connection, compact-support mean-field machinery, and Gaussian closure are all established results we build on. We generalize the in-context denoising task of Smart et al. (ICML 2025) to the all-tokens-corrupted regime, rather than only the query. This harder task is what motivates Stage 1: the memory used for posterior readout is itself corrupted, so the architecture first refines that empirical memory before querying it.
Formulating this as two-stage empirical Bayes supplies a well-posed question and a vocabulary (prior construction versus posterior readout) assigning distinct, checkable roles to depth and the long-range residual. Stage 1 draws on the mean-field attention-dynamics literature for tractability; in return, empirical Bayes supplies a well-posed task on which those dynamics can be interpreted. Theorem 5.1 makes one instance of that vocabulary rigorous, and in doing so takes a step on an established problem: particle-level recovery for noncompactly supported data. We do not aim to solve empirical Bayes with transformers; we use EB because confronting attention with a well-studied problem makes the mechanism legible. More broadly, we hope that deriving architectural components from well-posed statistical tasks may be one route toward models that are interpretable by construction rather than only through post-hoc analysis.
Since the weakness and question lists overlap, we answer under the four questions.
Q1 / W1: Stage 1 relative to Rosu et al. We agree with the reviewer's factual comparison: up to notation and residual-step conventions, our Eq. (1) is the same update studied in Rosu et al., cited prominently throughout, including at the first mention of the shared mean-shift primitive (Fukunaga & Hostetler, 1975) in Section 3, L100–102. The issue is not omission, but that we did not clearly distinguish their expressivity results from the statistical formulation built on that shared primitive.
The distinction is structural. In Rosu et al.'s Section 3 (all-token noise), every particle evolves and the denoised estimate of each token is the evolved particle itself; no query is held outside the flow, so there is no separate posterior readout. In their Section 4 (score-based cross-attention), the memory is a clean, frozen set of training samples while only the query is noisy, and their in-context variant likewise supplies clean contextual examples (the configuration also studied in Smart et al. 2025). So no configuration there estimates a prior from a fully corrupted context and then queries it.
Our composition addresses that missing regime: the corrupted context is evolved into a particle estimate of the clean law, the original noisy observation is preserved outside the dynamics, and a second attention operation performs posterior averaging against the refined memory. Theorem 5.1 shows that posterior readout against a prior estimated from corrupted samples converges, through the stated sequential limits, to the Bayes-optimal denoiser. The two papers also ask different questions: theirs is which algorithms attention can implement; ours is what statistical computation the network carries out in-context.
Q2 / W3: Forward/reverse diffusion. We agree that the general attention--diffusion connection was already established by Sander et al., Bruno et al., Rosu et al., and related work, and we will remove any wording suggesting otherwise.
What we add is the role the empirical Bayes problem assigns to the flow. For a single corruption level, a fixed-bandwidth dynamics is run only to a finite, task-calibrated horizon. In normalized score-flow time the leading horizon is s∗≈σ2/2, with depth determined by (β,η,σ2). This horizon is set by the statistical task (the corruption level σ2) not by any timescale intrinsic to the dynamics, such as a blow-up or clustering time of the flow. Where the interacting-particle literature emphasizes long-time behaviour, the denoising formulation gives a reason the dynamics should not run indefinitely. To our knowledge this noise-calibrated use of the horizon does not appear in prior analyses of these dynamics. We restrict the novelty claim to this use, not to the diffusion connection itself.
Q3 / W2: Particle-count scaling. We agree. The condition Nρˉβ−d/2→∞ is an occupancy heuristic for the expected number of samples in a kernel neighborhood, not a formal statement. We take the reviewer's point that the relevant object is the empirical vector field: occupancy is the weaker requirement, since controlling a kernel density gradient classically demands more than controlling the density at the same bandwidth, and the submission establishes neither. We will define ρˉ, label the statement heuristic, and state the finite-sample estimate as open; Theorem 5.1 proceeds by sequential limits and does not rely on this scaling.
Q4 / W4--W5: Castin et al. and the status of Aτ. Our denoising law begins from f0=γτ∗P0, which has full support even when P0 is compactly supported, so noncompactness is intrinsic to the problem. Castin et al.'s particle-to-mean-field and stability results are stated for compactly supported initial data. Their noncompact analysis is a well-posedness and closure result at the PDE level, exploiting Gaussian invariance to reduce the PDE to mean/covariance ODEs and establish uniqueness within the Gaussian ansatz; it contains no particle-approximation or stability statement for noncompactly supported data. Both the compact-support machinery and the Gaussian closure are established results we build on directly.
What a particle-to-posterior theorem requires, and what our Gaussian case supplies, is precisely the missing particle statement: convergence of finite truncated particle systems to the noncompact Gaussian flow. Our proof combines convergence for the renormalized hard truncation at fixed (β,R); removal of R at the deterministic level via uniform moment and action bounds, compactness, and uniqueness of the limiting flow; continuity of the posterior map on bounded query sets; and the large-β limit. For non-Gaussian priors Gaussian invariance is unavailable, so neither ingredient applies directly.
We also agree without reservation about Aτ: its definition packages both hard-truncation admissibility and deterministic recovery, so the general theorem is a conditional transfer result for priors with those properties, not an unconditional mean-field theorem on Rd. We will remove the phrase "well-behaved priors", foreground the Gaussian case where both properties are proved, and explain that the Gaussian calculation establishes nonemptiness and supplies the reference solution for the truncation-removal argument.
Response to the reviewer's closing invitation.
What is established elsewhere, and used here: classical empirical Bayes methodology; the mean-shift Stage 1 primitive, shared with Rosu et al.; the attention--diffusion connection; compact-support mean-field theory and Gaussian closure (Castin et al.); Gaussian-kernel attention as an architectural variant (Chen et al., 2021).
What is new: (i) the two-stage composition, in which a fully corrupted context is refined into a particle prior and then queried by the preserved original observation; (ii) a sequential particle-to-posterior recovery theorem for that composition, including a particle-approximation statement for the noncompact Gaussian case absent from the PDE-level literature; (iii) a noise-calibrated finite stopping horizon and its interpretation as a statistical role for depth.
What we would add. A value of the formulation, in our view, is not that it replaces existing analyses of attention, but that it places several previously separate observations within a single mathematical framework. It gives a common statistical account of (i) where the stored patterns in associative-memory accounts of attention (e.g., Ramsauer et al., 2021) come from: Stage 1 constructs them in-context from a corrupted prompt; (ii) why preserving the original noisy token through a long-range residual naturally serves posterior inference, offering a mechanistic interpretation of attention residuals' reported empirical benefits; and (iii) whether the clustering emphasized in mean-field analyses is only a dynamical pathology, or has a functional role (we observe that Stage 2 inference remains accurate even after the particles concentrate into clusters, suggesting it may yield a posterior-sufficient surrogate, an empirical observation we will label as such). These interpretations arise from studying the two-stage decomposition proposed here rather than from the Stage 1 dynamics alone.
We are grateful to the reviewer for inviting us to state this directly, and for a detailed reading that has sharpened how we present the contribution.