potentialpaper

Compute-Optimal Pretrain--Fine-tune in Ridge Gradient Descent

Alex Buna, Fanghui Liu, Patrick Rebeschini

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

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

Or let your agent set it up

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

TL;DR. We study the problem of switching from pretraining to fine-tuning under a fixed compute budget in ridge regression, when both phases employ gradient descent.

Abstract. Pretraining followed by fine-tuning introduces a compute-allocation problem: under a fixed training budget, compute spent improving the upstream objective reduces the compute available for downstream adaptation. Despite its practical importance, the theoretical understanding of this trade-off remains limited, even in simple models. In this paper, we cast this allocation as a compute-split problem under a two-stage pretrain–fine-tune procedure with fixed total optimisation budget, using regularised least squares trained by gradient descent as a tractable setting. We characterise the optimal split under data-dependent evaluation geometries induced by the fine-tuning problem. Our results show that the allocation depends on how pretraining directions affect fine-tuning predictions and how fine-tuning shifts are seen through downstream data geometry. In particular, the relevant quantities are determined by prediction-relevant spectral components of the pretraining and fine-tuning empirical covariances. Technically, the analysis relies on a basis-invariant, eigenspace-level spectral decomposition, together with perturbative control of the non-commuting pretraining and fine-tuning dynamics.

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

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

edit · history

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

NeurIPS 2026

Accept (poster) · 4 reviews · OpenReview

Updated 25 Nov 2026, 03:46 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

The reviewers generally find the spectral characterization of the optimal pretraining-to-fine-tuning switching time technically nontrivial and interesting. The main concern is significance: the analysis is confined to continuous-time ridge regression, and the paper provides little evidence that the resulting spectral bottleneck insight extends to representation learning or realistic pretraining and fine-tuning. The response should better motivate the finite-horizon objective and regularization choices, explain how the setup captures distinct pretraining and downstream datasets, and clarify how t∗t^* could be potentially estimated without oracle access to Hessian eigenspaces. The authors should also address the specific proof concern in Theorem 10 and discuss robustness to more general setting such as discrete updates and non-quadratic objectives.

Final justification

The paper gives a clean spectral characterization of how compute should be divided between pretraining and fine-tuning in ridge-regression gradient flow, and the core mathematical results appear technically sound. While the practical and conceptual significance beyond the quadratic setting remains limited, the authors addressed some of the major concerns and provided clarifications in the rebuttal.

Area Chair Ukqu · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

The reviewers generally find the spectral characterization of the optimal pretraining-to-fine-tuning switching time technically nontrivial and interesting. The main concern is significance: the analysis is confined to continuous-time ridge regression, and the paper provides little evidence that the resulting spectral bottleneck insight extends to representation learning or realistic pretraining and fine-tuning. The response should better motivate the finite-horizon objective and regularization choices, explain how the setup captures distinct pretraining and downstream datasets, and clarify how t∗t^* could be potentially estimated without oracle access to Hessian eigenspaces. The authors should also address the specific proof concern in Theorem 10 and discuss robustness to more general setting such as discrete updates and non-quadratic objectives.

Final justification

The paper gives a clean spectral characterization of how compute should be divided between pretraining and fine-tuning in ridge-regression gradient flow, and the core mathematical results appear technically sound. While the practical and conceptual significance beyond the quadratic setting remains limited, the authors addressed some of the major concerns and provided clarifications in the rebuttal.

1 comment
Authors · CommentOpenReview ↗

We thank the AC and the reviewers for their positive and constructive feedback. We have addressed the reviewers' comments in great detail. For the AC's remarks, we would like to shortly comment on them and point to the relevant parts of the rebuttal:

 

  • Evidence beyond fixed-feature models: Admittedly, our characterisation works in the fixed-feature models for tractability. However, recent work also shows that such fixed-feature models can remain informative beyond that formal setting via spectral predictions. For instance, [1] derives a functional law under power-law spectral capacity and source conditions which, after being fitted on one learning-rate schedule, predicts LLM pretraining loss trajectories under unseen schedules; and [2] shows that covariance-derived kernel eigenvalues predict the learning-time ordering of MLPs in the feature-learning regime. These works are concrete evidence that spectral mechanisms isolated in tractable models can remain predictive in LLM pretraining and feature-learning settings. Validating our particular two-stage allocation law in evolving-representation models is a natural direction, and we leave it for future work.

    [1] Li, B., Chen, F., Huang, Z., Wang, L., & Wu, L. (2026). Functional scaling laws in kernel regression: Loss dynamics and learning rate schedules. Advances in Neural Information Processing Systems, 38, 101211-101269.

    [2] Karkada, D., Turnbull, J., Liu, Y., & Simon, J. B. (2025). Predicting kernel regression learning curves from only raw data statistics. arXiv preprint arXiv:2510.14878.

 

  • the finite-horizon objective is addressed in the response to QXEX Q1. In particular, recent applied work on protein language models with a fixed compute budget notices a switching tradeoff of 10-20% when fitting an upstream dataset using Causal Language Models and adapting to the downstream dataset via Masked Language Models.

 

  • regularisation choices are discussed in the responses to QXEX Q2 and 55NG W1/Q1. Our results apply to any choice of regularisation strengths and, when tuned optimally, these regularisers can capture distinct pretraining and downstream datasets.

 

  • t∗t^* can be estimated without oracle access to Hessian eigenspaces using the matrix-free Lanczos algorithm, as we detail in the reply to VgWi W3.

 

  • The specific proof concern in Theorem 10 raised by 55NG W3/Q2 is valid. It has a very easy local fix that we detailed in our rebuttal, and it does not affect any of our results.

 

  • Robustness to discrete updates is an easy consequence of our theorems/proofs, as detailed in the replies to VgWi W1 and 55NG Q3. The same spectral characterisation of the switch time holds even for discrete gradient descent steps.

 

  • Robustness to non-quadratic objectives: when the underlying objectives are strongly convex, the same qualitative characterisation of the switching time holds as in our setting, albeit for a upper bound surrogate of the update objective ∥∥Δt−Δ∥∥\|\|\boldsymbol{\Delta}_t-\boldsymbol{\Delta}\|\|. We discuss this in the replies for QXEX Q4 and 55NG W2.

 

Finally, as stated in Conclusion, we would like to emphasise once again that our results should be viewed as a structural characterisation, rather than a direct algorithmic characterisation. We will incorporate the points raised above in the final version of our paper.

Reviewer 55NGOpenReview ↗
Rating
4/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
theory
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper studies the problem of determining the optimal transition time from pretraining to fine-tuning under a ridge regression model. Specifically, the target is calibrated through a transfer update from the pretraining optimum to the fine-tuning optimum, and the training dynamics are modeled by gradient flow. The authors show that the optimal transition time can be characterized explicitly in terms of the relevant minimum eigenvalues and the alignment of the target update with the corresponding eigenspaces. Two evaluation objectives are considered: one under the downstream design seminorm and the other under the ridge-design norm, both leading to similar characterizations. The paper also provides simulation experiments that corroborate the theoretical predictions.

Strengths and weaknesses

Strengths:

  1. The target problem is novel and interesting. To my knowledge, this is one of the first works to provide an explicit theoretical characterization of the pretraining--fine-tuning compute tradeoff. Rather than only asking whether pretraining helps downstream performance, the paper studies when one should switch from pretraining to fine-tuning under a fixed optimization budget.

  2. The work is mostly technically solid. The proof is based on a fine-grained spectral decomposition of the pretraining and fine-tuning dynamics, and the eigenspace-level treatment is appropriate for handling possible eigenvalue multiplicities and non-commuting Hessians.

Weaknesses:

  1. The motivation for comparing the optimum under two different choices of the regularization parameters γ\gamma and γ′\gamma' is not fully clear. Since these parameters affect both the ridge optima and the spectral bottlenecks that determine the transition time, it would be useful for the authors to better explain what practical or conceptual question is answered by varying them.

  2. The discussion is somewhat narrowly focused on the ridge-difference setting. The techniques developed in the paper appear potentially applicable to more general linear problems with two quadratic objectives and fixed Hessians. It would strengthen the paper to clarify which parts of the analysis are specific to ridge regression and which parts extend to general linear/quadratic models.

  3. I found some technical issues in the proof that should be addressed. In particular, in the proof of Theorem 10 under the Σ^′\widehat{\Sigma}'-seminorm, the authors appear to use the implication ∣Piw^∣Σ^′=0⇒Piw^=0|P_i\widehat w|_{\widehat{\Sigma}'}=0 \Rightarrow P_i\widehat w=0 when discarding inactive eigenspace components. This implication is false for a seminorm; it only implies that Piw^∈ker⁡(Σ^′)P_i\widehat w\in\ker(\widehat{\Sigma}'). The argument may be repairable because the eigenspaces of H′=Σ^′+γ′IH'=\widehat{\Sigma}'+\gamma'I are compatible with those of Σ^′\widehat{\Sigma}', but the proof should explicitly justify why these inactive components make no contribution to the Σ^′\widehat{\Sigma}'-seminorm bounds.

Questions
  1. Motivation and practical implications. The role of the two ridge parameters γ\gamma and γ′\gamma' is not fully clear to me. Since these parameters directly affect both the ridge optima and the spectral quantities that determine the optimal transition time, could the authors clarify what practical or conceptual insight is gained by varying them? More broadly, how should the theoretical characterization inform practical pretraining/fine-tuning algorithms?

  2. Technical issue in the proof. Could the authors clarify the technical issue mentioned above regarding the treatment of inactive eigenspace components under the Σ^′\widehat{\Sigma}'-seminorm?

  3. Gradient flow versus discrete gradient descent. The analysis follows prior continuous-time gradient-flow studies such as Ali et al. However, practical training uses discrete gradient descent. In the present quadratic setting, the continuous-time factor e−tHe^{-tH} would be replaced by (I−ηH)k(I-\eta H)^k, with t≈ηkt\approx \eta k. Relatedly, Sonthalia et al., On Regularization via Early Stopping for Least Squares Regression, study the discrete full-batch gradient descent dynamics directly. Could the authors discuss whether the main characterization remains valid under this discretization, and how the step size η\eta affects the optimal transition time?

  4. Size and interpretation of T0T_0. The main theorems require the total budget TT to be larger than some threshold T0T_0. How large does TT need to be for the asymptotic characterization to be accurate? It would be helpful to provide either explicit dependence of T0T_0 on the spectral gaps/alignment quantities, or numerical evidence showing when the predicted transition time becomes reliable.

Limitations

The paper mentioned its limitation on the structural characterization of t∗t^*, showing that its computation relies on several quantities that are only available by oracle. I believe it would be helpful to discuss the practical implications of the theories on general algorithm design and training processes.

Final justification

The paper is consider solid and the rebuttal explains my concerns. I hold my initial review evaluation for acceptance

Formatting concerns

No formatting problem observed.

1 comment
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for finding the problem novel and interesting, and for flagging a local technical issue.

 

W1/Q1: Motivation and practical implications

Rather than varying the two regularisation parameters, our results should be understood as holding for any regularisation strength parameters γ,γ′>0\gamma,\gamma'>0, including values selected according to statistical theory or validation. The optimal switching time satisfies

t∗T≈νj∗′+γ′νi∗+νj∗′+γ+γ′\hspace{12em}\frac{t^* }{T}\approx \frac{\nu'_{j^* }+\gamma'}{\nu_{i^* }+\nu'_{j^* }+\gamma+\gamma'}

where νi∗\nu_{i^* } and νj∗′\nu_{j^* }' are the corresponding bottleneck eigenvalues of Σ^\widehat{\boldsymbol \Sigma} and Σ^′\widehat{\boldsymbol \Sigma}', respectively. The ratio t∗/Tt^*/T is decreasing in γ\gamma and increasing in γ′\gamma'. If the upstream dataset is noisier, stronger pretraining regularisation is needed, and as a result the switch occurs earlier.

More broadly, our characterisation suggests selecting the switching time from the spectral properties of the specific pretraining and fine-tuning objectives, rather than adopting a split that is independent of the two objectives.

 

W2: Narrow focus on ridge regression

Our results can be extended to arbitrary strongly convex quadratics, and the intuition can be generalised to other strongly convex cost functions, not necessarily quadratics.

Specifically, our theory extends easily to

Rpre⁡(w)=c+12∥∥w−u∥∥A2,Rfine⁡(w)=c′+12∥∥w−v∥∥B2,\hspace{12em}R_{\operatorname{pre}}(\boldsymbol w)=c+\frac{1}{2}\|\|\boldsymbol w-\boldsymbol u\|\|^2_{\boldsymbol A},\quad R_{\operatorname{fine}}(\boldsymbol w)=c '+\frac{1}{2}\|\|\boldsymbol w-\boldsymbol v\|\|^2_{\boldsymbol B},

where c,c′∈Rc,c'\in\mathbb{R}, A,B\boldsymbol A,\boldsymbol B are symmetric positive definite matrices, and u,v\boldsymbol u,\boldsymbol v are the minima of the two phases. This generalisation can be reduced to our framework via the transformation (H,H′,w^,Δ):=(A,B,u,v−u)(\boldsymbol H,\boldsymbol H',\widehat{\boldsymbol w},\boldsymbol\Delta):=(\boldsymbol A,\boldsymbol B,\boldsymbol u,\boldsymbol v-\boldsymbol u).

A heuristic analogy that follows Remark 7 closely can be drawn for general strongly convex objectives. Assuming the pretraining and fine-tuning objectives are α\alpha and α′\alpha' strongly convex, and have minimisers w^\widehat{\boldsymbol w} and w^′\widehat{\boldsymbol w}', respectively, then one can show that gradient flow contraction gives an upper bound

∥∥Δt−Δ∥∥2≤2∥∥w^∥∥2e−αt+∥∥Δ∥∥2e−α′(T−t)\hspace{12em} \|\|\boldsymbol\Delta_t-\boldsymbol\Delta\|\|_2 \leq 2\|\|\widehat{\boldsymbol w}\|\|_2e^{-\alpha t}+\|\|\boldsymbol \Delta\|\|_2e^{-\alpha'(T-t)}

and the minimiser of the RHS is given by

t∗=α′α+α′T+O(1).\hspace{12em} t^* = \frac{\alpha'}{\alpha+\alpha'}T+O(1).

Although not an exact characterisation of the minimum, this heuristic offers the same qualitative principle as our theory.

 

W3/Q2: Technical issue in the proof (line 714)

Indeed, under the Σ^′\widehat{\boldsymbol \Sigma}' criterion, ∥∥Piw^∥∥Σ^′=0\|\|\boldsymbol P_i\widehat{\boldsymbol w}\|\|_{\widehat{\boldsymbol \Sigma}'}=0 only implies Piw^∈Ker⁡(Σ^′)\boldsymbol P_i\widehat{\boldsymbol w}\in\operatorname{Ker}(\widehat{\boldsymbol \Sigma}'). The contribution of (i,j)(i,j) is still 00: as Qj\boldsymbol Q_j commutes with Σ^′\widehat{\boldsymbol \Sigma}', we have Σ^′QjPiw^=QjΣ^′Piw^=0\widehat{\boldsymbol \Sigma}'\boldsymbol Q_j\boldsymbol P_i\widehat{\boldsymbol w}=\boldsymbol Q_j\widehat{\boldsymbol \Sigma}'\boldsymbol P_i\widehat{\boldsymbol w}=0, i.e., a contribution of 00.

We will correct this minor issue, thank you again for flagging it. Note that the final Theorem 10 statement remains unchanged.

 

Q3: Gradient flow versus discrete gradient descent

Continuous-time analyses of gradient descent are commonly used in the theoretical machine learning literature because they often capture the underlying phenomena more transparently while remaining analytically tractable, for example, see [1, 2, 3]. This is also the case in our setting and continuous time is not essential. Analogous gradient descent results can be obtained by a reduction to our result without the need to redo an entire technical discrete analysis. As a sketch, consider small enough fixed step-sizes η<λmax⁡(H)−1\eta < \lambda_{\max}(\boldsymbol H)^{-1} and η′<λmax⁡(H′)−1\eta' < \lambda_{\max}(\boldsymbol H')^{-1} for pretraining and fine-tuning respectively. One can show that

hspace12emΔt−Δ=(I−e(T−t)log⁡(I−η′H′))etlog⁡(I−ηH)w^−e(T−t)log⁡(I−η′H′)Δ.\\hspace{12em} \begin{aligned} \boldsymbol\Delta_t-\boldsymbol\Delta &= (\boldsymbol I-e^{(T-t)\log(\boldsymbol I-\eta'\boldsymbol H')}) e^{t\log(\boldsymbol I-\eta\boldsymbol H)} \widehat{\boldsymbol w} - e^{(T-t)\log(\boldsymbol I-\eta'\boldsymbol H')} \boldsymbol\Delta. \end{aligned}

Thus, the analogous objective ff induced by GD is the same after the transformation H↦−log⁡(I−ηH)\boldsymbol H\mapsto -\log(\boldsymbol I-\eta\boldsymbol H), H′↦−log⁡(I−η′H′)\boldsymbol H'\mapsto -\log(\boldsymbol I-\eta'\boldsymbol H'). The only caveat is that now the localisation result will not be exponential in TT anymore, because the continuous minimiser t∗t^* has to be approximated by an integer:

t∗=−log⁡(1−η′μj∗)−log⁡(1−ηλi∗)−log⁡(1−η′μj∗)T+O(1).\hspace{12em}t^* = \frac{-\log(1-\eta'\mu_{j^* })}{-\log(1-\eta\lambda_{i^* })-\log(1-\eta'\mu_{j^* })}T+O(1).

In fact, as −log⁡(1−ηλi∗)=ηλi∗+O(η2)-\log(1-\eta\lambda_{i^* })=\eta\lambda_{i^* }+O(\eta^2), for equal and small enough step sizes we recover the same t∗/T→μj∗/(λi∗+μj∗)t^* /T\rightarrow\mu_{j^* }/(\lambda_{i^* }+\mu_{j^* }) as in the case of gradient flow.

In fact, Figure 1 already evaluates the prediction using discrete full-batch GD and shows empirically that our GF results are to be expected even for discrete steps, and the reduction sketched above is the reason why. We will add a proposition about the discrete characterisation of the optimal switch-time in the next iteration of our paper.

[1] Ali, A., Kolter, J. Z., & Tibshirani, R. J. (2019). A continuous-time view of early stopping for least squares regression. In The 22nd international conference on artificial intelligence and statistics (pp. 1370-1378). PMLR.

[2] Celentano, M., Cheng, C., & Montanari, A. (2021). The high-dimensional asymptotics of first order methods with random data. arXiv preprint arXiv:2112.07572.

[3] Suggala, A., Prasad, A., & Ravikumar, P. K. (2018). Connecting optimization and regularization paths. Advances in Neural Information Processing Systems, 31.

 

Q4: Size and interpretation of T0T_0

We thank the reviewer for this suggestion. We omitted a closed-form expression for T0T_0 from the theorem statements to aid with the presentation. It can be recovered by tracing the proof and we will make the dependence explicit in the revision.

The spectral gaps do appear in the expression of T0T_0. For instance, using the notations of Theorem 6, the spectral gaps appear linearly in the definitions of δ1\delta_1 and δ2\delta_2, consequently in δ\delta. Rearranging the expression in lines 567-569, one of the conditions on T0T_0 is, after dropping logarithmic terms, T0≥1/δT_0\geq 1/\delta. Thus, T0T_0 scales inversely with the relevant spectral gaps.

Reviewer kLC7OpenReview ↗
Rating
5/6
Confidence
1/5
Quality
3/4
Clarity
3/4
Significance
4/4
Originality
3/4
Contribution type
theory
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper studies the optimal compute-time allocation between pre-training and fine-tuning through the lens of the ridge gradient flow. The central result is that the optimal switching point from pre-training to fine-tuning is governed by the ratio of the smallest bottleneck eigenvalues of the pre-training and fine-tuning in certain eigenspaces. This provides a clean, analytically tractable characterization of a question that is practically important but has lacked theoretical grounding: when to switch from pre-training to fine-tuning?

Strengths and weaknesses

This paper makes a theoretical contribution to a question of practical relevance when to switch from pre-training to fine-tuning given a fixed budget. The use of ridge gradient flow as the analytical tool is well-motivated and allows the comparison with the exact solutions obtained by the original ridge regression, to characterize the optimal time allocation. The key result that the bottleneck eigenvalue ratio between pre-training and fine-tuning determines the optimal switching point (Theorems 6 and 10) is a clean and interpretable finding. The observation that the task geometry of fine-tuning constraints the duration of pre-training (and vice versa) aligns with practices. The paper is overall well written and honest about the gap between this model and practical deep learning.

At the same time, ridge regression, while analytically clean, is a substantial simplification of the representation learning, where pre-training and fine-tuning matter most in practice. If the spectral bottleneck insight, which is convincing in the linear setting, says anything meaningful about, for example, deep learning, then it would be more significant. Currently, the paper does not offer a bridge between its theoretical results and practical insights.

Questions

Do the results apply to neural networks using NTK or similar regimes? A brief discussion connecting the results to representation learning would help readers assess the contribution.

Limitations

Yes

Final justification

The authors' rebuttals address my concern that their analysis is too far apart from the actual fine-tuning. As I have already recommended this work for acceptance, I raised the significance score.

Formatting concerns

NA

1 comment
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for suggesting this connection. Our results apply exactly to the fixed-NTK model/lazy-training regime. Suppose the network prediction on input ii is given by (fθ)i(\boldsymbol f_{\boldsymbol\theta})_i, where θ\boldsymbol \theta represents the network parameters, and the true label is (y)i(\boldsymbol y)_i. With the initialisation θ0\boldsymbol \theta_0, we can linearise as fθ≈fθ0+Φ(θ−θ0)\boldsymbol f_{\boldsymbol \theta}\approx \boldsymbol f_{\boldsymbol \theta_0}+\boldsymbol\Phi(\boldsymbol \theta-\boldsymbol \theta_0), where the ii-th row of the tangent feature matrix is (Φ)i:=(ddθ(fθ)i)(θ0)⊤(\boldsymbol \Phi)_{i:}=(\frac{\text{d}}{\text{d}\boldsymbol\theta}(\boldsymbol f_{\boldsymbol \theta})_i)(\boldsymbol\theta_0)^\top. The associated squared loss is ∥∥Φ(θ−θ0)−(y−fθ0)∥∥2\|\|\boldsymbol\Phi(\boldsymbol \theta-\boldsymbol\theta_0)-(\boldsymbol y-\boldsymbol f_{\boldsymbol\theta_0})\|\|^2. Adding the penalty γ∥∥θ−θ0∥∥2/2\gamma\|\|\boldsymbol \theta-\boldsymbol\theta_0\|\|^2/2, the pretraining and fine-tuning objectives are exactly our ridge objectives with

H=Φ⊤Φn+γI,H′=(Φ′)⊤Φ′n′+γ′I.\hspace{12em} \boldsymbol H=\frac{\boldsymbol\Phi^\top\boldsymbol\Phi}{n}+\gamma\boldsymbol I,\quad \boldsymbol H'=\frac{(\boldsymbol\Phi')^\top\boldsymbol\Phi'}{n'}+\gamma'\boldsymbol I.

Therefore our results apply directly to the lazy-training regime, with the interpretation that the active eigenvalues of I\mathcal I and J\mathcal J correspond to the two Hessians outlined above.

We do not claim that these results hold outside the lazy-training regime, as the tangent features, and thus the Hessians, evolve with time.

Reviewer VgWiOpenReview ↗
Rating
4/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
2/4
Originality
3/4
Contribution type
theory
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper discusses the computation-allocate problem under a fixed training budget, focusing on how to find the optimal switching time from the pretraining to the fine tuning. The authors frame the problem as a time-split optimization problem with a focus on the regularised least squares trained by gradient flow. The analytical results show the optimal switching time depends on the spectral components of the pretraining and fine tuning empirical covariances.

Strengths and weaknesses

Strengths:

  1. The analytical results are strong. The authors provide a closed-form and a sharp bound on the optimal switching time.
  2. The proof is based on spectral projectors associated with distinct eigenvalues, making the active sets basis-invariant.
  3. The paper is clearly written and easy to follow. Weakness:
  4. Although this is a theoretical paper, the setting is too ideal. While the paradigm of pretraining and fine tuning is usually for large datasets and models, the assumptions on full batch, continuous time and ridge regression are infeasible for pretraining.
  5. The motivation of the objective is limited. In line 76, the authors propose to find a tt which minimizes the difference between Δt\Delta_t and Δ\Delta. However, empirical excess risk is more meaningful for finetuning. It is unclear whether these two differences are equal in general cases.
  6. Localizing the optimal tt requires the Hessian and eigenspace projections. As this paper starts from a practical problem (time-allocation), it would be better to provide certain approximations or heuristics.
  7. The result of optimal tt denpends on the NKH. The subpopulation shifts on the data distribution could simply degenerate the strategy to mostly finetuning (i.e., very small tt).
Questions

Considering this is a theoretical paper, I am happy to change my score if the authors could clarify 2, 3, 4 in weakness.

Limitations

Yes.

Final justification

As my questions are clearly answered, I incresed the score.

Formatting concerns

No

2 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for the positive feedback on the analytical results and presentation. We address directly the four weaknesses/questions:

W1: Too idealistic setting

We agree that the model is deliberately stylised, and we do not claim it directly captures stochastic or non-linear training. Our framework targets a broader class of compute-constrained adaptation problems, including continual pretraining and domain adaptation, where upstream adaptation and downstream specialisation compete for a finite optimisation budget.

Continuous-time analyses of gradient descent are commonly used in the theoretical machine learning literature because they often capture the underlying phenomena more transparently while remaining analytically tractable, for example, see [1, 2, 3]. This is also the case in our setting and continuous time is not essential. Analogous gradient descent results can be obtained by a reduction to our result without the need to redo an entire technical discrete analysis. As a sketch, consider small enough fixed step-sizes η<λmax⁡(H)−1\eta < \lambda_{\max}(\boldsymbol H)^{-1} and η′<λmax⁡(H′)−1\eta' < \lambda_{\max}(\boldsymbol H')^{-1} for pretraining and fine-tuning respectively. One can show that

hspace12emΔt−Δ=(I−e(T−t)log⁡(I−η′H′))etlog⁡(I−ηH)w^−e(T−t)log⁡(I−η′H′)Δ.\\hspace{12em} \begin{aligned} \boldsymbol\Delta_t-\boldsymbol\Delta &= (\boldsymbol I-e^{(T-t)\log(\boldsymbol I-\eta'\boldsymbol H')}) e^{t\log(\boldsymbol I-\eta\boldsymbol H)} \widehat{\boldsymbol w} - e^{(T-t)\log(\boldsymbol I-\eta'\boldsymbol H')} \boldsymbol\Delta. \end{aligned}

Thus, the analogous objective ff induced by GD is the same after the transformation H↦−log⁡(I−ηH)\boldsymbol H\mapsto -\log(\boldsymbol I-\eta\boldsymbol H), H′↦−log⁡(I−η′H′)\boldsymbol H'\mapsto -\log(\boldsymbol I-\eta'\boldsymbol H'). The only caveat is that now the localisation result will not be exponential in TT anymore, because the continuous minimiser t∗t^* has to be approximated by an integer.

In fact, Figure 1 already evaluates the prediction using discrete full-batch GD and shows empirically that our GF results are to be expected even for discrete steps, and the reduction sketched above is the reason why. We will add a proposition about the discrete characterisation of the optimal switch-time in the next iteration of our paper.

[1] Ali, A., Kolter, J. Z., & Tibshirani, R. J. (2019). A continuous-time view of early stopping for least squares regression. In The 22nd international conference on artificial intelligence and statistics (pp. 1370-1378). PMLR.

[2] Celentano, M., Cheng, C., & Montanari, A. (2021). The high-dimensional asymptotics of first order methods with random data. arXiv preprint arXiv:2112.07572.

[3] Suggala, A., Prasad, A., & Ravikumar, P. K. (2018). Connecting optimization and regularization paths. Advances in Neural Information Processing Systems, 31.

 

W2: Objective and empirical excess risk

We agree that downstream empirical risk is the meaningful criterion, and this is in fact exactly our H′\boldsymbol H'-norm objective, rather than a surrogate. This can be seen from Lemma 1, which states that

Rfine⁡(w^+Δt)−Rfine⁡(w^′)=12∥∥Δt−Δ∥∥H′2.\hspace{12em} R_{\operatorname{fine}}(\widehat{\boldsymbol w}+\boldsymbol\Delta_t)-R_{\operatorname{fine}}(\widehat{\boldsymbol w}')=\frac{1}{2}\|\|\boldsymbol \Delta_t-\boldsymbol\Delta \|\|_{\boldsymbol H'}^2.

As a consequence, the anchored downstream empirical risk Rfine⁡(w^+Δt)R_{\operatorname{fine}}(\widehat{\boldsymbol w}+\boldsymbol\Delta_t) and fH′(t)=∥∥Δt−Δ∥∥H′2f_{\boldsymbol H'}(t)=\|\|\boldsymbol \Delta_t-\boldsymbol\Delta \|\|_{\boldsymbol H'}^2 have the same minimiser t∗t^*. In our update-based formulation, the fine-tuning empirical risk is evaluated at the transferred model w^+Δt\widehat{\boldsymbol w}+\boldsymbol \Delta_t, obtained by applying a finite-budget update to the fixed pretraining anchor w^\widehat{\boldsymbol w}, motivated by the empirical success of adapters, LoRA, delta tuning, or task vectors.

We agree, however, that our presentation may have weakened this connection because we use the same notation f(t)f(t) for two different geometries, and we will revise this in the final version of our paper. The second criterion, fΣ^′(t)=∥∥Δt−Δ∥∥Σ^′2=∥∥X′(Δt−Δ)∥∥22/n′f_{\widehat{\boldsymbol \Sigma}'}(t)=\|\|\boldsymbol \Delta_t-\boldsymbol\Delta\|\|^2_{\widehat{\boldsymbol \Sigma}'}=\|\|\boldsymbol X'(\boldsymbol \Delta_t-\boldsymbol \Delta)\|\|^2_2/n' retains only the downstream prediction component, and in general

fH′(t)=fΣ^′(t)+γ′∥∥Δt−Δ∥∥22,\hspace{12em} f_{\boldsymbol H'}(t)=f_{\widehat{\boldsymbol \Sigma}'}(t)+\gamma'\|\|\boldsymbol \Delta_t-\boldsymbol\Delta\|\|_2^2,

so that the two criteria do not necessarily have the same minimiser.

 

W3: Practical approximation of the switching time

We thank the reviewer for this suggestion, which we will incorporate in our paper. Estimating the projection-dependent offset s∗s^* in the expression

t∗=μj∗λi∗+μj∗T+s∗+exp⁡(−δT)\hspace{12em} t^* =\frac{\mu_{j^* }}{\lambda_{i^* }+\mu_{j^* }}T+s^*+\exp(-\delta T)

presents as an intensive computational task. However, this offset is independent of TT and a good heuristic split-time is simply t∗≈μj∗T/(λi∗+μj∗)t^* \approx \mu_{j^* }T/(\lambda_{i^* }+\mu_{j^* }). For the H′\boldsymbol H' criterion we can individually estimate λi∗\lambda_{i^* } and μj∗\mu_{j^* }, for which there are cheap computational alternatives to spectral decompositions of the Hessians H,H′\boldsymbol H,\boldsymbol H' or computing w^,w^′\widehat{\boldsymbol w}, \widehat{\boldsymbol w}'.

Estimating λi∗\lambda_{i^* }: Let g=X⊤y/n=Hw^\boldsymbol g=\boldsymbol X^\top \boldsymbol y/n=\boldsymbol H\widehat{\boldsymbol w}, which is needed for the first gradient step. The key insight is that Piw^=λi−1Pig\boldsymbol P_i\widehat{\boldsymbol w}=\lambda_i^{-1}\boldsymbol P_i\boldsymbol g, so that λi∗=min⁡λi:Pig≠0\lambda_{i^* }=\min\\{\lambda_i:\boldsymbol P_i\boldsymbol g\neq 0\\} and this can be estimated using matrix-free Lanczos: since Hkg=∑i=1rλikPig\boldsymbol H^k \boldsymbol g=\sum_{i=1}^r \lambda_i^k\boldsymbol P_i \boldsymbol g, eigenspaces with Pig=0\boldsymbol P_i\boldsymbol g=0 never enter the matrix-vector iteration g↦Hg\boldsymbol g\mapsto \boldsymbol H\boldsymbol g, and the procedure produces a good estimate of λi∗\lambda_{i^* } at convergence.

Estimating μj∗\mu_{j^* }: For random and unstructured designs Q1Δ=Q1w^′−Q1w^≠0\boldsymbol Q_1\boldsymbol\Delta=\boldsymbol Q_1\widehat{\boldsymbol w}'-\boldsymbol Q_1\widehat{\boldsymbol w}\neq 0 almost surely, so that μj∗=μ1\mu_{j^* }=\mu_{1} is the smallest eigenvalue of H′\boldsymbol H' and can be approximated efficiently using again matrix-free Lanczos.

 

W4: Dependence on (NKH)

We agree that a structured subpopulation shift can make `mostly fine-tuning' optimal. Proposition 11 explicitly constructs such a scenario in which (NKH) does not hold and t∗/T→0t^*/T\rightarrow 0.

Authors · CommentOpenReview ↗

We thank the reviewer for carefully reading our rebuttal and updating their score.

Reviewer QXEXOpenReview ↗
Rating
4/6
Confidence
3/5
Quality
4/4
Clarity
3/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 compute allocation in a pretraining/fine-tuning procedure for ridge-regularized linear regression trained by gradient flow. Under a fixed optimization-time budget, the paper asks how long one should optimize the pretraining objective before switching to the fine-tuning objective, when performance is measured by how well the resulting finite-time update approximates the ideal update between the two ridge minimizers. The problem setup is clearly motivated and carefully defined, and the paper gives a detailed spectral characterization of the asymptotically optimal switching time. While some of the theoretical statements are technically opaque and rely on rather specialized notation, the surrounding discussion generally helps clarify the main intuition. The proofs appear plausible overall, although the results are quite conditional on specific properties of the problem, and additional discussion would be helpful to clarify the limitations of the results.

Strengths and weaknesses

The paper is technically sound and clear, and characterizing t⋆t^\star as the optimal splitting and showing the best exponential decrease of ff as T→∞T\to \infty lends credibility to the value of the result. That said it is not clear how one would compute t⋆t^\star or the multiple problem-dependent parameters a priory in order to leverage this result in practice.

The main weakness of the paper regards a lack of empirical grounding. Several decisions taken for granted in motivation are not really clear without some guiding problem. For example, it is not clear why one wouldn't simply run both pre-training and fine tuning to some tolerance, and a simple discussion on the introduction of applications that require a time-budget for optimization would easily motivate the problem.

Furthermore, typically pre-training/fine-tuning strategies arise from fundamentally distinct datasets: a large, possibly not very problem specific, poorly labeled, highly noisy dataset for pre-training; and a smaller, more specialized, clearly labeled dataset for fine-tuning. The paper does not discuss how the presented problem formulation mirrors this duality typically encountered in practice.

This is specially important in the discussions surrounding Theorem 4, where the authors consider the limit cases. One would expect a priori that if both datasets are completely unrelated, then pretraining would be irrelevant to fine-tuning performance, while if both datasets were redundant in some sense, then when the switching happens wouldn't matter. Adding explicit conditions on the datasets and/or problem definition that would result in any of the edge cases would help the viewer contextualize the results in practice.

A minor comment regards the multiple conflicting definitions for the symbol ff. It would be better to define each ff with a subscript for Σ\Sigma and HH and using the subscript MM when discussing both objectives generically. As is, the notation overload is very confusing.

Questions

As mentioned, I believe the paper would benefit from some context in real problems. Specifically, I would be interested in seeing the answer to the following questions in the manuscript:

  • Why would one care about a limiter time horizon T?
  • How are distinct datasets for pre-training/fine-tuning reflected in the problem setup?
  • For which types of problems/data should I expect to recover one of the edge cases discussed in Theorem 4?
  • Which (if any) conclusions and intuitions should I expect to generalize from this setup to different cost functions?
Limitations

I believe an important limitation of the analysis that was not discussed in the paper is the dependence on the linear nature of the gradient-flow. This is highlighted for example in Lemma 2 (whose result should be explicitly written as holding only for w0=0w_0=0) which is true only because one can write the solution of the gradient-flow explicitly. This is important because many problems in machine learning can be strongly convex but non quadratic, and the reader should be made aware of what he should expect to generalize and what is very dependent on the chosen problem.

Final justification

I hold my initial review evaluation

Formatting concerns

No issues noticed.

1 comment
Authors · RebuttalOpenReview ↗
Rebuttal

We would like to thank the reviewer for describing our theoretical results as sound, clear, and credible, and for the suggestions offered. As the questions are mainly related to the weakness points raised, we will address these together.

 

Q1: Objective and finite horizon

We agree that standard foundation-model training often allocates separate budgets. Our framework targets a broader class of compute-constrained adaptation problems, including continual pretraining and domain adaptation, where upstream adaptation and downstream specialisation compete for a finite optimisation budget. In many adaptation scenarios, including continual pretraining, domain adaptation, and resource-constrained model customisation, practitioners must decide how to allocate limited optimisation budget between learning transferable representations and adapting to a target task.

For instance, [1] studies a sequential two-objective scheduler under a fixed computational budget, training a protein language model first with a Causal Language Model, and later using the remaining compute for Masked Language Model training. Their empirical findings provide a non-trivial switching tradeoff, allocating 10-20% for the CLM stage.

[1] Cheng, X., Chen, B., Li, P., Gong, J., Tang, J., & Song, L. (2024). Training compute-optimal protein language models. Advances in Neural Information Processing Systems, 37, 69386-69418.

 

Q2: Distinct upstream and downstream datasets

Our goal is not to model statistical properties of pretraining/fine-tuning tradeoffs, but our work can offer an insight into the heterogeneity between the two datasets that can be inferred from the regularisation strength. Our results hold for any regularisation strength parameters γ,γ′>0\gamma,\gamma'>0, including values selected according to statistical theory or validation. The optimal switching time satisfies

t∗T≈νj∗′+γ′νi∗+νj∗′+γ+γ′\hspace{12em}\frac{t^* }{T}\approx \frac{\nu'_{j^* }+\gamma'}{\nu_{i^* }+\nu'_{j^* }+\gamma+\gamma'}

where νi∗\nu_{i^* } and νj∗′\nu_{j^* }' are the corresponding bottleneck eigenvalues of Σ^\widehat{\boldsymbol \Sigma} and Σ^′\widehat{\boldsymbol \Sigma}', respectively. The ratio t∗/Tt^*/T is decreasing in γ\gamma and increasing in γ′\gamma'. If the upstream dataset is noisier, stronger pretraining regularisation is needed, and as a result the switch occurs earlier.

 

Q3: Edge cases in Theorem 4

The edge cases in Theorem 4 correspond to situations where the upstream or downstream objective has no visible directions under the chosen evaluation geometry. For example, consider the downstream-prediction criterion Σ^\widehat{\boldsymbol \Sigma}, in which the upstream and downstream datasets have disjoint features X=(A 0)\boldsymbol X = (\boldsymbol A\ \boldsymbol 0) and X′=(0 B)\boldsymbol X' = (\boldsymbol 0\ \boldsymbol B). The upstream solution w^=(w 0)\widehat{\boldsymbol w} = (\boldsymbol w\ \boldsymbol 0) and all its spectral components thus lie in Ker⁡(X′)\operatorname{Ker}(\boldsymbol X'), so pretraining cannot improve downstream prediction and, according to Theorem 4, I=∅\mathcal I = \emptyset and the switching time is t∗=0t^*=0.

On the other hand, the opposite case t∗=Tt^*=T is expected when downstream adaptation is not required, such as instances where the two empirical risks have the same minimiser, or these minimisers differ only in a vector in Ker⁡(X′)\operatorname{Ker}(\boldsymbol X').

For identical/redundant objectives, the reviewer correctly points out that switching should not affect the final iterate. However, our framework evaluates a different quantity: the quality of the finite-budget transfer update Δt\boldsymbol\Delta_t. For anchored updates, under identical objectives the ideal update is zero, whereas switching before TT corresponds to the difference between the final iterate and the one where the switch occurred, hence a non-zero update. This is the reason why our theory suggests t∗=Tt^*=T, rather than being indifferent to the switching time.

 

Q4: Different cost functions

Our results can be extended to arbitrary strongly convex quadratics, and the intuition can be generalised to other strongly convex cost functions, not necessarily quadratics.

Specifically, our theory extends easily to

Rpre⁡(w)=c+12∥∥w−u∥∥A2,Rfine⁡(w)=c′+12∥∥w−v∥∥B2,\hspace{12em}R_{\operatorname{pre}}(\boldsymbol w)=c+\frac{1}{2}\|\|\boldsymbol w-\boldsymbol u\|\|^2_{\boldsymbol A},\quad R_{\operatorname{fine}}(\boldsymbol w)=c '+\frac{1}{2}\|\|\boldsymbol w-\boldsymbol v\|\|^2_{\boldsymbol B},

where c,c′∈Rc,c'\in\mathbb{R}, A,B\boldsymbol A,\boldsymbol B are symmetric positive definite matrices, and u,v\boldsymbol u,\boldsymbol v are the minima of the two phases. This generalisation can be reduced to our framework via the transformation (H,H′,w^,Δ):=(A,B,u,v−u)(\boldsymbol H,\boldsymbol H',\widehat{\boldsymbol w},\boldsymbol\Delta):=(\boldsymbol A,\boldsymbol B,\boldsymbol u,\boldsymbol v-\boldsymbol u).

A heuristic analogy that follows Remark 7 closely can be drawn for general strongly convex objectives. Assuming the pretraining and fine-tuning objectives are α\alpha and α′\alpha' strongly convex, and have minimisers w^\widehat{\boldsymbol w} and w^′\widehat{\boldsymbol w}', respectively, then one can show that gradient flow contraction gives an upper bound

∥∥Δt−Δ∥∥2≤2∥∥w^∥∥2e−αt+∥∥Δ∥∥2e−α′(T−t)\hspace{12em} \|\|\boldsymbol\Delta_t-\boldsymbol\Delta\|\|_2 \leq 2\|\|\widehat{\boldsymbol w}\|\|_2e^{-\alpha t}+\|\|\boldsymbol \Delta\|\|_2e^{-\alpha'(T-t)}

and the minimiser of the RHS is given by

t∗=α′α+α′T+O(1).\hspace{12em} t^* = \frac{\alpha'}{\alpha+\alpha'}T+O(1).

Although not an exact characterisation of the minimum, this heuristic offers the same qualitative principle as our theory.

 

Finally, we thank the reviewer for identifying the overloaded notation for ff. We will use fH′f_{\boldsymbol H'} and fΣ^′f_{\widehat{\boldsymbol\Sigma}'} for the two criteria, reserving fMf_{\texttt{M}} for statements applying to both, and will state the zero-initialisation condition explicitly in Lemma 2.

Regarding limitations, although we mention that ridge regression offers an analytically tractable setting (Abstract, Line 31, and Conclusion), we will strengthen this discussion further and clarify more precisely which heuristics can be extended beyond quadratic objectives, similar to Q4.

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

Missing a submission?

Loading the discussion…