TuneAhead: Predicting Fine-tuning Performance Before Full Training Begins

Yuxiang Luo, Haonan Long, Chen Wang, Qiqi Duan, Xiaotian Lin, Yanwei Xu, Yuyu Luo, Weikai Yang, Nan Tang

TL;DR

Fine-tuning large language models (LLMs) is a costly and unpredictable process. This paper introduces TUNEAHEAD, a framework that predicts fine-tuning performance before training begins, using a combination of dataset characteristics and short probe runs. This allows practitioners to avoid wasting resources on doomed runs and make more informed decisions.

What Problem Does This Paper Address?

Fine-tuning LLMs to adapt them to specific tasks or domains is crucial for their practical application. However, this process is notoriously expensive, requiring significant computational resources (GPU hours) and time. Worse, the success of a fine-tuning run is highly sensitive to factors like data quality and hyperparameter choices, meaning many runs can fail unexpectedly, even degrading performance. This unpredictability makes it difficult for researchers and engineers to decide which fine-tuning attempts are worth pursuing, leading to wasted resources and budget. The core problem is the lack of a reliable, low-cost method to predict the outcome of a fine-tuning run before committing to the full, expensive training process.

Methods

TUNEAHEAD tackles this problem by developing a two-stage framework:

  1. Meta-Dataset Curation: This stage involves extracting a rich set of "meta-features" for each potential fine-tuning experiment (defined by a dataset and hyperparameter configuration). These meta-features fall into two categories:
  2. Static Dataset Descriptors: These are computed directly from the dataset itself and capture intrinsic properties like size, lexical diversity, semantic similarity, and vocabulary alignment.
  3. Dynamic Probe Features: These are extracted from a very short, standardized "probe run" (e.g., 100 steps) of the LLM on the candidate dataset. They capture how the model interacts with the data early in training, reflecting aspects like loss decay, gradient stability, and parameter changes. This dynamic aspect is key to capturing model-specific learnability.
  4. Predictive & Diagnostic Modeling: A lightweight gradient-boosting model (LightGBM) is trained on these meta-features to predict the final fine-tuning performance. Crucially, the framework also uses SHAP (SHapley Additive exPlanations) to provide interpretable diagnostics. This means TUNEAHEAD doesn't just give a score; it explains why a particular run is predicted to succeed or fail by highlighting which meta-features were most influential.

Datasets

The primary dataset used for training and evaluation is Qwen2.5-7B-Instruct, with over 1,300 fine-tuning runs. The evaluation is performed on the MMLU (Massive Multitask Language Understanding) benchmark. To test generalization, the framework is also evaluated on:

  • TruthfulQA: For instruction fidelity and factual consistency.
  • SAMSum: For summarization tasks (using ROUGE-L scores).
  • Additional smaller-scale meta-datasets were constructed using Llama-3-8B-Instruct and Qwen2-0.5B to assess cross-model generalization.

Key Insights and Ideas

  • The Synergy of Static and Dynamic Features: The paper strongly demonstrates that neither static dataset properties alone nor dynamic probe signals alone are sufficient for accurate prediction. It's the combination of both that captures a more complete picture of potential fine-tuning success, as they highlight different failure modes (e.g., data quality vs. optimization instability).
  • Early Training Signals are Highly Predictive: The dynamic probe features, extracted from just a few hundred steps, are surprisingly good indicators of final performance. This suggests that many issues that lead to failure manifest early in the fine-tuning process.
  • Interpretability is Key for Actionability: Simply predicting a score isn't enough. The SHAP-based diagnostics are crucial because they tell practitioners why a run might fail, enabling targeted improvements to data or hyperparameters. This moves beyond prediction to actionable guidance.
  • Predicting Failure is Easier Than Predicting Success: The authors note that clear deficiencies often reliably indicate likely failure, making early rejection of bad runs more straightforward.

Key Results

  • High Accuracy: TUNEAHEAD achieves an RMSE of 1.47 percentage points on a held-out test set of 370 runs, significantly outperforming strong baselines like ProxyLM (RMSE 2.11) and Early-Stop Extrapolation (RMSE 7.43).
  • Tight Tolerances: 95.1% of TUNEAHEAD's predictions fall within ±3 percentage points of the true score, demonstrating excellent calibration for practical go/no-go decisions.
  • Compute Savings: In an illustrative example, TUNEAHEAD reduced compute time by 37.4% by screening out failed runs.
  • Generalization: The framework shows promising generalization across different LLM architectures (Llama-3 vs. Qwen) and scales, as well as across different tasks (MMLU, TruthfulQA, Summarization).
  • Feature Importance: Loss stability and landscape flatness (dynamic features) and approximate duplicates and embedding outlier ratio (static features) were identified as the most influential predictors.

Limitations and Future Work

  • Model Specificity: The current TUNEAHEAD predictor is not universal across all model families, scales, or task distributions. While the meta-features are designed to be general, a new base model might require some calibration or a small target-specific meta-dataset.
  • Hyperparameter Space: Experiments focused on LoRA fine-tuning with a modest hyperparameter space. Generalization to other PEFT methods (like QLoRA), full-parameter fine-tuning, or wider hyperparameter sweeps needs further validation.
  • Probe Budget: The 100-step probe is an empirical default. Optimal probe length might vary for different models or tasks.
  • Compute Savings Interpretation: The reported compute savings are dependent on the deployment policy (e.g., chosen threshold) and the candidate pool composition.

Future work includes:

  • Lightweight Transfer and Calibration: Developing methods to adapt TUNEAHEAD to new models with fewer calibration runs.
  • Adaptive Probing: Allowing the probe to stop early when a decision is confident or continue longer if signals are unstable.
  • Closing the Loop: Integrating prediction, diagnosis, and intervention to automate data selection and refinement.

Summary updated

BibTeX
@inproceedings{luo2026tuneahead,
  author = {Yuxiang Luo and Haonan Long and Chen Wang and Qiqi Duan and Xiaotian Lin and Yanwei Xu and Yuyu Luo and Weikai Yang and Nan Tang},
  title = {{TuneAhead: Predicting Fine-tuning Performance Before Full Training Begins}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=JBFB2pUOCA},
}
Figure