English

LLMs as In-Context Meta-Learners for Model and Hyperparameter Selection

Machine Learning 2026-02-16 v3 Machine Learning

Abstract

Model and hyperparameter selection are critical but challenging in machine learning, typically requiring expert intuition or expensive automated search. We investigate whether large language models (LLMs) can act as in-context meta-learners for this task. By converting each dataset into interpretable metadata, we prompt an LLM to recommend both model families and hyperparameters. We study two prompting strategies: (1) a zero-shot mode relying solely on pretrained knowledge, and (2) a meta-informed mode augmented with examples of models and their performance on past tasks. Across synthetic and real-world benchmarks, we show that LLMs can exploit dataset metadata to recommend competitive models and hyperparameters without search, and that improvements from meta-informed prompting demonstrate their capacity for in-context meta-learning. These results highlight a promising new role for LLMs as lightweight, general-purpose assistants for model selection and hyperparameter optimization.

Keywords

Cite

@article{arxiv.2510.26510,
  title  = {LLMs as In-Context Meta-Learners for Model and Hyperparameter Selection},
  author = {Youssef Attia El Hili and Albert Thomas and Malik Tiomoko and Abdelhakim Benechehab and Corentin Léger and Corinne Ancourt and Balázs Kégl},
  journal= {arXiv preprint arXiv:2510.26510},
  year   = {2026}
}

Comments

27 pages, 6 figures

R2 v1 2026-07-01T07:13:52.621Z