acceptodds
Published as a conference paper at NeurIPS 2026

Towards Understanding Self-Pretraining for Sequence Classification

Omar Coser, Loredana Zollo, Paolo Soda, Antonio Orvieto

Abstract

Amos et al. (2024) showed that the accuracy of Transformer models in sequence classification can be significantly improved by first pretraining with a masked token prediction objective without external data or augmentation, a procedure referred to as self-pretraining (SPT). While the primary objective of Amos et al. (2024) was to showcase that Transformers can achieve strong performance on the Long-Range Arena (LRA), their pipeline raises more fundamental questions: How does SPT drive optimization to better solutions? Why can standard supervised training fail in Transformers? To better understand this, we replicate and systematically ablate the findings of Amos et al. (2024). Our ablations suggest that a central bottleneck in the studied settings is not depth or generalization alone, but the ability of label supervision to learn useful query-key Attention patterns from random initialization. With a minimal setup, we identify learning proximity interactions – turning absolute positional encodings into proximity-biased Attention scores – as a key source of the improvements brought by SPT. Finally, in a simplified theoretical setup, we show that label supervision can be locally blind to certain Attention-score directions that are instead detectable through masked reconstruction.

Keywords:
Paris

Reviews

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

This paper investigates why self-pretraining (SPT) — masked-token reconstruction on the same data before supervised finetuning, no external corpus — improves Transformer sequence classification, a phenomenon highlighted by Amos et al. (2024) on the Long-Range Arena. The authors first replicate the original gains (Table 1), then run four ablations: pretraining duration, model depth + cross-dataset pretraining, freezing attention at random init, and hybrid initialization that restores SPT weights only to selected parameter subsets. Their evidence converges on a single claim: the bottleneck supervised-from-scratch training hits is the learning of useful query-key attention patterns, not depth or generalization. They isolate W_Q, W_K in one-layer models as the primary carriers of the SPT benefit. A controlled synthetic task then shows that SPT reshapes additive sinusoidal positional encodings into a relative, proximity-biased attention structure (resembling ALiBi), acting through the product W_Q^T W_K rather than the marginal weights. Finally, a simplified theoretical setup (Proposition 1) shows that mean-pooled label supervision can be locally blind, at uniform attention initialization, to certain attention-score directions that the masked-reconstruction loss does detect.

Strengths and weaknesses

Strengths: This paper peels the question down to a specific, falsifiable mechanistic hypothesis. The freezing experiment (Table 2) is particularly convincing: clamping attention weights to random initialization barely hurts from-scratch performance except on PathFinder, and even slightly improves it on CIFAR10 — strongly suggesting that attention parameters are largely not effectively used when learning from labels. The hybrid-initialization results (Table 3) and the one-layer QK experiment (Table 4) corroborate this from a different angle: restoring only the SPT values of W_Q/W_K recovers most of the gain in one-layer models, whereas restoring only the MLP branch does almost nothing. Three independent lines of evidence point to the same conclusion, which is what an analysis paper should deliver. Weaknesses: Many of the larger LRA runs, along with the ListOps / Retrieval / Text entries, are single-seed. The authors acknowledge this and justify it by arguing that seed-to-seed variance of max accuracy on CIFAR/PathFinder is small and therefore extrapolates — but this extrapolation is never validated on ListOps / Retrieval / Text, which are precisely the single-seed cases. Large headline numbers such as +0.24 (Text) in Table 1 sit in cells with no error bar, leaving the reader unable to assess stability.

Questions
  1. Could you provide std over at least 3 seeds for ListOps, Retrieval, and Text?
  2. Proposition 1 assumes input-independent scores and a single scalar α moving along one direction ∆. Could you clarify to what extent the "mean-pooled supervision is locally blind" result still holds when scores depend on the input, or when multiple parameters are optimized jointly? Even a 2-D α counterexample or numerical check would help. This bears directly on whether the body's phrasing "label supervision can fail" is supportable.
Limitations

Yes.

Paper formatting concerns

None.

Final justification

The authors have solved my concerns. Based on their rebuttal and the comments of other reviewers, I would like to keep my positive rating to this work.

1 comment

We thank the reviewer for their thorough review and positive evaluation of the paper's progression. We reply to their two questions below. We also refer to the replies from the other two reviewers for further experiments and theoretical considerations that might be of interest to you.

Three Seeds (also posted as a reply to tW5q).

We re-ran the previously single-seed entries of the freezing table with 3 seeds each (from scratch, with Attention frozen, and with Attention & MLP frozen):

DatasetFrom scratchAtt. frozenAtt. & MLP frozen
CIFAR10 (5 seeds)0.503 ± 0.0020.535 ± 0.004 (+0.032)0.468 ± 0.008 (−0.035)
PathFinder (5 seeds)0.672 ± 0.0030.50 ± 0.00 (−0.172)0.50 ± 0.00 (−0.172)
ListOps (new, 3 seeds)0.41 ± 0.0030.42 ± 0.005 (+0.01)0.29 ± 0.009 (−0.12)
Retrieval (new, 3 seeds)0.77 ± 0.0050.78 ± 0.004 (+0.01)0.66 ± 0.011 (−0.11)
Text (new, 3 seeds)0.65 ± 0.0040.65 ± 0.006 (+0.00)0.66 ± 0.002 (+0.01)

The multi-seed validation confirms the original single-seed results: all means lie within one standard deviation of the previously reported values, and every qualitative conclusion is unchanged freezing Attention at random initialization leaves ListOps, Retrieval, and Text essentially unaffected (Δ≤0.01\Delta ≤ 0.01), while additionally freezing the MLP substantially degrades ListOps (−0.12−0.12) and Retrieval (−0.11−0.11) and leaves Text unaffected. Variance is larger in the Att. & MLP frozen setting on ListOps and Retrieval (±0.09\pm 0.09, ±0.11\pm 0.11), reflecting increased training instability when most parameters are clamped; the degradation is nonetheless consistent across seeds.

Validity of our results when scores depend on the input, or when multiple parameters are optimized jointly.

Thank you for raising this point. The extension does follow from the chain rule: the blind subspace in Attention space corresponds to a blind subspace in parameter space. This does not imply that the complete gradient of a jointly trained model vanishes. Moreover, the next computation (as our Proposition 1) is local and thus cannot be used to prove that training will never eventually pick up signal. We however believe it can be insightful.

General case. Let us first remind the setup: let X1,…,XLX_1,\ldots,X_L be the token values and possibly input-dependent scores sij(θ,X)s_{ij}(\theta,X), Attention computes

aij(θ,X)=exp⁡(sij(θ,X))∑kexp⁡(sik(θ,X)),oi(θ,X)=∑jaij(θ,X)Vj,a_{ij}(\theta,X)=\frac{\exp(s_{ij}(\theta,X))}{\sum_k\exp(s_{ik}(\theta,X))}, \qquad o_i(\theta,X)=\sum_j a_{ij}(\theta,X)V_j,

and classification uses h(θ,X)=L−1∑ioi(θ,X)h(\theta,X)=L^{-1}\sum_i o_i(\theta,X).

Let θ0\theta_0 produce uniform Attention. For any direction vv in the query-key parameters, let Γv(X)=DθS(θ0,X)[v]\Gamma_v(X)=D_\theta S(\theta_0,X)[v] and subtract its row means:

Γˉv(X)=Γv(X)−1LΓv(X)11⊤.\bar\Gamma_v(X)=\Gamma_v(X)-\frac{1}{L}\Gamma_v(X)\mathbf 1\mathbf 1^\top.

Differentiating at uniform Attention gives

Dvh(θ0,X)=1L2∑j(Γˉv(X)⊤1)jVj.D_vh(\theta_0,X)=\frac{1}{L^2}\sum_j\left(\bar\Gamma_v(X)^\top\mathbf 1\right)_jV_j.

Therefore, if Γˉv(X)⊤1=0\bar\Gamma_v(X)^\top\mathbf 1=0 for every input XX, then Dvh(θ0,X)=0D_vh(\theta_0,X)=0. This is logically similar to our proposition 1. An example of this cancellation effect can be found below.

Concrete example. Consider two tokens and the following weights [";" denotes new row]:

z1=(1,x)⊤,z2=(1,−x)⊤,WQ(α)=[10;0α],WK(β)=[1β;01],WV=[01].z_1=(1,x)^\top, \qquad z_2=(1,-x)^\top,\qquad W_Q(\alpha)=\left[\begin{smallmatrix}1&0;&0&\alpha\end{smallmatrix}\right], \qquad W_K(\beta)=\left[\begin{smallmatrix}1&\beta;&0&1\end{smallmatrix}\right], \qquad W_V=\left[\begin{smallmatrix}0&1\end{smallmatrix}\right].

Let the Attention matrix be A(α,β;x)=softmax⁡row(S(α,β;x)).A(\alpha,\beta;x)=\operatorname{softmax}_{\mathrm{row}}(S(\alpha,\beta;x)). The score matrix is (after absorbing constants)

S(α,β;x)=11⊤+αx2[1−1;−11]+βx[1−1;1−1].S(\alpha,\beta;x)=\mathbf 1\mathbf 1^\top+\alpha x^2\left[\begin{smallmatrix}1&-1&;-1&1\end{smallmatrix}\right]+\beta x\left[\begin{smallmatrix}1&-1;&1&-1\end{smallmatrix}\right].

At (α,β)=(0,0)(\alpha,\beta)=(0,0), all Attention weights equal 1/21/2. Using ∂θai1=ai1ai2∂θ(si1−si2),\partial_\theta a_{i1} = a_{i1}a_{i2} \partial_\theta(s_{i1}-s_{i2}), we obtain

∂αa11(0,0)=x22,∂αa21(0,0)=−x22,∂βa11(0,0)=∂βa21(0,0)=x2.\partial_\alpha a_{11}(0,0)=\frac{x^2}{2}, \qquad \partial_\alpha a_{21}(0,0)=-\frac{x^2}{2},\qquad \partial_\beta a_{11}(0,0)=\partial_\beta a_{21}(0,0)=\frac{x}{2}.

The mean-pooled output is h(α,β;x)=12∑i=12(ai1x+ai2(−x))=x(a11+a21−1).h(\alpha,\beta;x) = \frac{1}{2}\sum_{i=1}^2 \left(a_{i1}x+a_{i2}(-x)\right) = x(a_{11}+a_{21}-1). Therefore,

∂αh(0,0;x)=x(x22−x22)=0,∂βh(0,0;x)=x(x2+x2)=x2.\partial_\alpha h(0,0;x) = x\left(\frac{x^2}{2}-\frac{x^2}{2}\right) = 0,\qquad \partial_\beta h(0,0;x) = x\left(\frac{x}{2}+\frac{x}{2}\right) = x^2.

Hence, α\alpha is blind to any differentiable supervised loss, whereas β\beta can have a nonzero supervised gradient

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

The paper explores self pretraining in transformer-based sequence classification (the title is different, and IMHO slightly misleading in an otherwise fine paper). The authors explore an interesting phenomena (which they correctly cite that others did previously) whereby self pretraining improves sequence classification in some architectures where more straightforward label training performs less well. They focus on understanding this further - the paper is not attempting to beat some SOTA benchmark, but rather understand more deeply something fundamental about transformers through ablations and theory. First, the authors perform some logical ablations: using single layers to disprove a depth/hierachical-discovery hypothethis, freezing attention layers ranges from mostly no harm to even some improvement, and initializing only the mlp parts doesn't show improvement over random mlp initialization. Combined, this points to basically any attention layer's weights being what self training benefits. With the attention weights being the suspects, the authors now do content ablation on some toy example, showing that what self training is doing, in this case, is making some sparse-type pattern of each token looking at its neighbors. Basically, the self pretraining is helping the query/key weights to translate the sinus absolute pattern into relative-position attention masks. Finally, they show a proposition of essentially the last point of the toy example (the setup "We assume sijs_{ij} to be independent of the input" is basically that), which is mostly a formalization of it.

Strengths and weaknesses

I am reviewing this as a theory type paper: while there are ablations and toy dataset visualizations, and the paper is not algebra heavy, the primary focus (and contribution) is isolating some pattern of attention weights and understanding it, not building an architecture which beats some SOTA benchmark, so the (significant) contribution is theoretical.

The logical ablation is very methodological and convincing: using a single layer and freezing different parts is a convincing way to analyze deeper into what is causing the self pretraining benefit exactly. The explanation on how key/query weights can translate a global sinus to a relative attention mask is insightful and pertinent to role of pre training. I believe that these are the strongest points of the paper, and quite insightful both in terms of the explanation to this problem, as well as a methodology in how to approach such problems in general.

On the downside, I think that there is a recurring theme of phrasing an insight that is geared toward a very specific (though interesting) architecture, to something broader. The title states that it is a point about sequence classification, but the authors note (e.g., about mamba), that it is actually a point about specifically transformer based sequence classification. Furthermore, IMHO the authors proved a point about transformers and aggregation, not about sequence classification with a transformer using a CLS token, which most people would still categorize as a transformer architecture (so the point is even narrower - a specific combination of transformer + aggregation). Furthermore, IMHO it is possible to prove something similar to a constrained token-mixing MLP (so the point isn't that this is a property that is unique to this combination of transformers + aggregation, but rather that this combination has this property). Finally, the toy example and proposition are less distinct than presented.

Overall, despite writing at greater length about the weaknesses, I think that it is more a matter of inadvertent phrasing, and if the paper would just say "here's an interesting property explaining what's happening in self pretraining for sequence classification in this architecture", it would be a useful and interesting paper.

Questions
  1. IMHO, it's possible to modify section 5 to other constrained token-mixing architectures. Could you generalize to an abstract property of an architecture that shares your insight for this one?
  2. In the logical ablations, perhaps try other aggregations, such as CLS pooling, and either rule it out, or use it to show that the combination is the issue.
  3. How would the proof of section 5 change if the input was less like white noise? It is an interesting result in itself, but is it possible that real-world distributions will break the symmetry that causes the label training to fail? If so, how does it behave if you have a dial setting the input "SNR"?
Limitations

I think the authors were forthright. Some of the weaknesses I mentioned have some overlap with limitation, but it is mainly in terms of phrasing, not misleading the readers.

Paper formatting concerns

all good

Final justification

Looking at the reviews by everyone, as well as the rebuttal, I am convinced by my score pursuant to the authors making the clarifications.

1 comment

We thank the reviewer for positive comments and assessment of our work! We agree: our paper is transformer-specific and selects mean pooling as aggregation. We will add "transformers" to the title, and carefully rephrase the takeaways to avoid overclaiming: in particular, we will emphasize that our investigation is limited to the combination of transformers and mean-pooling, and we do not claim validity in other setups (most crucially, the claims regarding positional encodings).

However, the reviewer's curiosity sparked our interest; we would also like to thank them for the interesting question and insight into extending section 5. We appreciated the opportunity of thinking about theoretical aspects for a few days. As the reviewer hints, the discussion may be extended to more general token-mixing strategies and CLS token classification. This was also inspired by our latest results showing that CLS-based classification may also fail when learning from scratch:

lrFrom scratch
CIFAR10
Mean pooling (paper)1e-30.503 ± 0.002
CLS token1e-30.483 ± 0.004
CLS token1e-40.484 ± 0.005
CLS token1e-50.438 ± 0.008
PathFinder
Mean pooling (paper)5e-40.672 ± 0.003
CLS token5e-40.50 ± 0.00
CLS token5e-50.623 ± 0.06
CLS token5e-60.50 ± 0.00

In short, from-scratch training with CLS aggregation does not outperform mean pooling.


We now present a few theoretical considerations, which we are happy to include in the revised manuscript (with a proper limitations section and pointing to future work for further investigation) if the reviewer finds them insightful and helpful for our story.

General case. Consider a general token mixer that we learn through a single scalar α\alpha. To increase generality, let u(X)u(X) be the encoded sequence. We write the ii-th output token derivative w.r.t α\alpha at α=0\alpha=0 as oi′(0)=∑j=1LΓijuj(X)o_i'(0)=\sum_{j=1}^L \Gamma_{ij}u_j(X) ,for an L×LL\times L matrix Γ\Gamma. Suppose classification uses an aggregation hb(α)=∑i=1Lbioi(α)h_b(\alpha)=\sum_{i=1}^L b_i o_i(\alpha) for some LL-dimensional vector bb. Then hb′(0)=∑j=1L(Γ⊤b)juj(X)h_b'(0)=\sum_{j=1}^L\left(\Gamma^{\top}b\right)_j u_j(X). Therefore, if Γ⊤b=0\Gamma^\top b=0, the gradient w.r.t α\alpha vanishes.

Special case of softmax attention. We considered in the paper a L×LL\times L target pattern Δ\Delta and a scalar parameter α\alpha to learn the attention scores aij(α)=exp⁡(sij(α))∑kexp⁡(sik(α))a_{ij}(\alpha)=\frac{\exp(s_{ij}(\alpha))}{\sum_k\exp(s_{ik}(\alpha))} , with sij(α)=αΔijs_{ij}(\alpha)=\alpha\Delta_{ij}. For a fixed input XX, outputs are oi(α)=∑jaij(α)Xjo_i(\alpha) = \sum_{j}a_{ij}(\alpha) X_j. Note that aij′(0)=Δˉij/La_{ij}'(0) = \bar\Delta_{ij}/L where Δˉ:=Δ−1LΔ11⊤(Δˉ1=0)\bar{\Delta}:=\Delta-\frac{1}{L}\Delta\mathbf{1}\mathbf{1}^\top (\bar{\Delta}\mathbf{1}=0) and we hence oi′(0)=1L∑jΔˉijXjo_i'(0)=\frac{1}{L}\sum_j\bar{\Delta}_{ij}X_j. With Γ=ΔˉL\Gamma=\frac{\bar{\Delta}}{L} we can apply the formula above, recovering Proposition 1 for the special case b=1/Lb=\mathbf{1}/L.

Constrained token-mixing MLP. Consider the constrained token-mixing MLP : first u(X)=σ(W1X)u(X)=\sigma(W_1 X), and then oi(α)=∑j(W2[i,j]+αΓ[i,j])uj(X)o_i(\alpha)=\sum_j \left(W_2[i,j]+\alpha\Gamma[i,j]\right)u_j(X). Note that oi′(0)=∑j=1LΓijuj(X)o_i'(0)=\sum_{j=1}^L \Gamma_{ij}u_j(X), hence this is also blind to directions Γ⊤b=0\Gamma^\top b=0. This tells us that general token mixers also have a blind spot. This is of course due to mixing symmetry: tokens are seen at the last layer regardless of their time structure, at initialization. Let us discuss for a second the CLS token and then discuss SSMs to show they are different.

CLS classification. CLS-based classification is a 2-step process: first aggregation of tokens (uniform at initialization) and then classification of these. Let oi(α)o_i(\alpha) be the outputs entering the final CLS Attention layer. Since the final CLS Attention weights depend both on their own parameters and on these outputs, write them as bi(α,β)b_i(\alpha,\beta), where β\beta controls the final CLS Attention scores:

h(α,β)=∑i=1Lbi(α,β)oi(α)h(\alpha,\beta)=\sum_{i=1}^L b_i(\alpha,\beta)o_i(\alpha) where ∑i=1Lbi(α,β)=1.\sum_{i=1}^L b_i(\alpha,\beta)=1.

Under uniform initialization, oi(0)=Xˉ:=1L∑jXjo_i(0)=\bar X:=\frac{1}{L}\sum_jX_j and we have bi(0,0)=1Lb_i(0,0)=\frac{1}{L}. We now compute derivatives of this w.r.t both α\alpha and β\beta.

The one with respect to β\beta is easier:∂βh(0,0)=∑i∂βbi(0,0)oi(0)=Xˉ ∂β∑ibi(0,0)=0\partial_\beta h(0,0)=\sum_i \partial_\beta b_i(0,0)o_i(0)=\bar X\,\partial_\beta\sum_i b_i(0,0)=0.

The one w.r.t α\alpha is instead a chain rule: ∂αh(0,0)=∑i∂αbi(0,0)oi(0)+∑ibi(0,0)oi′(0).\partial_\alpha h(0,0)=\sum_i \partial_\alpha b_i(0,0)o_i(0)+\sum_i b_i(0,0)o_i'(0). The first term always vanishes because ∑i∂αbi(0,0)oi(0)=Xˉ ∂α∑ibi(0,0)=0.\sum_i \partial_\alpha b_i(0,0)o_i(0)=\bar X\,\partial_\alpha\sum_i b_i(0,0)=0. The second term is exactly the mean-pooled derivative: ∑ibi(0,0)oi′(0)=1L∑ioi′(0)=1L2∑j(∑iΔˉij)Xj\sum_i b_i(0,0)o_i'(0)=\frac{1}{L}\sum_i o_i'(0)=\frac{1}{L^2}\sum_j\left(\sum_i\bar\Delta_{ij}\right)X_j. Therefore, if Δ⊤1=0\Delta^\top\mathbf 1=0, then ∂αh(0,0)=0.\partial_\alpha h(0,0)=0.

SSMs. The case of SSMs is interesting: symmetry in the mixing is broken because position enters the computation directly -- and this implies no trivial blind spots. We indeed know from Amos et al. that these models have less difficulty in learning from pure labels. Starting from z−1=0z_{-1}=0, let the SSM compute

zt=Azt−1+BXtz_t=Az_{t-1}+BX_t and ot=Czto_t=Cz_t.

Unrolling the recurrence gives ot=∑j=1tKt−jXjo_t=\sum_{j=1}^{t}K_{t-j}X_j, where Kk:=CAkBK_k:=CA^kB. Let K⋆K^\star be a target convolution kernel. Under mean pooling, the current kernel produces:

hK(X)=1L∑t=1Lot=1L∑j=1L(∑k=0L−jKk)Xj.h_K(X)=\frac{1}{L}\sum_{t=1}^L o_t=\frac{1}{L}\sum_{j=1}^L\left(\sum_{k=0}^{L-j}K_k\right)X_j.

If KK and K⋆K^\star were indistinguishable after mean pooling for every input, then this would imply

∑k=0L−j(Kk⋆−Kk)=0,j=1,…,L.\sum_{k=0}^{L-j}\left(K_k^\star-K_k\right)=0, \qquad j=1,\ldots,L.

Taking successively j=L,L−1,…,1j=L,L-1,\ldots,1 gives K0⋆=K0,K1⋆=K1,KL−1⋆=KL−1.K_0^\star=K_0, K_1^\star=K_1, K_{L-1}^\star=K_{L-1}. Thus, two distinct causal convolution kernels cannot be universally indistinguishable under mean pooling. This result is also related to injectivity of SSMs, used for example in Theorem 4.1 here: https://arxiv.org/pdf/2312.01538 .

Additional question: role of noise. Thank you for this question. Proposition 1 does not assume white-noise inputs: the tokens may have an arbitrary autocorrelation (over time!) matrix Cij=E[Xi⊤Xj]C_{ij}=\mathbb{E}[X_i^\top X_j]. For every realization of XX, Δ⊤1=0\Delta^\top\mathbf{1}=0 gives h′(0)=0h'(0)=0 independently of CC, and hence independently of the input SNR.

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

This paper studies why self-pretraining (SPT), i.e., masked reconstruction on the same downstream data before supervised finetuning, improves Transformer performance on sequence classification. Through LRA replications, ablations, a toy task, and a simplified theoretical analysis, the paper argues that SPT mainly helps the model learn useful query-key attention patterns that are difficult to learn from label supervision alone.

Strengths and weaknesses

The paper addresses an interesting and useful question: why self-pretraining helps Transformers in sequence classification even without external data. I like that the paper is not just reporting performance gains, but tries to isolate the mechanism behind them.

The main strength is the set of ablations. The authors study pretraining duration, depth, data swapping, frozen attention, and partial initialization. These experiments make the central claim reasonably convincing: the gain is strongly tied to Attention parameters, especially (W_Q) and (W_K), rather than simply better high-level representations or generalization. The toy task and attention visualizations also provide a clear intuition that SPT can induce proximity-biased attention patterns from positional encodings. The paper is generally well written and the story is easy to follow.

The main weakness is that the scope is still somewhat narrow. The strongest multi-seed evidence is mostly on CIFAR10 and PathFinder, while several larger LRA experiments are single-seed. PathX is excluded, and it is unclear how far the explanation extends beyond LRA-style sequence classification, mean pooling, and relatively small Transformers. I also think the paper needs stronger equal-compute supervised baselines. Since SPT uses extra pretraining epochs, it would be useful to know whether longer or better-tuned supervised training can recover part of the gap. The theory is interesting but highly simplified, so it should be viewed as one possible explanation rather than a full account of the phenomenon.

Questions
  1. Can the authors include a stronger equal-compute supervised baseline, e.g., longer supervised training or better-tuned learning rate/warmup? This would help separate the effect of the SPT objective from extra optimization budget.
  2. How stable are the conclusions on ListOps, Retrieval, and Text? The key ablations on CIFAR10/PathFinder are multi-seed, but several broader LRA results are single-seed.
  3. Does the same attention-learning bottleneck appear with other aggregation choices, such as a CLS token instead of mean pooling?
Limitations

Yes. The authors discuss the main limitations, including the limited multi-seed coverage, exclusion of PathX, and the simplified toy/theoretical settings. I would encourage them to emphasize the limited generality of the theory more clearly.

Paper formatting concerns

NO

1 comment

We thank the reviewer for the constructive assessment. We address the three questions with new experiments; In particular, we show

  1. Increasing the from-scratch training budget does not match SPT, even after tuning
  2. Seeds for all experiments in Table 2
  3. Tuned from-scratch runs using CLS token -- they are in line with mean pooling results.

To conclude, we agree that the main purpose of our theory is to highlight a mechanism without claiming full generality; we will further emphasize this in our revised limitations to avoid overclaiming (see also our response to Reviewer vbKy).


Q1 — Equal-compute and better-tuned supervised baseline

We combined both requested controls in a single experiment. In the following, we report from-scratch supervised baseline trained for 400 epochs (surpassing the total pretraining + finetuning budget), sweeping the learning rate under both the constant-warmup schedule of Amos et al. and cosine decay with warmup. Even with learning rate tuning at a high from-scratch budget, we did not achieve SPT gains, SPT + finetuning as reported in the paper is cheaper than 400 epochs of from-stratch training -- we report a table later in the reply.

From-scratch supervised baseline at extended budget (400 epochs): No configuration substantially improves over the tuned baseline under different learning rates and schedules; each task is swept around its own base rate (second row). Reported is mean ± std validation accuracy over seeds. The best settings remain far below SPT accuracies (0.724 and 0.85) under the same finetuning budget. We note that in all stable configurations validation accuracy peaks within ~50 epochs and then degrades. Extended supervised training therefore cannot close the gap: the limitation is the supervision signal, not budget.

Schedulerlr scalelr (CIFAR10)Acc. (CIFAR10)lr (PathFinder)Acc. (PathFinder)
Constant + warmup10× base1e-20.278 ± 0.085e-30.50 ± 0.00
Constant + warmup≈ base1e-30.489 ± 0.0052.5e-40.675 ± 0.04
Constant + warmup0.1× base1e-40.501 ± 0.0035e-50.683 ± 0.05
Constant + warmup0.01× base1e-50.501 ± 0.0035e-60.50 ± 0.00
Constant + warmup0.001× base1e-60.321 ± 0.0075e-70.50 ± 0.00
Schedulerlr scalelr (CIFAR10)Acc. (CIFAR10)lr (PathFinder)Acc. (PathFinder)
Cosine + warmup10× base1e-20.272 ± 0.125e-30.50 ± 0.00
Cosine + warmup≈ base1e-30.496 ± 0.062.5e-40.66 ± 0.08
Cosine + warmup0.1× base1e-40.492 ± 0.035e-50.685 ± 0.07
Cosine + warmup0.01× base1e-50.498 ± 0.065e-60.50 ± 0.00
Cosine + warmup0.001× base1e-60.315 ± 0.085e-70.50 ± 0.00

Tuning results for Table 3: partial initialization. The same conclusion extends beyond the from-scratch baseline: we also performed a dedicated hyperparameter search (learning rate, warmup length, weight decay) for the partial-initialization setting on PathFinder, where models receive the SPT values of the attention blocks, their normalization layers, and the encoder, with all other parameters randomly initialized:

Learning rateWarmup stepsWeight decayAccuracy
2e-42,0000.010.707
3e-42,0000.010.702
4e-43,0000.00.700
3.5e-43,0000.00.778
2.5e-43,0000.00.751
From scratch (reference)0.672
Full SPT init (reference)0.85

Partial initialization recovers part of the gap (up to 0.778), but no hyperparameter combination approaches full SPT initialization (0.85). Hyperparameter optimization thus cannot substitute for the full SPT initialization in either setting -- neither for from-scratch training (table above) nor for partial initialization -- indicating the benefit is not an artifact of tuning.

Wall-clock training time and resulting accuracy. (single NVIDIA A100-80GB, batch size 16; times per run, averaged over seeds where applicable):

RegimeEpochsTime (CIFAR10)Time (PathFinder)Acc. (CIFAR10)Acc. (PathFinder)
Pretraining (MLM)1001h 10m9h 39m——
Pretraining (MLM)2002h 38m19h 21m——
Pretraining (MLM)4005h 10m39h 09m——
Finetuning (from SPT)1000h 59m9h 55m0.7240.85
From scratch1000h 59m8h 45m0.5030.672
From scratch400 (ext.)5h 40m32h 18m0.5010.685
SPT pipelinePT+FT †2h 09m29h 16m0.7240.85
From scratch (ext.)4005h 40m32h 18m0.5010.685

† 100 pretraining + 100 finetuning epochs on CIFAR10; 200 + 100 on PathFinder.

The full SPT pipeline costs less wall-clock time than the extended from-scratch baseline on both tasks, while reaching substantially higher accuracy (0.724 vs. 0.501 on CIFAR10; 0.85 vs. 0.685 on PathFinder). Additional supervised epoch budget did not account for the gap in our setup.


Q2 Completed Table 2: Seed stability on ListOps, Retrieval, and Text

We re-ran the previously single seed entries of the freezing table with 3 seeds each (from scratch, with Attention frozen, and with Attention & MLP frozen):

DatasetFrom scratchAtt. frozenAtt. & MLP frozen
CIFAR10 (5 seeds)0.503 ± 0.0020.535 ± 0.004 (+0.032)0.468 ± 0.008 (−0.035)
PathFinder (5 seeds)0.672 ± 0.0030.50 ± 0.00 (−0.172)0.50 ± 0.00 (−0.172)
ListOps (new, 3 seeds)0.41 ± 0.0030.42 ± 0.005 (+0.01)0.29 ± 0.009 (−0.12)
Retrieval (new, 3 seeds)0.77 ± 0.0050.78 ± 0.004 (+0.01)0.66 ± 0.011 (−0.11)
Text (new, 3 seeds)0.65 ± 0.0040.65 ± 0.006 (+0.00)0.66 ± 0.002 (+0.01)

The multi-seed validation confirms the original single-seed results: all means lie within one standard deviation of the previously reported values, and every qualitative conclusion is unchanged freezing Attention at random initialization leaves ListOps, Retrieval, and Text essentially unaffected (Δ≤0.01\Delta ≤ 0.01), while additionally freezing the MLP substantially degrades ListOps (−0.12−0.12) and Retrieval (−0.11−0.11) and leaves Text unaffected. Variance is larger in the Att. & MLP frozen setting on ListOps and Retrieval (±0.09\pm 0.09, ±0.11\pm 0.11), reflecting increased training instability when most parameters are clamped; the degradation is nonetheless consistent across seeds.


Q3 Same bottleneck with CLS aggregation?

We repeated the from-scratch comparison of Table 1, replacing mean pooling with a learned CLS token (5 seeds per cell), including a learning-rate sweep for the CLS configuration to rule out that the results are an artifact of a learning rate tuned for mean pooling.

lrFrom scratch
CIFAR10
Mean pooling (paper)1e-30.503 ± 0.002
CLS token1e-30.483 ± 0.004
CLS token1e-40.484 ± 0.005
CLS token1e-50.438 ± 0.008
PathFinder
Mean pooling (paper)5e-40.672 ± 0.003
CLS token5e-40.50 ± 0.00
CLS token5e-50.623 ± 0.06
CLS token5e-60.50 ± 0.00

In short: CLS aggregation does not improve over mean pooling. In any configuration it performs comparably on CIFAR10 and is markedly more fragile on PathFinder. We recall that in our setting SPT with mean pooling remains far ahead of all of the above: 0.724 ± 0.003 on CIFAR10 and 0.85 ± 0.004 on PathFinder. On CIFAR10, SPT finetuning under CLS reaches 0.653 ± 0.007, recovering a gap (+0.17) comparable to mean pooling (+0.22) so the SPT benefit itself transfers across aggregations.

Comments on the paper

1 comment
Meta-review

The paper studies why masked reconstruction on downstream data improves subsequent supervised training from random initialization. It's a empirical analysis paper. Its main strength is a set of ablations that are designed to test the hypothesis, not theory or new techniques. The mechanistic ablations relate this gain to QK structure are interesting, but the overall advantage of adding a dense self-supervised stage is unsurprising and, without an iso-compute control, does not itself establish that the reconstruction objective resolves a specific optimization pathology.

Specifically, the main current limitation is the confounding of (i) the benefit from the reconstruction objective (claim) vs (ii) additional optimization budget. The response should provide an iso-compute or convincingly tuned supervised baseline. Or explain why the current experiments show longer supervised training can't make up for the missing gains.

Also, there's an issue of over-claiming. Evidence is heavily focused on mean-pooled CIFAR10 and PahtFinder models, with the theorem depending on the mean pooling operation instead of [CLS], so the claim on general transformer sequence classification is a bit unaccounted for.

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

Related papers

Loading the map…

Discussion (0)

Sign in to comment.