Test time training enhances in-context learning of nonlinear functions
Kento Kuwataka, Taiji Suzuki
NeurIPS 2026
TL;DR. We analyzed the benefit of test-time training in learning nonlinear single-index models and established a predictive risk upper bound.
Abstract. Test-time training (TTT) enhances model performance by explicitly updating designated parameters prior to each prediction to adapt to the test data. While TTT has demonstrated considerable empirical success, its theoretical underpinnings remain limited, particularly for nonlinear models. In this paper, we investigate the combination of TTT with in-context learning (ICL), where the model is given a few examples from the target distribution at inference time. We analyze this framework in the setting of single-index models, where the feature vector is drawn from a hidden low-dimensional subspace. For single-layer transformers trained with gradient-based algorithms and adopting TTT, we establish an upper bound on the prediction risk. Our theory reveals that TTT enables the single-layer transformers to adapt to both the feature vector and the link function, which vary across tasks. This creates a sharp contrast with ICL alone, which is theoretically difficult to adapt to shifts in the link function. Moreover, we provide the convergence rate with respect to the data length, showing the predictive error can be driven arbitrarily close to the noise level as the context size and the network width grow.
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 paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:45 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
The paper studies whether test-time training (TTT) can overcome limitations of standard in-context learning for nonlinear single-index models. Reviewers agree that the problem is important and the decomposition into shared-subspace learning, weak direction recovery, strong recovery, and link-function estimation is conceptually useful. However, the reviews identify several potentially serious gaps in the main theorem and proof.
The reviewers broadly recognise that the paper:
- Extends theoretical analysis of TTT beyond linear regression to nonlinear functions.
- Studies an interesting regime in which the task direction lies in a low-dimensional shared subspace while the link function varies across tasks.
- Provides a useful theoretical decomposition of representation learning, task-direction recovery, and task-specific link fitting.
- Potentially shows that test-time adaptation can achieve error approaching the noise level with complexity depending mainly on intrinsic rather than ambient dimension.
- Offers an original combination of pretrained softmax attention, LoRA-style test-time updates, weak-to-strong recovery, and random-feature regression.
Weaknesses:
- The main prediction-risk theorem may be incorrectly stated. Two reviewers independently identify a problem with the noise model and irreducible-risk baseline.
- Appendix G appears to require a two-sided control that is not established by Lemma F.3. Reviewer BG8G therefore questions whether the proof of the principal risk theorem is complete. Because the submission is classified as a Theory paper, resolving this issue is central to the decision.
- Attention and MLP training are separated, and the final predictor reportedly discards the in-context examples. Reviewers question how closely this resembles standard TTT or ICL practice and whether the conclusions should be framed more narrowly as a result for a specialised supervised test-time learner.
- The theory analyses a sequential three-stage algorithm with distinct objectives and parameter updates. The experiment instead jointly fine-tunes LoRA modules in attention and feedforward layers. Therefore, the theorem does not directly explain the empirical procedure.
- The claim of “near-optimal” complexity is considered insufficiently supported because no matching lower bound is given under the same pretrained-information and query-access model.
- There are also minor requests concerning missing references, notation, formatting, and exposition.
Final justification
Reviewers and I agreed that the raised concerns have been addressed.
- Final justification
- Reviewers and I agreed that the raised concerns have been addressed.
Read meta-review
Meta-review
The paper studies whether test-time training (TTT) can overcome limitations of standard in-context learning for nonlinear single-index models. Reviewers agree that the problem is important and the decomposition into shared-subspace learning, weak direction recovery, strong recovery, and link-function estimation is conceptually useful. However, the reviews identify several potentially serious gaps in the main theorem and proof.
The reviewers broadly recognise that the paper:
- Extends theoretical analysis of TTT beyond linear regression to nonlinear functions.
- Studies an interesting regime in which the task direction lies in a low-dimensional shared subspace while the link function varies across tasks.
- Provides a useful theoretical decomposition of representation learning, task-direction recovery, and task-specific link fitting.
- Potentially shows that test-time adaptation can achieve error approaching the noise level with complexity depending mainly on intrinsic rather than ambient dimension.
- Offers an original combination of pretrained softmax attention, LoRA-style test-time updates, weak-to-strong recovery, and random-feature regression.
Weaknesses:
- The main prediction-risk theorem may be incorrectly stated. Two reviewers independently identify a problem with the noise model and irreducible-risk baseline.
- Appendix G appears to require a two-sided control that is not established by Lemma F.3. Reviewer BG8G therefore questions whether the proof of the principal risk theorem is complete. Because the submission is classified as a Theory paper, resolving this issue is central to the decision.
- Attention and MLP training are separated, and the final predictor reportedly discards the in-context examples. Reviewers question how closely this resembles standard TTT or ICL practice and whether the conclusions should be framed more narrowly as a result for a specialised supervised test-time learner.
- The theory analyses a sequential three-stage algorithm with distinct objectives and parameter updates. The experiment instead jointly fine-tunes LoRA modules in attention and feedforward layers. Therefore, the theorem does not directly explain the empirical procedure.
- The claim of “near-optimal” complexity is considered insufficiently supported because no matching lower bound is given under the same pretrained-information and query-access model.
- There are also minor requests concerning missing references, notation, formatting, and exposition.
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 2/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
This paper develops a theoretical framework for test-time training (TTT) in nonlinear in-context learning. It studies Gaussian single-index tasks whose task directions lie in a shared low-dimensional subspace, while the nonlinear link function varies across tasks. The proposed method first learns the shared subspace during pretraining and then performs three stages of test-time adaptation: self-distilled weak recovery of the task direction, supervised strong recovery, and estimation of the task-specific link function using a random-feature MLP. The main theoretical claim is that the test-time sample complexity depends primarily on the intrinsic subspace dimension and the general exponent of the link function, rather than directly on the ambient dimension . Synthetic experiments with a small GPT-2 model provide qualitative evidence that TTT improves prediction as context length increases.
Strengths and weaknesses
The paper addresses a relevant and technically difficult problem: extending theoretical understanding of TTT beyond linear regression. The decomposition into subspace learning, weak recovery, strong recovery, and link-function estimation is conceptually useful. The paper is also reasonably well organized, and the distinction among degree, information exponent, and general exponent helps explain the claimed advantage.
However, I have two main concerns about mathematical correctness. First, the prediction-risk statement in Theorem 1.1 appears incorrect. Section 2.1 assumes
and defines the risk using absolute loss. Therefore, the irreducible risk is
not . Nevertheless, Theorem 1.1 claims convergence of the risk to . Moreover, Theorem 1.1 claims an absolute deviation bound . This requires control of , whereas the proof of Lemma F. 3 only establishes the one-sided inequality . Consequently, the argument currently supports an upper risk bound, but not the stated absolute deviation bound. The theorem may be repairable by centering the result at , but the current main statement is not justified.
Second, the recovery analysis does not clearly handle the sign ambiguity of the task direction. Algorithm 1 uses a symmetric random initialization, so the initial correlation with may be positive or negative. However, Lemma D. 3 and the strong-recovery analysis assume positive alignment and aim to recover , rather than . Since a single-index model is identifiable only up to
the result should likely be formulated in terms of , with the final MLP learning the correspondingly reflected link function.
The theoretical scope also needs clearer qualification. The claims about fixed , arbitrarily small error, and near-optimal sample complexity are difficult to reconcile with the polynomial-in- assumptions and asymptotic high-probability statements. In addition, the test-time complexity excludes the synthetic queries used in the weak-recovery stage, while the near-optimality claim is not supported by a lower bound under the same pretrained-information and query-access model.
The experimental adaptation procedure differs substantially from Algorithm 1: the theory analyzes a three-stage sequential procedure with distinct objectives and parameter updates, whereas the experiment jointly fine-tunes LoRA modules in the attention and feedforward layers. As the authors acknowledge, the theoretical risk guarantee does not currently cover the experimental training procedure.
Questions
- How is the sign ambiguity in task-direction recovery resolved?
Algorithm 1 uses symmetric initialization, while Lemma D. 3 and Lemmas E.1-E. 3 require positive alignment with . Is the intended guarantee
If so, please revise the recovery lemmas and show that the final MLP can learn either or . A rigorous sign-invariant analysis would address this concern.
- As a theoretical paper, can the authors clarify the precise asymptotic and resource model?
Please state explicit conditions on for achieving a target error , and clarify whether is covered. Please also distinguish labeled test samples, synthetic teacher queries, testtime gradient steps, and pretraining complexity. The "nearly optimal" claim should either be supported by a lower bound under the same access model or weakened accordingly.
Limitations
yes
Final justification
The rebuttal resolved several of my main concerns. The authors clarified the discrete noise model, which restores the correct irreducible-risk baseline and addresses the apparent gap between the one-sided risk bound and the main theorem. They also clarified that the regime is excluded and agreed to weaken the near-optimality language to a comparison with existing SQ and CSQ bounds.
The revised sign-invariant argument substantially addresses the direction-recovery issue, although the current statement contains a minor sign inconsistency that should be corrected consistently across Appendix F.
The main remaining limitation is the gap between the staged algorithm analyzed in the theory and the joint LoRA fine-tuning procedure used in the experiments. The paper should therefore narrow its claims and present the experiments as qualitative support rather than direct validation of the theorem.
Overall, the core theoretical contribution now appears essentially sound and conceptually valuable, while the remaining issues concern proof presentation, scope, and empirical alignment. I therefore recommend a borderline accept rather than a full accept.
Formatting concerns
no
5 comments
Thank you for the detailed response. The clarification that the intended noise distribution is $ \zeta \sim \mathrm{Unif}({-\tau,\tau}) $ resolves my first concern at the model level. Please ensure that this distribution is stated consistently throughout the theorem, assumptions, proofs, and experiments.
The proposed treatment of the sign ambiguity is directionally correct, but I believe the proof still requires a formal revision. In particular, the fact that $ -v_j \overset{d}{=} v_j $ does not directly establish the desired result for a fixed realization of the randomly initialized MLP. The recovery results should be stated in a sign-invariant form, for example, $ \max_{s\in{-1,1}}\langle su,\beta\rangle \geq 1-\epsilon, $ and Appendix F should explicitly show that, conditional on either recovered sign, the random-feature approximation and optimization arguments apply to the corresponding target $ \sigma(sz). $ This issue appears repairable, but the argument should be incorporated into the formal analysis rather than presented only as an informal distributional-symmetry observation.
The resource clarification is helpful, but it bothers me that the regime $ r=O(1) $ is not covered when $ d\to\infty, $ because Theorem 1.1 assumes that, for some constant $ \alpha_r>0, $ one has $ r=\Omega\left(d^{\alpha_r}\right). $ This limitation should be stated explicitly in the main theorem and in any discussion of fixed-dimensional or fixed-rank settings.
I also do not think the current response fully establishes the “near-optimality” claim. The observation that pretraining contains no task-specific information about the direction $ \beta $ is intuitive, but it is not yet a formal reduction showing that the cited SQ or CSQ lower bounds continue to apply under the same pretrained-information and synthetic-query access model used by the proposed method. In particular, the response does not establish a lower bound matching the claimed dependence $ r^{\Theta(\mathrm{ge}(\sigma_*))} $ under this access model. Unless such a result is proved, I recommend weakening “near-optimality” to a comparison with existing SQ complexity bounds.
Overall, the rebuttal resolves the noise-distribution issue and suggests a plausible repair for the sign ambiguity. However, a formal sign-invariant proof, a precise resource model, and either a rigorous lower bound or a weaker near-optimality claim are still needed.
Thank you for your follow-up comments and helpful guidance.
1. Formal Sign-Invariant Proof
As you noted, a formal proof is necessary rather than relying solely on informal distributional intuition. Following your recommendation, we have revised the proof to explicitly incorporate the recovered sign . Below is the complete revised formal proof for Appendix F:
Lemma F.1 Suppose that there exists and such that $$ Then, there exists such that
with high probability over . Moreover, holds.
Proof. Let . Now from Lemma 9 in Damian et al. (2022), there exists such that and $$ for any . If we define
then, we have . Moreover, when , we have
Therefore, it holds that
with high probability.
Here, we used the fact that with high probability.
Lemma F.2 Under the condition of Lemma F.1, there exists such that
holds with high probability over . Moreover, holds with high probability.
Proof. Using in Lemma F.1, define . Since , from Hoeffding's inequality, it holds that
with high probability. Hence we have
As for the upper bound of the norm , Hoeffding's inequality yields
Since , we can say that , which completes the proof.
Note that the subsequent results, including Lemma F.3 and Lemma F.4, remain fully valid and require no further revision.
2. Resource Assumptions and Near-Optimality Claim
Dimensional Assumptions ( regime): We apologize for not making the scope of sufficiently clear. Because implies that is excluded as , we will explicitly clarify this limitation in Theorem 1.1 and the surrounding discussion.
Reframing the "Near-Optimality" Claim While the specific phrase "near-optimal" does not appear in our main text, we recognize that certain descriptions might still be interpreted as implying such a claim. Following your suggestion, we will revise those passages to clarify that our results are strictly framed as a comparison with existing CSQ and SQ complexity bounds rather than an absolute near-optimality claim.
We welcome any further questions or suggestions.
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 2/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
This paper studies how test-time training (TTT) can improve in-context learning (ICL) of nonlinear functions. Specifically, this work studies learning a single-index model with a feature direction drawn from a fixed -dimensional subspace followed by a polynomial link function that also varies across tasks, using a single-layer transformer model with a reparameterized softmax attention layer followed by an MLP. The setup includes one pretraining (PT) stage followed by three-stage TTT. During PT, they use one step of gradient descent (GD) to update the attention weights that helps learn the span of the feature direction. During TTT, they first update the attention weights using outputs of this pretrained model via a rank-1 update that enables weak recovery. Next, they use multi-step online SGD (again rank-1 updates to attention weights) to get strong recovery. Finally, they learn the MLP weights by solving a convex ridge regression for the output weights, to learn the link function.
The main result shows an upper bound on the prediction risk with test-time sample complexity that is independent of the ambient dimension and , and beats the CSQ barrier and matches SQ-style rates. The main takeaway is that in contrast to pure ICL in this setup, where the risk is shown to be in prior work, TTT enables convergence as context length increases, while is fixed. The paper also presents some experiments with GPT-2 to demonstrate the benefit of TTT.
Strengths and weaknesses
Strengths:
The paper studies an interesting problem. Existing theoretical results on TTT (Gozeten et al., 2025) focus on linear regression with linear transformers, and extension to nonlinear single-index targets using softmax attention is an important direction.
Within the problem setup, the results are valuable. The paper considers an important regime with fixed and growing context length, and the improvements over Nishikawa et al. (2025) are interesting.
The motivation is that task distribution can change from pre-training to test time and TTT can help adapt to such a change, while in-context examples are still used to infer the specific task parameters from the new distribution.
Weaknesses:
One major concern is that the PT-TTT algorithm considered in the paper is quite stylized: the context is partitioned into four blocks with disjoint roles for the four stages, attention and MLP training are decoupled into separate stages, and the final predictor discards the in-context examples (Remark 2.3). While some of these choices can be considered reasonable based on prior work, but together, they seem specialized for the problem setting and quite distanced from standard TTT practice.
Another related concern is that the paper assumes familiarity with the literature on learning single-index models. In particular, it heavily cites Nishikawa et al. (2025) without giving sufficient context to read this paper without having to look up that paper. This paper also uses some of the results from Nishikawa et al. (2025) are used directly, and it does not discuss in sufficient detail what the key novel technical contributions are. It can be strengthened by including the relevant results as a consolidated background section, discussing the difficulties (such as Remark 2.3) and then presenting the TTT results. Additionally, in Section 2.2, the paper discusses SQ and CSQ results which can be deferred to a discussion section later in the paper. If the reader is not familiar with this literature, it’s more helpful to discuss Nishikawa et al. (2025) and then present the paper’s results.
One concern about the experiments is that the setup does not seem to allow a fair comparison of ICL and TTT. The link function for ICL varies for each context, whereas it is fixed during PT for TTT; that seems to be more favorable for TTT. I would suggest either matching the pretraining conditions or do some other ablations to support the claim that TTT benefits over ICL even when using standard TTT rather than the specialized Algorithm 1.
Additionally, the paper does not discuss the literature on ICL of linear regression in sufficient detail. There are several missing references to related work; see, e.g., [1] and references therein.
Some other suggestions to improve the writing and presentation:
-
The discussion in Section 3 about the importance of the results seems repetitive. The paper would benefit from using this space to elaborate on the discussion after Algorithm 1 to give more intuition about each stage and how it connects to improving on the limitations from Nishikawa et al. (2025) and what breaks if we move closer to the TTT setup used in practice.
-
Missing references in the introduction: line 17 and line 22.
-
Missing colons in lines 134, 137, and in Section 3.
-
In Section 2.3, it would be better to use boldface . There’s also a typo in line 183 making dimensions inconsistent.
-
The spacing in Algorithm 1 and Figure 1 should be fixed.
References:
[1] Deora et al., “In-Context Occam’s Razor: How Transformers Prefer Simpler Hypotheses on the Fly”, COLM 2025.
Questions
Please see above.
Limitations
N/A
Final justification
The rebuttal addressed my concerns so I increased my score.
Formatting concerns
N/A
6 comments
Rebuttal
Thank you for your constructive feedback. We will address your concerns as follows.
1. On the Design of Algorithm 1
Stylized abstractions in Algorithm 1 are necessary to balance theoretical rigor and mathematical tractability while preserving the essential mechanics of TTT:
-
Decoupled Stages: The key conceptual departure from standard TTT practice is our self-distillation mechanism, which reduces sample complexity and breaks the CSQ lower bound. Other structural discrepancies (e.g., stage-wise decoupling) are minor theoretical simplifications introduced solely to keep the non-convex optimization analysis mathematically tractable, without compromising the core insights of the mechanism.
-
Final Predictor Design: Discarding in-context tokens in the final prediction step eliminates the asymptotic bias inherent in standard softmax attention, allowing us to establish a rigorous proof of exact recovery as .
2. Comparison with Nishikawa et al. (2025) and Background Section
We thank the reviewer for this constructive suggestion. In the revised manuscript, we will add a consolidated Background section summarizing the necessary technical concepts from single-index models and key preliminary results from Nishikawa et al. (2025) to make the paper fully self-contained. We will also incorporate missing references (e.g., Deora et al., 2025) and fix all formatting/typo issues.
To be explicit, our theoretical framework directly imports only two specific results from Nishikawa et al. (2025):
- Pretraining Representation: Pretraining successfully recovers the low-dimensional support of (Lemma 3.1).
- Teacher Signal for Stage I: The pretrained attention layer reduces the effective complexity from to (Lemma B.1).
As outlined in our proof sketch, our primary technical contribution is the analysis of LoRA-based self-distillation and the sample complexity for strong recovery, which is fundamentally distinct from the work by Nishikawa et al. (2025). In addition, the MLP risk analysis via Rademacher complexity utilizes standard theoretical machinery rather than techniques specific to Nishikawa et al. (2025).
3. Fairness of Experimental Comparison
We would like to clarify that our experimental setup in Figure 1a is actually favorable to ICL, rather than TTT. In Figure 1a, the ICL model was pretrained on datasets where the link function varies across tasks (in-distribution), enabling ICL to learn varying link functions in-context. To address the reviewer's point, we conducted an additional ablation experiment where the link function is fixed during pretraining and varied during testing. Under this setup, the varying test link functions constitute an out-of-distribution (OOD) shift for ICL, causing ICL to fail completely (predictive error exceeding regardless of context length). In contrast, TTT robustly adapts via test-time fine-tuning. Thus, Figure 1 presents a fair evaluation: ICL achieves competitive performance only when pretraining explicitly covers link function variation (Figure 1a), whereas TTT consistently excels even under distribution shifts (Figure 1b).
We are happy to discuss any remaining questions and concerns during the discussion period.
Follow-up on Rebuttal and Discussion
Dear Reviewer ympk,
As the end of the discussion period approaches, we would greatly appreciate your feedback on our rebuttal. Please let us know if our response has addressed your concerns or if there are any remaining questions we can clarify. We remain eager to discuss any further points.
Best regards,
The Authors
Thanks for the response.
-
The concern about Algorithm 1 being stylized is not addressed satisfactorily. The current explanation is that it's necessary for the analysis which essentially acknowledges the concern rather than explain why it's reasonable in terms of practice.
-
The concern about comparison with Nishikawa et al. (2025) is addressed in the response. However, incorporating this in the paper would require significant changes which are hard to gauge without looking at the updated version.
-
The concern about experimental comparison is partially addressed. To clarify, I have a question about conducting a fairer ablation for ICL vs TTT since TTT allows an additional stage which is helpful to learn the link function. For instance, what about using curriculum during training for ICL? This comparison would mainly give additional context about ICL vs TTT rather than changing in any way the paper's main conclusions.
- Rating
- 5/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
This paper studies whether explicit test-time parameter updates can improve in-context learning of nonlinear functions. The task family consists of Gaussian single-index models , where task-specific feature vectors lie in a common -dimensional subspace of , while the polynomial link function may also vary across tasks. The proposed single-layer transformer is pretrained so that its attention matrix approximately captures the shared feature subspace. At test time, the procedure first uses the pretrained attention output as a self-distillation signal to obtain weak recovery of the task-specific direction, then uses supervised online SGD to obtain strong recovery, and finally fits a random-feature ReLU layer to the task-specific link. The main theorem aims to show that the resulting prediction risk approaches the irreducible noise level as context length and width grow, with test-time sample requirements depending primarily on the intrinsic dimension .
Strengths and weaknesses
The paper asks an important theoretical question: whether explicit test-time updates can overcome limitations of standard nonlinear in-context learning. The single-index setting is a reasonable controlled model for separating representation learning, task-specific feature recovery, and link-function adaptation. I also found the high-level decomposition into pretrained subspace recovery, weak feature recovery, strong feature recovery, and task-specific link fitting conceptually useful. A correct finite-context result with task-varying links would constitute meaningful progress beyond linear TTT.
The paper’s potential significance is therefore good. Its originality lies mainly in combining the pretrained softmax-attention teacher from prior nonlinear-ICL work with explicit LoRA-style test-time updates, a weak-to-strong recovery argument, and a final task-specific fit.
I found some issues in the core theorem and proof. First, the paper specifies continuous noise . It appears this should actually be the discrete noise uniformly at random. Moreover, Lemma F.3 only proves an upper bound on, while Appendix G appears to require a two-sided bound. Thus, if I understood the proof, the main risk statement remains incomplete under the stated model. The authors should correct me if this understanding is incorrect. We suggest the authors double check their work in the appendix.
The exposition is reasonably well organized at the level of the main text and proof sketch, but it is unclear if the proof is complete. Under the Theory contribution criteria, where correctness is primary, I am not fully convinced the current paper establishes its main result.
Questions
A complete resolution of questions (1) and (2), including corrected formal statements and proofs, could raise my Quality score substantially
- What is the intended noise distribution and correct population-risk baseline? If the intended model is discrete , please correct.
- Does Appendix G require a lower bounded version of Lemma F.3? If so, please add this to complete the proof.
- The paper frames the result as showing that test-time training enhances in-context learning. Could the authors clarify what part of the guarantee should be interpreted as an in-context-learning phenomenon, as opposed to a task-specific supervised learner?
Limitations
yes
Final justification
The correction to the two-point noise model
resolves my principal correctness concern about the irreducible-risk baseline and the missing lower bound in Appendix G.
The clarification concerning the role of ICL is also helpful. I agree that the substantive benefit of pretraining here is recovery of the shared -dimensional subspace, after which task-specific test-time adaptation can operate with dependence on rather than directly on .
Formatting concerns
None.
4 comments
Rebuttal
Thank you for your constructive feedback and for carefully reviewing our proofs. We address your questions and concerns below.
1. Intended noise distribution and the lower bound (Questions 1 & 2)
You are absolutely correct; the intended noise model is indeed the discrete uniform distribution $ \zeta \sim \mathrm{Unif}{\{-\tau, \tau\}} $, rather than the continuous distribution. We sincerely appreciate you pointing this out, and we will correct this typo in the revised manuscript. Under this discrete noise model, the irreducible risk (the Bayes optimal risk for the absolute error) is exactly . Because no predictor can achieve a predictive risk lower than this irreducible noise level, the predictive risk is trivially lower-bounded by . This fundamental property naturally serves as the lower bound required in Appendix G, perfectly complementing the empirical upper bound established in Lemma F.3. Therefore, the current proof holds true without the need for additional lemmas.
2. Clarification of the ICL phenomenon (Question 3)
To address your question regarding what part of the guarantee represents an in-context learning (ICL) phenomenon rather than a standard supervised learner: the key ICL benefit in our framework is that the test-time sample complexity is entirely independent of the ambient dimension . If we were to construct a purely task-specific supervised predictor from scratch using only the in-context examples as training data, the required context size would inevitably scale with , as the model would lack prior knowledge about the support of . However, in our framework, the ICL mechanism captures the -dimensional support of into the attention matrix during pretraining. This allows the test-time adaptation to search only within this low-dimensional subspace, resulting in a sample complexity that scales strictly with the intrinsic dimension .
We are happy to discuss any remaining questions or concerns during the discussion period.
Follow-up on Rebuttal and Discussion
Dear Reviewer BG8G,
As the end of the discussion period approaches, we would greatly appreciate your feedback on our rebuttal. Please let us know if our response has addressed your concerns or if there are any remaining questions we can clarify. We remain eager to discuss any further points.
Best regards,
The Authors
Rebuttal Response
Thank you for the detailed clarification. The correction to the two-point noise model
resolves my principal concern about the irreducible-risk baseline and the missing lower bound in Appendix G. I would recommend though adding a short comment or sentence about the argument for the lower bound.
The clarification concerning the role of ICL is also helpful. I agree that the substantive benefit of pretraining here is recovery of the shared -dimensional subspace, after which task-specific test-time adaptation can operate with dependence on rather than directly on .
I consider my main correctness concern resolved. I have therefore increased my overall recommendation to 5: Accept.
Thank you very much for reading our response and for raising your score to Accept. We are delighted to hear that our clarifications resolved your main concerns. As suggested, we will add a clarifying comment regarding the lower bound argument in Appendix G in the revised version of the manuscript. Thank you again for your insightful and constructive feedback throughout the review process.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Rebuttal
Thank you for your constructive feedback. We address your concerns as follows.
1. Clarification on Irreducible Risk
We apologize for the typo in the text. The intended model uses discrete noise ζ∼Unif(−τ,τ), under which the irreducible Bayes-optimal risk for absolute error is strictly E[∣ζ∣]=τ. Therefore, our existing proofs remain entirely intact without requiring loss-centering modifications. We will fix this typo in the camera-ready version.
2. Resolution of Sign Ambiguity (Question 1)
You are entirely correct, and we appreciate this insightful point. To properly account for cases where the initial alignment ⟨β,u(0)⟩ is negative, the recovery guarantees in Appendices D and E should be formulated in terms of the absolute value ∣⟨β,u⟩∣. We will update the statements accordingly in the final revision. However, we emphasize that the theoretical guarantees for link-function learning in Appendix F hold without any changes. The key reason lies in the fixed random initialization of the MLP layer:
・In Algorithm 1, vj is drawn from Unif(−1,1) and fixed.
・When u≈−β, the predictor evaluates σ(vj⟨u,x⟩+bj)≈σ(−vj⟨β,x⟩+bj).
・Defining v~j=−vj, the term becomes σ(v~j⟨β,x⟩+bj). Because vj∈−1,1 is symmetric, v~j follows the exact same distribution as vj.
Thus, sign inversion of u does not alter the underlying data-generating or feature-distribution steps in Appendix F. The network simply fits the reflected link function σ(−z). We will incorporate a detailed discussion on this sign-invariance in the final version.
3. Asymptotic Bounds, Resource Model, and "Near-Optimality" Claim (Question 2)
To achieve a target prediction risk bound of RfTF−τ≤ϵ, the explicit parameter scaling requirements are structured as follows:
Assumptions in Theorem 1.1: Npt,Tpt,N1,N2,N3,N4,Nnew,m=O(poly(d)) and there exists a constant αr>0 such that r=Ω(dαr).
Labeled Test Contexts: N3=Ω~(ϵ2r1.5) (Stage II strong recovery) and N4=Ω~(ϵ−2) (Stage III MLP fitting).
Unlabeled Synthetic Queries: Nnew=Ω~(rge(σ∗)+2) (Stage I weak recovery).
Test-Time Gradient Steps: N3 steps (Stage II online SGD).
Network Width: m=Ω~(ϵ−2).
Summary of Resource Complexities:
Pretraining Complexity: Npt,Tpt=Ω~(r2dQ+2).
Labeled Sample Complexity: Ntest=N1+N2+N3+N4=Ω~(rge(σ∗)+2+ϵ2r1.5) labeled pairs.
Query / Compute Complexity: Stage I additionally utilizes Nnew unlabeled synthetic queries and performs N3 test-time gradient updates.
Among these metrics, labeled sample complexity is the primary focus of our theoretical guarantees.
Note that we assume r=Ω(dαr) for some αr>0 in Theorem 1.1.
Justification for the "Near-Optimality" Claim: Regarding the near-optimality claim, it is crucial to clarify that pretraining only identifies the fixed r-dimensional subspace Sr. It provides no information about the task-specific feature direction β, which is drawn uniformly from the support Sr at test time. Consequently, even if an algorithm directly uses the outputs of the pretrained model as signals, the fundamental CSQ and SQ lower bounds for estimating β within this r-dimensional subspace remain rΘ(ie(σ∗)) and rΘ(ge(σ∗)), respectively. Because our labeled sample complexity breaks the CSQ lower bound and matches the SQ lower bound exponent rΘ(ge(σ∗)), our "near-optimality" claim is theoretically well-justified.
4. Discrepancy Between Theory and Numerical Experiments
We appreciate the reviewer pointing out the distinction between our theoretical staged procedure and the practical end-to-end experiments. However, rather than limiting the scope of our work, we believe this gap highlights both the rigor of our theory and its practical relevance. While self-distillation and staged updates in Algorithm 1 are theoretical tools required to establish rigorous proof guarantees and improved rates, our empirical results confirm that link-function adaptation occurs naturally in practical architectures (such as GPT-2) even without these explicit theoretical constraints. This demonstrates that TTT robustly adapts to varying link functions in practice without requiring a manually tailored update algorithm.
We are happy to discuss any remaining questions and concerns during the discussion period.