Manuscript Offprint

arXiv:2611.12791

Large Language Models as a Universal Searcher for Open-World Automated Machine Learning

Yuxuan Hu, Jihao Liu, Weikang Shi, Xijie Huang, Linda Wei, Mingjie Zhan, Aojun Zhou, Rui Liu, Hongsheng Li

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Yuxuan Hu, Jihao Liu, Weikang Shi, Xijie Huang, Linda Wei, Mingjie Zhan, Aojun Zhou, Rui Liu, and Hongsheng Li, Member, IEEE

Abstract—Developing effective machine learning models requires complex manual tuning, while current Automated Machine Learning (AutoML) frameworks remain domain-specific and isolate model architecture, training hyperparameter, and data ratio optimization. Here, we bridge this gap by proposing a universal, large language model (LLM)-based AutoML framework that jointly optimizes these configurations for the first time without the need for task-specific fine-tuning. We propose NCode, a unified numerical encoding scheme that translates diverse AutoML design choices into universal discrete sequences and effectively reframes the optimization process as a unified ranking task. Trained solely on optimization trajectories derived from a limited, single-domain vision task, the proposed LLM-based searcher demonstrates impressive cross-task, cross-modality and joint search-space optimization generalizability, achieving state-of-the-art performance across image classification, image segmentation, speaker verification and text-to-image benchmarks. Crucially, it exhibits superior scalability in the large-scale training and joint optimization of a billion-parameter Diffusion Transformer, requiring 896 GPU-days and attaining a state-of-the-art GenEval score of 0.91. By leveraging reinforcement learning to instill Chain-of-Thought reasoning, we provide a systematic way to interpret the LLM-based searcher's internal decision-making mechanisms, revealing its optimization strategy shifted from the early-stage diversity-driven exploration to the late-stage anchor exploitation. Our proposed framework provides a scalable, generalizable, and interpretable pathway toward general-purpose open-world machine learning optimization.

Index Terms—Automated machine learning, open-world generalization, joint optimization, large language models.

1 INTRODUCTION

This work has been submitted to the IEEE for possible publication. Copyright may be transferred without notice, after which this version may no longer be accessible.

This work is partially supported by the National Key R&D Program of China (No. 2025ZD0122902), in part by NSFC-RGC Project N_CUHK498/24, in part by Guangdong Basic and Applied Basic Research Foundation (No. 2023B1515130008, XW), in part by Shenzhen Loop Area Institute, and in part by the Centre for Perceptual and Interactive Intelligence (CPII) Ltd under the Innovation and Technology Commission (ITC)'s InnoHK.

Yuxuan Hu, Jihao Liu, Weikang Shi, Xijie Huang, Linda Wei, Mingjie Zhan, Aojun Zhou, and Rui Liu are with the Multimedia Laboratory (CUHK MMLab), The Chinese University of Hong Kong, Shatin, Hong Kong (e-mail: aojunzhou@gmail.com; ruiliu011@gmail.com).

Hongsheng Li is with the Multimedia Laboratory (CUHK MMLab), The Chinese University of Hong Kong, Shatin, Hong Kong, and also with the Shenzhen Loop Area Institute, Shenzhen, China (e-mail: hsli@ee.cuhk.edu.hk).

Recent advancements in Machine Learning (ML) have revolutionized diverse domains, including computer vision, natural language processing, and audio analysis. Despite the progress, developing effective ML models remains a complex endeavor, often requiring extensive human experience in designing network architectures, tuning hyperparameters, and organizing training data. Consequently, Automated Machine Learning (AutoML) has emerged as a pivotal solution, aiming to automate such design choices of ML pipelines with minimal human intervention.

While intensive explorations in AutoML have been made, particularly in Neural Architecture Search (NAS) for architecture design [1, 2, 3] and Hyperparameter Optimization (HPO) for determining training hyperparameters [4], the field still lacks a general-purpose AutoML framework. This gap has become increasingly challenging in the era of foundation models. Currently, the realization of such an open-domain system is impeded by three fundamental obstacles:

  • Open-world problem generalization. Existing AutoML approaches are typically optimized for specific search spaces, lacking the flexibility to generalize across diverse tasks, datasets and architectures. For instance, the popular gradient-based NAS method DARTS [3] achieves 97.24% accuracy on the CIFAR-10 test set within its original search space, yet suffers a severe performance collapse to 39.77% when evaluated on the widely used NAS-Bench-201 benchmark [5]. Even though both settings share identical dataset and optimizers, this sharp decline underscores the inherent fragility of current NAS and AutoML techniques when subjected to structural shifts in the search space. Consequently, this limitation hinders the application of AutoML methods in open-world problems that data distributions, architecture search spaces and task definitions are novel or unseen.

  • Intricate interdependence of model optimization choices. The optimal performance of a model is the result of the complex interplay between model architectures, training hyperparameters, and data ratios, etc. Such highly non-linear interactions are difficult to opti-

mize in isolation. Existing AutoML methods fail to capture the synergies and often lead to sub-optimal local minima when components are optimized separately.

  • The prohibitive cost of AutoML training data acquisition. Creating AutoML training datasets is computationally expensive and time-consuming, as it involves the repetitive process of model training and performance evaluation for every new task. The high cost hinders the development and scalability of learning-based AutoML methods.

To overcome these barriers, the field is witnessing a paradigm shift from specialized optimization algorithms toward more generalizable approaches. In particular, Large Language Models (LLMs) were leveraged to optimize AutoML problems to take advantage of their strong reasoning capabilities [6, 7]. However, they remain heavily dependent on task-specific training, fine-tuning, and manual prompt engineering. As a result, there has been little deployment of AutoML frameworks that can navigate open-world problems spanning across multiple architectures, tasks, and modalities.

In this work, we introduce an open-world LLM-based AutoML framework that is capable of jointly optimizing the complex combination of model architectures, training hyperparameters, data ratios for different tasks without task-specific fine-tuning for the first time. To enable the optimization over the multiple intrinsically diverse search spaces, we introduce NCode, an encoding scheme that maps heterogeneous design choices to their respective indices, representing them as unified numerical sequences (Fig. 1b,c). By converting diverse AutoML tasks into a universal discrete optimization problem, NCode allows LLMs to easily generalize to unseen open-world domains without domain-specific fine-tuning (Fig. 1a). To train the LLM-based searcher, we curate optimization trajectories from the NAS-Bench-301 dataset [8], which provides model architectures and their corresponding image classification performances on the CIFAR-10 dataset. We model the model arch instances as a densely connected Directed Acyclic Graph (DAG) and apply stochastic edge pruning to generate diverse, localized architecture search spaces for rich trajectory formulation. Furthermore, for the LLM-based searcher's outputs, we reframe the discrete NCode optimization as a ranking problem, where the LLM identifies superior candidates from a candidate pool rather than directly predicting their NCodes, a setting demonstrated to be significantly simpler to learn than directly generating full NCodes. Consequently, despite being trained exclusively on single-domain vision data, our LLM searcher generalizes effectively to cross-domain joint optimization tasks where data collection is typically cost-prohibitive.

A preliminary version of our system that focused only on model architecture search was presented in EMNLP2025 [9]. The current study unveils the unified LLM-based searcher's capabilities in significantly more complex, heterogeneous search spaces and mastering the synergy between model architectures, training hyperparameters, and data ratios across seven domains, four tasks and three modalities (vision, text, audio) without fine-tuning. More importantly, our LLM-based searcher is trained to explain its optimization rationales by learning explainable Chain-of-Thought (CoT)

via Group Relative Policy Optimization (GRPO) [10]. Our analysis revealed how the model navigates the solution space for optimization and offers critical insights. Extensive experiments provide compelling evidence and demonstrate that our framework achieves state-of-the-art performance across a diverse suite of open-world machine learning problems.

We highlight our major contributions as follows:

  1. Unified Problem Representation: We introduce a universal numerical encoding that maps model architectures, hyperparameters, and data ratios into a unified discrete space, allowing the AutoML framework to jointly optimize diverse design choices across distinct search spaces.

  2. Search Trajectory Curation: We introduce a pruning-based architecture sampling strategy to curate rich, diverse optimization trajectories, mitigating the prohibitive cost of AutoML data collection. By simultaneously reframing the LLM's objective from direct sequence generation to conditional ranking, we boost the searcher's capacity to generalize across complex optimization landscapes.

  3. Extensive Empirical Validation: By deploying our approach across real-world machine learning tasks in diverse scenarios, and achieving state-of-the-art (SOTA) performances, we demonstrate the framework's robust zero-shot generalizability.

  4. Interpretability via RL-driven Chain-of-Thought: To unveil the internal decision-making mechanism of the LLM-based searcher, we leverage Group Relative Policy Optimization (GRPO) to instill Chain-of-Thought (CoT) reasoning without requiring human annotation. This self-explaining capability provides critical insights into the model's learned optimization strategies, specifically revealing a dynamic shift from early-stage diversity-driven exploration to late-stage anchor exploitation, and highlights the inherent limitations of conventional discrete optimization methods in existing AutoML frameworks.

References (56)