# Compute-Optimal Pretrain--Fine-tune in Ridge Gradient Flow

*Alex Buna-Marginean, Fanghui Liu, Patrick Rebeschini*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/152040) · [OpenReview](https://openreview.net/forum?id=VzaMH1nM2t) · [alphaXiv](https://www.alphaxiv.org/abs/2609.16262) · [Open on the map](../papers.html#p152040)

Category: [Interpretability & Model Adaptation](../pcat/15.md) › [Contractive Recurrent Learning](../pgroup/163.md) · Type: theory · Keywords: compute allocation, pretrain fine-tune trade-off, ridge gradient flow, spectral decomposition, theoretical analysis

Areas: [Optimization & Algorithms](../areas/optimization.md) › Optimization Dynamics › Optimization Algorithms

## Summary
The paper studies the Compute-Optimal Pretrain-Fine-tune trade-off in ridge gradient flow, providing a spectral characterization of the optimal switching time between pretraining and fine-tuning.

## Explained to a 5-year-old
We have a computer that learns two things: first it learns general stuff, then it learns specific stuff. We only have a limited amount of time to run both steps. The paper figures out the best way to split that time so the computer works as well as possible. It looks at how the general learning affects the specific learning and decides the perfect balance.

## Explained to a 5-year-old, longer
Imagine you have a toy robot that can learn two skills: first it learns how to move its arms in general ways, then it learns how to pick up particular toys. You have a timer that only lets you practice for a certain amount of time total. You want to know how much time to spend on each skill so the robot can do both as well as possible. The researchers studied this problem using a simple math model that copies how computers learn. They broke down the learning into pieces and looked at how the first skill influences the second skill. By doing some careful math, they discovered the best way to split the time, which depends on how the two skills are related. This helps us understand when to focus on learning general abilities versus learning specific tasks.

## For a technical reader
The work formulates compute allocation as a time-split problem in a two-stage training pipeline using ridge regression with gradient flow. It derives an optimal switching time via a basis-invariant spectral decomposition of the upstream and downstream covariances, showing how the geometry of both stages determines the best split. The analysis provides a closed-form relationship between the spectral components and the allocation, offering a principled way to schedule pretrain and fine-tune phases.

## Problem
How should a fixed compute budget be divided between pretraining and fine-tuning to achieve the best downstream performance? This trade-off is not yet well understood theoretically, even in simple models.

## Method
The authors model the compute allocation as a time-split problem under a two-stage training procedure with a fixed total optimisation time, using regularised least squares trained by gradient flow as a tractable setting. They conduct a basis-invariant eigenspace-level spectral decomposition of the empirical covariances and apply perturbative control of the non-commuting dynamics to derive the optimal switching time. The key quantities are the prediction-relevant spectral components of the upstream and downstream covariances.

## Results
The approach reveals that the optimal compute split is governed by the prediction-relevant spectral components of the pretraining and fine-tuning covariances, linking upstream directions and downstream geometry.

## Contributions
The paper provides a theoretical characterisation of the optimal switching time between pretraining and fine-tuning under a fixed compute budget, using a basis-invariant spectral decomposition and perturbative analysis. It shows how upstream and downstream data geometry jointly determine the best allocation.

## Limitations and assumptions
The analysis assumes a fixed total optimisation time and uses regularised least squares with gradient flow as a tractable model, which may limit direct applicability to more complex models.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/152040)
