Optimal In-context Adaptivity and Distributional Robustness of Transformers
Update NeurIPS 2026 submission 5YXJKkV5dy: 11 notes
@openreview[bot] · 2026-11-24 15:45 UTC · e0d628aba9c9 ·
reviews/openreview/5yxjkkv5dy/notes/0ah9mpfyg7.json added
+++ b/reviews/openreview/5yxjkkv5dy/notes/0ah9mpfyg7.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "0ah9MpfyG7",+ "replyTo": "Urwtautz9g",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "comment": "To help clarify our paper’s overall novelties and contributions, we would like to briefly summarise our main conceptual and technical advances below. We will further clarify this in our revised paper to better position our results within the literature.\n\n1. Proposition 2.1 provides a general framework to study the adaptivity and performance of ICL under distribution shift. It separates the ICL risk into a pretraining term, measuring the proximity of the pretrained Transformer to the posterior regression function adjusted by the degree of distribution shift, and a statistical error term measuring the performance of the posterior regression function on new tasks. In contrast, most existing analyses of ICL assume that the test distribution is the same as the pretraining distriibution. In practice, test tasks naturally exhibit diverse difficulties and distribution shifts. To our knowledge, our Proposition 2.1 provides the first general framework to study the performance of ICL under these settings.\n\n2. To control the pretraining term, we develop universal approximation and learnability theory under mild boundedness assumptions to show that the pretraining term can be made arbitrarily small with large Transformers and sufficient pretraining data. These results concern softmax-attention Transformers, with the learnability result established for standard activations in the FFN layers, including ReLU, GELU and SiLU. Obtaining a more quantitative guarantee under additional regularity or smoothness assumptions is an important direction, but we leave it for future work.\n\n3. We obtain task-specific optimal rates that are adaptive to task difficulties for the posterior regression function under nonparametric regression and multi-index problems. Our result is not an immediate consequence of classic posterior contraction theory (e.g. Ghosal, Lember and van der Vaart (2008)), which are typically formulated as concentration statements of the form $\\pi(d(P,P_0) > \\epsilon_n | \\mathcal{D}_n) \\to 0$. Such statements do not directly imply rates of convergence of the posterior regression function as required by Proposition 2.1. We thus modify the posterior contraction arguments to obtain rates for the posterior regression function under a general setting (see Appendix E2), which is essential for deriving our ICL risk guarantees. \n\n4. Our Theorem 4.4 provides matching lower bounds for the ICL excess risk averaged over the task distribution, even when the estimator is allowed to depend on the task distribution. This shows that our rates of convergence obtained in the previous sections are optimal. Our lower bounds differ from the minimax lower bounds based on worst-case tasks, commonly used in previous ICL theory. In particular, our averaged risk formulation is more appropriate since the performance of ICL is also evaluated over a distribution of tasks.\n\nFinally, we provide a high-level summary of the main messages of our paper: A Transformer pretrained on a mixture of tasks of varying difficulties can adapt to the difficulty of a new test task in-context and achieves the corresponding optimal prediction rate; these guarantees continue to hold under certain distribution shifts between the pretraining and test tasks."+ },+ "createdAt": "2026-08-04T10:33:37.999Z",+ "modifiedAt": "2026-11-19T17:17:16.145Z",+ "url": "https://openreview.net/forum?id=5YXJKkV5dy¬eId=0ah9MpfyG7",+ "license": "CC-BY-4.0"+}
reviews/openreview/5yxjkkv5dy/notes/42z7tu9jqe.json added
+++ b/reviews/openreview/5yxjkkv5dy/notes/42z7tu9jqe.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "42Z7tu9Jqe",+ "replyTo": "YSIqRvAUAM",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "comment": "**Question 3**\n\nWe apologise for the potential confusion of our phrasing. What we mean by that sentence is that when the data generating mechanism is very complicated so that no explicit algorithms are known to be optimal, Transformers can still approximately learn the posterior regression function via empirical risk minimisation, whereas traditional methods for tabular data (e.g. random forests) may be suboptimal. We did not claim that we prove that ICL outperforms traditional algorithms, we only say that Proposition 2.1 can be used to provide some explanations for the empirical success of ICL compared to traditional methods on tabular data. We will revise this sentence to avoid confusion in our revision.\n\n**Question 4**\n\nAs we mentioned in our response to Weakness 1, under additional assumptions on the posterior, it is possible to obtain polynomial bounds on $T$ and the Transformer size. We also provide additional empirical results to support this polynomial decay. However, under only the mild conditions of our paper, it is generally impossible to obtain uniform quantitative bounds.\n\n**Question 5**\n\nThe constant $C$ indeed depends on the dimension $d$ and other problem parameters. Our theory operates in the fixed-dimension nonparametric regime, which is typical in nonparametric statistics and posterior contraction theory. An explicit expression for $C$ could in principle be obtained by tracing constants through the prior mass bounds, metric-entropy estimates, testing argument etc. This would, however, be lengthy and conservative, as is typical for general posterior contraction theory. We have not optimised these constants and therefore do not claim a sharp dimension-dependent constant.\n\n\n**Question 6**\n\nOur Theorem 4.2 is interpreted as follows: for a given sample size $n$ and a given robustness budget $\\kappa$, we can find a pretrained Transformer such that it is adaptive to task difficulties and achieves the optimal convergence rate for all test distributions in a $\\chi^2$-divergence ball of radius $\\kappa$. The dependence of the architecture on the problem parameters is very common in statistical learning theory for neural networks and Transformers (e.g. Schmidt-Hieber 2020, Bai et al 2023, Wakayama and Suzuki 2025). We agree that Transformers with a fixed architecture can only achieve the optimal rate of convergence when $\\kappa$ is below a certain threshold; see our response to weakness 2 for more discussion. To illustrate the effect of different distribution shifts, we have added additional simulations; please see also our response to weakness 2.\n\n**References**\n\nBai, Y., Chen, F., Wang, H., Xiong, C. and Mei, S. (2023) Transformers as statisticians: Provable in-context learning with in-context algorithm selection. NeurIPS.\n\nSchmidt-Hieber, J. (2020) Nonparametric regression using deep neural networks with ReLU activation function. Annals of Statistics.\n\nWakayama, T. and Suzuki, T. (2025) In-context learning is provably Bayesian inference: a generalization theory for meta-learning. arXiv:2510.10981."+ },+ "createdAt": "2026-08-01T04:50:29.051Z",+ "modifiedAt": "2026-11-19T17:17:16.418Z",+ "url": "https://openreview.net/forum?id=5YXJKkV5dy¬eId=42Z7tu9Jqe",+ "license": "CC-BY-4.0"+}
reviews/openreview/5yxjkkv5dy/notes/ajtdigb2fe.json added
+++ b/reviews/openreview/5yxjkkv5dy/notes/ajtdigb2fe.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "AJtDiGB2fe",+ "replyTo": "JUmrj63Uap",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "comment": "Thanks again for your time and thoughtful feedback. We appreciate your positive assessment of our work."+ },+ "createdAt": "2026-08-04T07:08:47.773Z",+ "modifiedAt": "2026-11-19T17:17:16.147Z",+ "url": "https://openreview.net/forum?id=5YXJKkV5dy¬eId=AJtDiGB2fe",+ "license": "CC-BY-4.0"+}
reviews/openreview/5yxjkkv5dy/notes/jumrj63uap.json added
+++ b/reviews/openreview/5yxjkkv5dy/notes/jumrj63uap.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "JUmrj63Uap",+ "replyTo": "TDGoz2myJ3",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Reviewer aKpi",+ "content": {+ "comment": "I will keep my original rating. I believe this paper has good quality and is above the acceptance threshold."+ },+ "createdAt": "2026-08-01T06:29:53.037Z",+ "modifiedAt": "2026-11-19T17:17:16.189Z",+ "url": "https://openreview.net/forum?id=5YXJKkV5dy¬eId=JUmrj63Uap",+ "license": "CC-BY-4.0"+}
reviews/openreview/5yxjkkv5dy/notes/ro1iqpb16f.json added
+++ b/reviews/openreview/5yxjkkv5dy/notes/ro1iqpb16f.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "Ro1Iqpb16f",+ "replyTo": "42Z7tu9Jqe",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Reviewer EdP3",+ "content": {+ "comment": "Thank you for the detailed response. I still have the following concerns and questions.\n\nW1, Q4: I understand the authors’ point. However, Section 4 considers a much more structured setting--Gaussian regression with a specific Besov-mixture prior. I see the difference between the assumptions in Wakayama and Suzuki and those in this paper, but the response does not explain whether this additional structure can be used to obtain a quantitative bound for the posterior predictor. Could the authors clarify whether such a result is still unavailable in this setting, or whether it is simply left for future work?\n\nI also found the new experiment in the global response difficult to interpret. Could the authors clarify whether the reported numbers correspond to independently trained models or to checkpoints from a single training run, how the number of pretraining sequences was calculated, and what specific claim the experiment is intended to support?\n\nQ5. I understand that Proposition 4.1 is mainly intended for the classical fixed-d nonparametric regime. However, my broader concern is that the theory quantifies only the convergence rate in terms of n. Thus, the analysis is essentially a posterior-contraction result, similar to what is studied in classical nonparametric theory. I believe that a better theoretical understanding of ICL should also account for the number of pretraining tasks T, which plays a central role in making ICL possible. Without such a characterization, it remains unclear to me how much the current n-dependent theory advances our understanding of ICL itself.\n\nI will therefore keep my current score."+ },+ "createdAt": "2026-08-02T08:10:06.227Z",+ "modifiedAt": "2026-11-19T17:17:16.183Z",+ "url": "https://openreview.net/forum?id=5YXJKkV5dy¬eId=Ro1Iqpb16f",+ "license": "CC-BY-4.0"+}
reviews/openreview/5yxjkkv5dy/notes/rra0yvoenv.json added
+++ b/reviews/openreview/5yxjkkv5dy/notes/rra0yvoenv.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "rra0YvOENV",+ "replyTo": "Ro1Iqpb16f",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "comment": "Thank you for your follow-up questions.\n\n**W1, Q4**\n\nIn Section 4, we only assume that the densities of the random wavelet coefficients are bounded above and below on [-1,1], without imposing other regularity conditions on the densities. Although the wavelet construction and Gaussian likelihood provide much more structure than in our general setting of section 3, it is not immediate from our current assumptions that the posterior regression function satisfies a global smoothness condition with constants that are explicit in $n$ and the other problem parameters. Such a result may be obtainable under additional regularity assumptions on the wavelet coefficient priors, but this would require a separate analysis and is left for future work.\n\n> I also found the new experiment in the global response difficult to interpret......\n\nThe empirical results mentioned in the global response are obtained from the checkpoints of a single training run, rather than independently trained models. We used models saved at every 10,000 optimisation steps, from 60,000 to 200,000 steps, to compute their test MSEs. Since each optimisation step uses 576 pretraining sequences, the total number of pretraining sequences at each checkpoint is $T = 576 \\times$ (#optimisation steps). We have also clarified our interpretation of this experiment: In the log-log plot, we first observe an approximately linear relationship, suggesting a polynomial decay of the MSE with respect to $T$, for $T$ smaller than some threshold; then, the curve plateaus, which is consistent with our theory that the pretraining error is negligible relative to the posterior contraction error for large $T$, so that the latter begins to dominate the MSE. \n\n**Q5**\n\n> Thus, the analysis is essentially a posterior-contraction result......\n\nWe thank the reviewer for clarifying this broader concern. However, we would like to emphasise that our contribution is not merely an application of existing posterior contraction results. Below, we summarise some of our main contributions.\n\n1. Proposition 2.1 provides a general framework to study the adaptivity and performance of ICL under distribution shift by making connections with posterior contraction theory. It separates the ICL risk into a pretraining term, measuring how well the Transformer approximates the posterior regression function, and another term measuring the performance of the posterior regression function on new tasks. We also show that the pretraining term in the risk bound can be made negligible with a large Transformer and suffiecient pretraining data. Without these results, posterior contraction alone can only characterise the behaviour of the ideal Bayesian predictor. To our knowledge, our risk decomposition and general connection with posterior contraction theory are novel. We believe this is an important conceptual contribution, as most existing works assume that the test distribution coincides with the pretraining prior, which is unlikely to hold in practice.\n\n2. Classic posterior contraction results (e.g. Ghosal, Lember and van der Vaart (2008)) are typically formulated as concentration statements of the form $\\pi(d(P,P_0) > \\epsilon_n | \\mathcal{D}_n) \\to 0$. But this does not directly imply rates of convergence of the posterior regression function as required in Proposition 2.1. Our analysis modifies the posterior contraction arguments to obtain explicit rates for the posterior regression function, which is essential for deriving the ICL risk guarantees.\n\n3. Our lower bound is formulated for the ICL excess risk averaged over the task distribution. This differs from the usual minimax lower bounds based on the worst-case task, commonly used in previous ICL theory. We believe that the averaged risk formulation better reflects the nature of ICL, in which performance is evaluated over a distribution of tasks.\n\n> ......, it remains unclear to me how much the current n-dependent theory advances our understanding of ICL itself.\n\nThe parameter $n$ is the number of examples in the prompt, and understanding how prediction accuracy scales with $n$ is therefore a central statistical question for ICL. Our results show that a pretrained Transformer can adapt to unknown task difficulty and achieve the corresponding optimal rate (in terms of $n$), even under certain distribution shifts. This $n$-dependent rate in fact reflects the fundamental difficulty of ICL, as shown by our lower bound. In many prior analyses with explicit $T$-dependent bounds, the $T$-dependent terms are not shown to be sharp. Instead, $T$ is often chosen to be sufficiently large so that the pretraining term is no larger than the optimal $n$-dependent rate. Nevertheless, we agree that charcterising the required number of pretraining tasks is an important component of a complete theory of ICL, but we believe that the optimal $n$-dependent rate remains important as it characterises the fundamental statistical difficulty of prediction from a finite prompt."+ },+ "createdAt": "2026-08-03T04:04:58.923Z",+ "modifiedAt": "2026-11-19T17:17:16.162Z",+ "url": "https://openreview.net/forum?id=5YXJKkV5dy¬eId=rra0YvOENV",+ "license": "CC-BY-4.0"+}
reviews/openreview/5yxjkkv5dy/notes/tdgoz2myj3.json added
+++ b/reviews/openreview/5yxjkkv5dy/notes/tdgoz2myj3.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "TDGoz2myJ3",+ "replyTo": "Ij570MKuOF",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "comment": "Thank you for your valuable feedback. We are grateful for your recognition of the strengths of the work and take this opportunity to address your questions and the issues you raised point by point. \n\n\n**Question 1**\n\nIn a classification problem with cross entropy loss, the conclusion of Proposition 2.1 remains valid if we replace the posterior regression function by the posterior predictive distribution (i.e. the conditional distribution of a new response given the observed data). The general posterior contraction theory, Theorem E.1 in our paper, provides the rate of convergence on the Hellinger distance between the posterior distribution and the true data distribution, and this result is not restricted to regression problems. Thus, we expect a similar proof strategy would work for classification problems. \n\n\n**Question 2**\n\nSince the finite-sample question is raised by all three reviewers, we have provided a global response under the AC's meta review. In particular, we distinguish the explicit finite-$T$ oracle inequality already established in Lemma C.10 from the remaining non-explicit dependence on the Transformer architecture size. We also explain why quantitative approximation rates are generally impossible under our current assumptions, and how additional regularity assumptions on the posterior regression function could potentially yield polynomial bounds on the Transformer size and the number of pretraining tasks. Finally, we include new experiments examining the MSE as a function of the number of pretraining sequences.\n\n**Question 3**\n\nIn Proposition 2.1 of our paper, the ICL excess risk is upper bounded by the sum of two terms in Eq (4), where the first term is architecture-specific as it depends on the empirical risk minimiser, but the second term only involves the posterior regression function. This splits the ICL problem into two independent problems, and our universal approximation theory (Theorem 3.1) deals with the first term of Eq (4), while our posterior contraction theory handles the second term. In principle, any sufficiently expressive architecture would yield the same conclusions as Transformers as long as the first term of Eq (4) can be made small. Our current paper does not explain the advantage of Transformers compared with other architectures, but this could be done, for example, by showing that Transformers can approximate certain posterior regression functions more efficiently than other models.\n\n\n**Question 4**\n\nIn our framework, a “new task” can mean either a previously unseen realisation from the task family represented by the pretraining prior, or a task lying outside the support of the prior. Our results cover the former: the test task need not have appeared during pretraining, but its distribution must belong to the support of the relevant prior component. The condition on the $\\chi^2$ divergence permits reweighting of the in-support tasks but does not allow positive probability to be assigned to genuinely out-of-support tasks. Our current theory does not provide a guarantee for a new task outside the support of the pretraining prior. Without additional assumptions relating a new task to the pretraining task family, no nontrivial guarantee is generally possible. The deterioration observed in our out-of-support distribution shift experiments is consistent with this limitation."+ },+ "createdAt": "2026-08-01T04:55:28.368Z",+ "modifiedAt": "2026-11-19T17:17:16.191Z",+ "url": "https://openreview.net/forum?id=5YXJKkV5dy¬eId=TDGoz2myJ3",+ "license": "CC-BY-4.0"+}
reviews/openreview/5yxjkkv5dy/notes/uaikfusj9i.json added
+++ b/reviews/openreview/5yxjkkv5dy/notes/uaikfusj9i.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "UaIKfuSJ9i",+ "replyTo": "MXrqgURm7B",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "comment": "Thank you for your valuable feedback. We are grateful for your recognition of the strengths of the work and take this opportunity to address your questions and the issues you raised point by point. \n\n**Weaknesses 1 and 2**\n\nSince the finite-sample question is raised by all three reviewers, we have provided a global response under the AC's meta review. In particular, we distinguish the explicit finite-$T$ oracle inequality already established in Lemma C.10 from the remaining non-explicit dependence on the Transformer architecture size. We also explain why quantitative approximation rates are generally impossible under our current assumptions, and how additional regularity assumptions on the posterior regression function could potentially yield polynomial bounds on the Transformer size and the number of pretraining tasks. Finally, we include new experiments examining the MSE as a function of the number of pretraining sequences.\n\n\n**Question 1**\n\nWe use the $\\chi^2$-divergence because it can be applied naturally to the squared loss pretraining error through a change-of-measure and Cauchy–Schwarz argument. A KL constraint alone does not generally imply the same inequality; obtaining a comparable result would require additional assumptions and may lead to less favorable dependence. Total variation can be used when the loss is uniformly bounded to obtain an additive bound of order $\\mathrm{TV}(\\mu,\\pi)$, but this does not lead to a vanishing error under distribution shifts as the model size and number of pretraining sequences grow, and is therefore typically weaker for our purpose. More generally, other Rényi divergences could be used in conjunction with Hölder's inequalities, and the resulting guarantee would depend on the corresponding higher moments of the prediction error.\n\n\n**Question 2**\n\nThe proof strategy of this paper does not provide the same rate optimality guarantee under out-of-support distribution shifts. For arbitrary out-of-support distribution shifts, it is generally impossible to obtain nontrivial guarantees without further assumptions. Our experiments in Appendix I3 also show the deterioration of the performance of Transformers under out-of-support distribution shifts.\n\n\n**Question 3**\n\nThe posterior adapts to the unknown smoothness level $\\beta$ in the sense that the posterior regression function achieves the optimal rate of convergence corresponding to that $\\beta$, without knowing it in advance. Our current theory does not cover the case in which $\\beta$ is outside the prior support. We think this is a natural setting to study the effect of out-of-support distribution shifts for Transformers, but this will require different analyses and is left for future work. We will add simulation results in our revision to investigate this problem empirically.\n\n\n**Question 4**\n\nOur current proof relies on non-causal attention and therefore does not directly establish universal approximation for causal Transformers. We nevertheless expect that an analogous result should hold for causal attention, but this would require a separate proof. We use non-causal attention because our primary setting is tabular regression, where the in-context examples are exchangeable and their ordering carries no information. Non-causal attention therefore provides a natural architecture for aggregating the context without imposing an artificial sequential structure."+ },+ "createdAt": "2026-08-01T04:45:53.111Z",+ "modifiedAt": "2026-11-19T17:17:16.570Z",+ "url": "https://openreview.net/forum?id=5YXJKkV5dy¬eId=UaIKfuSJ9i",+ "license": "CC-BY-4.0"+}
reviews/openreview/5yxjkkv5dy/notes/urwtautz9g.json added
+++ b/reviews/openreview/5yxjkkv5dy/notes/urwtautz9g.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "Urwtautz9g",+ "replyTo": "voRGDr1s8D",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "comment": "We thank the AC and the reviewers for their valuable feedback. Since all three reviewers mentioned the finite-sample question, we would like to address this common issue here. Our responses to the remaining questions are provided under the individual reviews.\n\n**Finite-sample issue**\n\nWe agree that our paper does not provide an end-to-end bound specifying the Transformer architecture size and the number of pretraining tasks required to obtain a prescribed accuracy. It is useful, however, to distinguish two components of this question.\n\nFor a fixed Transformer class $\\mathcal{F}$, our Lemma C.10 already provides an explicit oracle inequality of the form $\\mathcal{E}(\\tilde f_T) \\lesssim \\inf_{f\\in\\mathcal{F}} E_\\pi[(f-g_\\pi)^2] + \\frac{\\mathrm{Pdim}(\\mathcal{F})\\log^3 T}{T}$.\nThus, the dependence of $\\mathcal{E}(\\tilde f_T)$ on the number of pretraining sequences is explicit, given a fixed architecture. The non-quantitative component is the dependence of the approximation error term on the Transformer architecture.\n\nUnder the generality of our current assumptions, one cannot expect a uniform quantitative approximation rate without imposing additional regularity conditions on the posterior regression function. In particular, we impose no smoothness or other complexity conditions on the posterior regression function. The admissible class can therefore contain functions of arbitrarily high complexity. Nevertheless, our universal approximation theory shows that for every fixed $g_{\\pi}$ and every $\\epsilon>0$, there exists a sufficiently large Transformer with approximation error at most $\\epsilon$. This distinction between qualitative universality and quantitative approximation rates is standard in universal approximation theory; see, for example, Leshno et al. (1993), Yun et al. (2020) and Furuya et al. (2025). Despite its qualitative nature, our result remains valuable because universal approximation results establish the fundamental expressive capability of an architecture. They therefore provide a consistency result and a foundation for subsequent quantitative analyses. \n\nIf we further assume that the posterior regression function satisfies certain smoothness conditions, then polynomial bounds on the number of pretraining tasks is possible. In the independent and concurrent work of Wakayama and Suzuki (2025), they derived a bound of order $(1/\\epsilon)^{O(d)}$ on the required pretraining tasks for a pretrained uniform-attention Transformer to achieve $\\epsilon$ Bayes gap (which is the $\\mathcal{E}(\\tilde{f}_T)$ quantity in our paper), under a Holder smoothness assumption. Finite sample bounds could potentially be obtained under additional regularity assumptions by combining Lemma C.10 with a similar technique from Wakayama and Suzuki (2025). Such a result would require separate analyses because their uniform-attention architecture and assumptions do not coincide directly with ours; see our response to Reviewer EdP3, Question 1, for a detailed comparison. We did not pursue this route in the paper because we felt that the in-context learning/statistical term, rather than the pretraining term, is the more interesting mathematical contribution of our work, and our paper is already quite long. It remains an interesting open problem to obtain approximation schemes that avoid the curse of dimensionality (possibly under different assumptions such as log-concavity of the posterior), and we leave this for future work.\n\nTo better understand the finite-sample effect, we have now also added simulation results in our revision, plotting the log MSE against $\\log(T)$, where $T$ is the number of pretraining sequences, obtained from the checkpoints of our simulation study. We first see an approximately linear relationship in the plot, suggesting a polynomial decay of the MSE with $T$, for $T$ less than some threshold. The curve then plateaus, which is consistent with our theory that the pretraining error is negligible relative to the posterior contraction error for large $T$, so that the latter begins to dominate the MSE.\n\n|log MSE|-3.4636|-4.2201|-4.6622|-4.9642|-5.2564|-5.4118|-5.5045|-5.8242|-5.8771|-6.0563|-6.0888|-6.2192|-6.3686|-6.3840|-6.3701|\n|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|\n|log(T)|17.3582|17.5124|17.6459|17.7637|17.8690|17.9643|18.0514|18.1314|18.2055|18.2745|18.3390|18.3997|18.4568|18.5109|18.5622|\n\n**References**\n\nFuruya, T., de Hoop, M.V. and Peyré, G. (2025) Transformers are universal in-context learners. ICLR.\n\nLeshno, M., Lin, V. Y., Pinkus, A. and Schocken, S. (1993) Multilayer feedforward networks with a nonpolynomial activation function can approximate any function. Neural Networks.\n\nWakayama, T. and Suzuki, T. (2025) In-context learning is provably Bayesian inference: a generalization theory for meta-learning. arXiv:2510.10981.\n\nYun, C., Bhojanapalli, S., Rawat, A.S., Reddi, S. and Kumar, S. (2019) Are transformers universal approximators of sequence-to-sequence functions? ICLR."+ },+ "createdAt": "2026-08-01T04:32:30.488Z",+ "modifiedAt": "2026-11-19T17:17:16.571Z",+ "url": "https://openreview.net/forum?id=5YXJKkV5dy¬eId=Urwtautz9g",+ "license": "CC-BY-4.0"+}
reviews/openreview/5yxjkkv5dy/notes/vorgdr1s8d.json modified
+++ b/reviews/openreview/5yxjkkv5dy/notes/vorgdr1s8d.json@@ -5,11 +5,12 @@"kind": "meta_review","invitation": "Meta_Review","signature": "Area Chair ujoN","content": {- "metareview": "Initial Meta-Review\n\nFor the paper to be accepted, I would like the rebuttal to focus on the following prioritized points:\n- EdP3-W1/W2 (no finite-sample characterization) ~aKpi-W2, tyuo-W1/W2\n - It would be very helpful if the authors could discuss the finite-sample setting and quantitative results (beyond the existence proof), supported at least by empirical results.\n- aKpi-W1 (beyond the squared loss)\n - This direction is likely beyond the scope of the rebuttal, but it would be great if the authors could provide some discussion of this point in their rebuttal. \n- aKpi-W3 (about Transformer architecture)\n - I think the results are from the Bayesian properties of ICL, not from the transformer architecture. Please provide a detailed discussion.\n- aKpi-W4 (out-of-support generalization)\n - please provide some discussion\n\n---\nFinal Meta-Review\n\nThe most important reason for the decision is that this paper establishes an **appropriate notion of optimality** for ICL under a test distribution and provides a more appropriate form of optimality guarantee for pretrained Transformers than minimax lower bounds.\nThe authors well responded to the concerns raised by the reviewers, particularly as described below:\n\n- EdP3-W1/W2 (no finite-sample characterization) ~aKpi-W2, tyuo-W1/W2\n - The authors distinguish the explicit finite-oracle inequality already established in Lemma C.10 from the remaining non-explicit dependence on the Transformer architecture size. \n - For the remaining part, it may require additional regularity conditions on the posterior regression function which could potentially yield polynomial bounds on the Transformer size and the number of pretraining tasks.\n - They also provide new experiments examining the MSE as a function of the number of pretraining sequences $T$."+ "metareview": "Initial Meta-Review\n\nFor the paper to be accepted, I would like the rebuttal to focus on the following prioritized points:\n- EdP3-W1/W2 (no finite-sample characterization) ~aKpi-W2, tyuo-W1/W2\n - It would be very helpful if the authors could discuss the finite-sample setting and quantitative results (beyond the existence proof), supported at least by empirical results.\n- aKpi-W1 (beyond the squared loss)\n - This direction is likely beyond the scope of the rebuttal, but it would be great if the authors could provide some discussion of this point in their rebuttal. \n- aKpi-W3 (about Transformer architecture)\n - I think the results are from the Bayesian properties of ICL, not from the transformer architecture. Please provide a detailed discussion.\n- aKpi-W4 (out-of-support generalization)\n - please provide some discussion\n\n---\nFinal Meta-Review\n\nThe most important reason for the decision is that this paper establishes an **appropriate notion of optimality** for ICL under a test distribution and provides a more appropriate form of optimality guarantee for pretrained Transformers than minimax lower bounds.\nThe authors well responded to the concerns raised by the reviewers, particularly as described below:\n\n- EdP3-W1/W2 (no finite-sample characterization) ~aKpi-W2, tyuo-W1/W2\n - The authors distinguish the explicit finite-oracle inequality already established in Lemma C.10 from the remaining non-explicit dependence on the Transformer architecture size. \n - For the remaining part, it may require additional regularity conditions on the posterior regression function which could potentially yield polynomial bounds on the Transformer size and the number of pretraining tasks.\n - They also provide new experiments examining the MSE as a function of the number of pretraining sequences $T$.",+ "final_justification": "See the Meta-Review"},"createdAt": "2026-07-21T02:56:40.714Z",- "modifiedAt": "2026-11-18T15:22:08.118Z",+ "modifiedAt": "2026-11-19T05:01:17.594Z","url": "https://openreview.net/forum?id=5YXJKkV5dy¬eId=voRGDr1s8D","license": "CC-BY-4.0"}
reviews/openreview/5yxjkkv5dy/notes/ysiqrvauam.json added
+++ b/reviews/openreview/5yxjkkv5dy/notes/ysiqrvauam.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "YSIqRvAUAM",+ "replyTo": "5N6veKOQMd",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "comment": "Thank you for your valuable feedback. We are grateful for your recognition of the strengths of the work and take this opportunity to address your questions and the issues you raised point by point. \n\n**Weakness 1**\n\nSince the finite-sample question is raised by all three reviewers, we have provided a global response under the AC's meta review. In particular, we distinguish the explicit finite-$T$ oracle inequality already established in Lemma C.10 from the remaining non-explicit dependence on the Transformer architecture size. We also explain why quantitative approximation rates are generally impossible under our current assumptions, and how additional regularity assumptions on the posterior regression function could potentially yield polynomial bounds on the Transformer size and the number of pretraining tasks. Finally, we include new experiments examining the MSE as a function of the number of pretraining sequences.\n\n**Weakness 2**\nOur Proposition 2.1 provides an explicit excess risk upper bound in terms of the degree of distribution shift $\\kappa$ and $\\mathcal{E}(\\tilde f_T)$, which scales as $\\sqrt{\\kappa \\mathcal{E}(\\tilde f_T)}$. By distributional robustness, we mean preservation of the optimal rate of convergence in $n$, uniformly over a $\\chi^2$-divergence ball, provided that the pretraining error is sufficiently small relative to the radius of that ball. Indeed, the excess risk retains the optimal rate if $\\sqrt{\\kappa \\mathcal{E}(\\tilde f_T)}$ is bounded by the optimal rate of convergence. We argue in our paper that $\\mathcal{E}(\\tilde f_T)$ can be made negligible with large Transformers and sufficient pretraining data (also see our response to weakness 1 for discussions on the qualitative and quantitative aspects of the bounds). The exact ICL excess risk may still depend on $\\kappa$, although its rate of convergence does not. We will add a discussion of this after the theorem statement. As we also mentioned on page 7 of the paper, Transformers with a fixed architecture may not achieve the optimal rate of convergence for large values of $\\kappa$, and further fine tuning at test time would be beneficial in this case. \n\nTo further investigate the effect of distribution shift, we have now added simulations with varying degrees of distribution shifts; see the table below. The first row is the MSE without distribution shift, and we increase the amount of distribution shift as the row goes down. The test MSE generally increases with the strength of the shift, while retaining the same qualitative smoothness-adaptive behaviour.\n\n| $\\alpha=2$ | $\\alpha=2.5$ | $\\alpha=3$ | $\\alpha=4$ |\n|-|-|-|-| \n| 0.00032581 | 0.00076084 | 0.00155542 | 0.00446175 |\n| 0.00031713 | 0.00088236 | 0.00178665 | 0.00524479 |\n| 0.0004066 | 0.00104379 | 0.00209069 | 0.00571503 |\n| 0.00052154 | 0.00120022 | 0.00227177 | 0.00600568 |\n\n\n**Question 1**\n\nWakayama and Suzuki (2025) showed that for uniform-attention Transformers, $O(\\epsilon^{O(d)})$ pretraining sequences are sufficient to obtain $\\mathcal{E}(\\tilde{f}_T) \\leq \\epsilon$, under a Holder assumption on the posterior regression function. Their proof proceeds by controlling the norm of the parameters in the Transformer, but leaves the total number of Transformer parameters implicit. In order to obtain a final bound that is polynomially small in $n$ in their setting, the required number of pretraining sequences is of order $n^{O(d)}$. However, their theory does not show that Transformers still achieve the optimal rates under $\\chi^2$ distribution shifts. In contrast, we are able to derive such results by controlling the second term in Eq (4) carefully using posterior contraction theory. In essence, Wakayama and Suzuki (2025) focused more on the first term (in particular $\\mathcal{E}(\\tilde{f}_T)$ quantity) in Eq (4), whereas we focused more on the second term. Thus, the two works can be viewed as complementary to each other. Besides, we also provide a lower bound on the ICL excess risk (averaged over the test distribution) in Theorem 4.4. To the best of our knowledge, previous works only argue the optimality of ICL through minimax lower bounds (i.e. the risk of the worst task in the test distribution), which is inappropriate under the ICL setting.\n\n**Question 2**\n\nThe reviewer is correct that the exact value of the second term of Eq (4) may depend on $\\mu$. However, we prove in the paper that the inner expectation in the second term of Eq (4) can be controlled uniformly over all tasks. This allows us to show that the ICL excess risk achieves the optimal rate, but we do not claim that the constant factor is also optimal. The rate optimality under distribution shifts is in fact what we mean by distributional robustness, and this has not been shown in any previous work, to the best of our knowledge."+ },+ "createdAt": "2026-08-01T04:49:31.463Z",+ "modifiedAt": "2026-11-19T17:17:16.435Z",+ "url": "https://openreview.net/forum?id=5YXJKkV5dy¬eId=YSIqRvAUAM",+ "license": "CC-BY-4.0"+}