arXiv:2610.06167cs.CVOct 2026

Manuscript Offprint

arXiv:2610.06167

Bayesian Optimization in Sequence-to-Architecture Latent Space for Zero-Shot NAS

Ondrej Tybl, Lukas Neumann

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

Abstract

Zero-shot Neural Architecture Search removes the prohibitive cost of traditional NAS, but its search process is typically based on the evolutionary algorithm (EA); lacking an explicit model of the objective, it often resorts to a near-random search through mutation. Bayesian Optimization offers a principled alternative by modeling the objective and aggregating information across iterations, but scales poorly to the high-dimensional, discrete, graph-structured spaces of modern NAS, restricting its use to only small networks. In this paper, we bring Bayesian Optimization to zero-shot NAS for large-scale architectures by learning a latent space via a Variational Autoencoder trained to reconstruct a novel prefix encoding of architectures and propose a proxy scalarization that combines several zero-shot proxies into a single Bayesian Optimization objective. After only 10,000 iterations of the proposed search algorithm (8 hours on a single GPU), our method found a network architecture which under the given model parameter count constraints achieves state-of-the-art results on three separate tasks – image classification, object detection and semantic segmentation.

1 Introduction

Zero-shot (training-free) Neural Architecture Search (NAS) methods have been recently gaining popularity, because they democratize NAS by removing the tremendous computational requirements associated with traditional NAS, and as such they allow to search for novel, more efficient and/or more accurate deep network architectures at a fraction of a cost and energy. The key component of every zero-shot NAS method is the search algorithm that determines which new candidate architectures should be evaluated, based on estimated performance of network architectures evaluated in previous steps, ideally steering the search towards more promising candidates as the algorithm progresses. The majority of zero-shot methods (Lee and Ham, 2024; Tybl and Neumann, 2025; Li et al., 2023) rely on the Evolutionary Algorithm (EA), because it can handle the large search space of modern deep network architectures. But EA has no explicit model of the objective and as such the results are often very close to a random search; often the only operation used to traverse the search space is the mutation operation, which essentially is just a random perturbation of the current state.

Bayesian Optimization (BO), on the other hand is a formal framework that explicitly builds a probabilistic model of the objective function and is therefore able to aggregate information obtained in previous steps to specifically guide the search towards more promising regions of the search space. Bayesian Optimization (BO) however scales poorly to high dimensions and discrete, structured spaces, which unfortunately is exactly the type of search space encountered in NAS methods, where the architectures are discrete graphs consisting of nodes, each of which has several hyper-parameters. This is why the application of Bayesian Optimization in zero-shot NAS Kandasamy et al. (2018); Ru et al. (2021); Shen et al. (2023); Camero et al. (2021) has so far been limited to only toy problems or small networks, simply because direct application to modern large-scale architectures with hundreds of nodes is computationally prohibitive.

In this paper, we present a novel method that allows to apply Bayesian Optimization (BO) to searching large-scale network architectures in zero-shot NAS, thus eliminating the computational burden of traditional NAS, as well as removing complexity constraints of naively applying BO to the high-dimensional space of large network architectures. We achieve this by introducing a novel latent space that can represent modern large-scale architectures including EfficientNet Tan and Le (2019) and Vision Transformer Dosovitskiy et al. (2020), by training a Variational Autoencoder (VAE) that learns to reconstruct network architectures expressed by prefix encoding that serializes each architecture block into a compact, bijective string over a vocabulary of primitive and compound operations. The resulting latent space provides a smooth, low-dimensional representation of large-scale heterogeneous architectures suitable as the search domain for Bayesian Optimization.

Additionally, we propose a new proxy scalarization method that allows us to combine several state-of-the-art zero-shot proxies into a single objective. The scalarization whitens and decorrelates the proxy dimensions and, unlike rank-based aggregations, can be evaluated pointwise for any architecture, which is a key prerequisite for modern gradient-free optimization. As a result, our method – unlike previous methods based on evolutionary algorithms – is able to learn and exploit the properties of the NAS search space during the search process.

Finally, we use our newly introduced latent space to run Bayesian Optimization, using the scalarized proxy of classification accuracy as the objective function, to search for new architectures. The best architecture as per the proxy value (found without training any of the candidate networks) is only then trained using the standard UniNAS training recipe Tybl and Neumann (2026) to obtain the actual accuracy in three different vision tasks (image classification, object detection/instance segmentation, semantic segmentation).

In summary, we make the following contributions:

  1. We introduce a novel latent space that can represent modern large-scale architectures including EfficientNet Tan and Le (2019) or Vision Transformer Dosovitskiy et al. (2020), but which at the same time can be used in modern optimization frameworks such as Bayesian Optimization (BO),

  2. we propose using prefix encoding as the sequential (string-like) representation of network architectures, which yields compact and a bijective mapping to the standard DAG representation,

  3. we propose proxy scalarization method that allows to combine several zero-shot proxies into a single continuous scalar score, so that modern zero-shot approaches can be incorporated into a standard Bayesian Optimization framework.

References (48)