LensLLM: Unveiling Fine-Tuning Dynamics for LLM Selection

Abstract

The proliferation of open-sourced Large Language Models (LLMs) and diverse downstream tasks necessitates efficient model selection, given the impracticality of fine-tuning all candidates due to computational constraints. Despite the recent advances in LLM selection, a fundamental research question largely remains nascent: how can we model the dynamic behaviors of LLMs during fine-tuning, thereby enhancing our understanding of their generalization performance across diverse downstream tasks? In this work, we propose a novel theoretical framework that provides a proper lens to assess the generalization capabilities of LLMs, thereby enabling accurate and efficient LLM selection for downstream applications. In particular, we first derive a PAC-Bayesian Generalization Bound that unveils fine-tuning dynamics of LLMs and then introduce LensLLM, a Neural Tangent Kernel (NTK)-based Rectified Scaling Model that enables accurate performance predictions across diverse tasks while maintaining computational efficiency. Extensive empirical results on 3 large-scale benchmarks demonstrate that our model achieves up to 91.1% accuracy and reduces up to 88.5% computational cost in LLM selection, outperforming 5 state-of-the-art methods. We open-source our proposed LensLLM model and corresponding results at LensLLM.io.

Cite

Text

Zeng et al. "LensLLM: Unveiling Fine-Tuning Dynamics for LLM Selection." Proceedings of the 42nd International Conference on Machine Learning, 2025.

Markdown

[Zeng et al. "LensLLM: Unveiling Fine-Tuning Dynamics for LLM Selection." Proceedings of the 42nd International Conference on Machine Learning, 2025.](https://mlanthology.org/icml/2025/zeng2025icml-lensllm/)

BibTeX

@inproceedings{zeng2025icml-lensllm,
  title     = {{LensLLM: Unveiling Fine-Tuning Dynamics for LLM Selection}},
  author    = {Zeng, Xinyue and Wang, Haohui and Lin, Junhong and Wu, Jun and Cody, Tyler and Zhou, Dawei},
  booktitle = {Proceedings of the 42nd International Conference on Machine Learning},
  year      = {2025},
  pages     = {74175-74196},
  volume    = {267},
  url       = {https://mlanthology.org/icml/2025/zeng2025icml-lensllm/}
}