Metaron's Blog

MEGO: Learning Mixture-of-Experts for General-Purpose Binary Optimization

本文总阅读量

1Introduction

Abstract

Discrete optimization is ubiquitous in science and engineering. The vast array of existing discrete optimization problems, coupled with the continuous emergence of new ones, necessitates off-the-shelf optimizers capable of generating high-quality solutions for a large variety of optimization problems. This article introduces MEGO, a novel general-purpose neural optimizer for binary optimization under the black-box setting, intended for broad applicability across diverse binary optimization problem classes with minimal problem-specific customization. MEGO comprises a mixture-of-experts trained without domain knowledge. When presented with a new problem instance to solve, it employs a routing policy to dynamically activate the most relevant expert models to generate high-quality solutions. The strong generalization capability of MEGO is demonstrated on six problem classes from different disciplines, including classic problems and real-world applications. Trained solely on classic problems, MEGO effectively generalizes to unseen and complex real-world problem classes, significantly outperforming widely-used general-purpose optimizers in both solution quality and efficiency. Furthermore, MEGO provides a computational approach for quantifying similarity between optimization problems and classifying them, which is fundamentally different from the conventional analysis-based problem classification.

Keywords: Discrete Optimization, Binary Optimization, Neural Optimizer, Learn to Optimize

2Introduction

Discrete optimization, an important branch of applied mathematics and computer science, focuses on solving optimization problems with discrete decision variables. This type of problems represents a foundational challenge that spans across scientific and engineering disciplines, such as in synthetic biology [1], urban planning [2], social network analysis [3],[4], camera imaging [5],[6], and compiler configuration [7]. Traditionally, these problems are addressed through a problem-specific approach, where the inherent structures of the specific problem class are analyzed, and tailored optimizers are designed to exploit these characteristics. For example, for the Influence Maximization Problem (IMP) on social network [3], the submodularity and monotonicity of the problem have been leveraged to achieve theoretically optimal approximation ratios. On the other hand, although such problem-specific approach can achieve excellent performance, it requires substantial domain expertise and human effort for each problem class [8]. The significant time and resources required to develop each specialized optimizer create a critical bottleneck. Consequently, this problem-specific approach struggles to keep pace with the vast and rapidly expanding landscape of optimization problems [9], particularly for optimization problems where domain knowledge is not yet available or is difficult to acquire [10].

An overview of MEGO. a-b, the training process of MEGO, where the experience sets gained from solving training problem instances are abstracted into a MoEs; each expert model M_j consists of an encoder, a decoder, and a latent score predictor. c-e, the three steps of employing MEGO to solve a new problem instance I_{new}: 1) the routing policy identifies relevant expert models based on the correlation coefficients between I_{new} and each M_j; 2) each relevant M_j is fine-tuned to establish a transformation from the solution space of I_j to that of I_{new}; 3) high-quality solutions to I_j are mapped into the solution space of I_{new}.
Figure 1. An overview of MEGO. a-b, the training process of MEGO, where the experience sets gained from solving training problem instances are abstracted into a MoEs; each expert model \(M_j\) consists of an encoder, a decoder, and a latent score predictor. c-e, the three steps of employing MEGO to solve a new problem instance \(I_{new}\): 1) the routing policy identifies relevant expert models based on the correlation coefficients between \(I_{new}\) and each \(M_j\); 2) each relevant \(M_j\) is fine-tuned to establish a transformation from the solution space of \(I_j\) to that of \(I_{new}\); 3) high-quality solutions to \(I_j\) are mapped into the solution space of \(I_{new}\).

Given the above challenge, there is a pressing need for high-performing general-purpose optimizers that can serve as off-the-shelf tools for a large variety of optimization problemsWe focus on problems that arise in practical contexts rather than completely arbitrary random binary functions. Even when treated as black-box problems, such practical problems often exhibit non-arbitrary regularities in their solution-quality landscapes, for example in variable interactions or the relative importance of variables [11]-[13]. Such regularities may make the transfer of solving experience across instances, and potentially across problem classes, more plausible. Detailed discussions on the non-arbitrary regularities can be found in the supplementary material. Specifically, such optimizers should deliver high-quality (if not optimal) solutions across diverse problem classes without requiring problem-specific adjustments. Actually, the pursuit of general-purpose optimizers dates back several decades, gradually giving rise to optimizers including Evolutionary Algorithms (EAs) [14], Simulated Annealing (SA) [15], Estimation of Distribution Algorithms (EDAs) [16], and Bayesian optimization (BO) [17]. However, the performance of these optimizers often falls short of satisfactory levels without problem-specific customization, such as meticulous parameter tuning [18] or the selection of specialized search operators and kernel [19]. This dependency on expert-driven, often time-consuming customization presents a significant barrier to their practical utility. Consequently, a critical gap persists in the availability of high-performing, general-purpose optimizers that can be readily deployed.

This article aims to bridge the above gap in the realm of discrete optimization with binary decision variables (hereafter referred to as binary optimization). Such problems are widespread in practice, e.g., appearing in machine learning [20] and certain graph problems [21]. In this work, we study these problems under the black-box setting, where the optimizer accesses a problem instance only through function evaluations. This setting fits naturally our goal of minimizing problem-specific customization, since it avoids reliance on handcrafted structures, explicit formulations, or other domain knowledge. Moreover, the black-box setting is also practically relevant, since in many real-world problems [7] such information is unavailable or difficult to exploit effectively. Accordingly, our use of "general-purpose" refers to broad applicability across diverse binary problem classes with minimal problem-specific customization, rather than a universal performance guarantee for all binary optimization problems. Specifically, we develop a novel general-purpose neural optimizer for binary optimization under this black-box setting through the learning-to-optimize (L2O) paradigm [22]. The core principle of L2O involves training optimizers to effectively handle unseen problem instances by drawing upon experiences from solving training problem instances. A prominent approach within this paradigm is to train neural networks (called neural optimizers) to solve optimization problems. However, prior research in this area has predominantly relied on domain knowledge to train neural optimizers for particular problem classes [8],[23]-[27]. In contrast, this work introduces a domain-agnostic neural optimizer that is trained using only sampled solutions and their corresponding objective values.

The resulting neural optimizer, named Mixture-of-Experts as General-Purpose Optimizers (MEGO), can be viewed as a foundation model for binary optimization. Fig. 1 presents an overview of MEGO. At its core, MEGO comprises a collection of distinct neural networks, with each network acting as an "expert" model. The architecture is inspired by the classical concept of Mixture-of-Experts (MoEs) [28], which refers to a collaborative architecture that adaptively activates specific experts for a given input. Unlike many contemporary MoEs frameworks [29] where the router is typically a module jointly and end-to-end trained with the experts within a unified neural network, MEGO is designed as an ensemble of neural networks (expert models) governed by a dedicated routing policy. These expert models are trained on experiences (i.e., sampled solutions and their objective values) gathered from solving a set of training problem instances (Figs.1a-1b). When applied to new, unseen problem instances (Figs. 1c-1e), the routing policy automatically activates relevant expert(s) to generate high-quality solutions. The entire process, from training to application, operates without the need for domain knowledge or human intervention. This domain-agnostic design allows MEGO to effectively address diverse problem classes.

The strong generalization capability of MEGO across different problem classes is demonstrated through extensive experiments, highlighting two significant findings. First, to the best of our knowledge, MEGO represents the first neural optimizer trained on a specific set of binary optimization problem classes that successfully generalizes to entirely different and unseen binary optimization problem classes. We validate this across six problem classes from diverse disciplines, including three classic problem classes and three challenging problem classes arising from real-world applications. Experimental results in our testbed show that MEGO, trained solely on the three classic problem classes, consistently outperforms widely-used general-purpose optimizers such as GA [14], Hill Climbing with random restart (HC) [30], and BO [31] across all six problem classes in both solution quality and efficiency. Specifically, these competitors require at least 3.6 times the number of function evaluations (#FEs) to match MEGO's solution quality, with MEGO's advantage holding across the tested problem dimensions. Furthermore, when used as an initial solution generator, MEGO can significantly enhance the solution quality of existing general-purpose optimizers. Indeed, on certain problem classes, this enhancement enables a general-purpose optimizer to surpass the performance of specialized optimizers.

Second, MEGO introduces a new perspective on the relationships between binary optimization problems through its vector-based representation of problem instances. Such representation facilitates the measurement of similarity between problem instances, leading to an intriguing problem clustering (classification) that diverges from conventional, analysis-based classification. This data-driven perspective may offer new insights into the landscape of optimization problems.

The contributions of this article are summarized below.

  1. A novel general-purpose neural optimizer, MEGO, is proposed to address diverse binary optimization problem classes under the black-box setting.

  2. Extensive experiments demonstrate that MEGO effectively generalizes to unseen and complex real-world problem classes in our testbed, significantly outperforming widely-adopted general-purpose optimizers in both solution quality and efficiency. Moreover, as an initial solution generator, MEGO can also boost the performance of existing optimizers.

  3. MEGO provides a computational approach to classify optimization problems based on the vector-based representations, offering a new, data-driven perspective on the relationships between different problem classes.

The remainder of this article is organized as follows. Section 3 presents the preliminaries and reviews the related work. Section 4 details the architecture of MEGO, along with its training and application procedures. Experiments are presented in Section 5. Section 6 concludes the article with discussions.

4MoEs as General-Purpose Optimizers (MEGO)

This section details our proposed neural optimizer, MEGO. We first introduce its architecture, and then describe how to train MEGO and apply it to solve new problem instances. Finally, different modes in which MEGO can be utilized are also discussed.

4.1Model Architecture and Training Procedure

We aim to learn a general-purpose neural optimizer for a wide range of binary optimization problem classes. To train such an optimizer, a training set \(T\) is constructed by collecting experiences from solving \(n\) training problem instances \(I_j\left(1\leq j\leq n\right)\) from different problem classes. The experience for each \(I_j\) is a dataset \(E_j=\left\{\left(\mathbf{x}_i,y_i \right)\right\}_{i=1}\), where \(\mathbf{x}_i\in\left\{0,1\right\}^{d_j}\) (\(d_j\) is the problem dimension of \(I_j\)) is a sampled solution and \(y_i\in\mathbb{R}\) is its objective value. Note that \(E_j\) does not contain any explicit knowledge of \(I_j\), such as the formulation of its objective function. Based on the training set \(T=\left\{E_j|1\leq j\leq n\right\}\), the goal is to train an optimizer that generalizes well to an unseen test set \(T^*\) comprising problem instances from diverse problem classes and with dimensions that may differ from those in \(T\).

Our neural optimizer, MEGO, is a MoEs (an ensemble of expert models) where each expert \(M_j\) is trained on an experience set \(E_j\). As a whole, the MoEs collectively captures diverse structural patterns in the training data, adhering to the categorical modularization paradigm [60] where different expert models specialize in solving different problems. To obtain \(M_j\), classical machine learning methods can be used here, e.g., training a neural network based on \(E_j\) to model \(I_j\) 's unknown objective function \(F:\left\{0,1\right\}^{d_j}\rightarrow \mathbb{R}\). However, there are two main limitations to this approach. First, small changes in the discrete input, e.g., flipping several bits, can lead to substantial changes in the objective value, potentially causing \(M_j\) to overfit to local data points and hindering its ability to capture overall structural characteristics. Second, this approach poses challenges when adapting \(M_j\) to new problem instances, as it is difficult to balance leveraging prior experience with incorporating new information.

Input: Training set \(T=\{E_{1},E_{2},\cdots,E_{n}\}\)
Output:Expert models \(M_{1},M_{2},\cdots,M_{n}\)
1for \(j\leftarrow 1,2,\cdots,n\) do
2\(y_{max}\leftarrow\max\{y_{i}|(\mathbf{x}_{i},y_{i})\in E_{j}\}\);
3\(y_{\min}\leftarrow\min\{y_{i}|(\mathbf{x}_{i},y_{i})\in E_{j}\}\);
4 Create normalized dataset \(E^{\prime}_{j}=\{(\mathbf{x}_{i},\frac{y_{i}-y_{min}}{y_{max}-y_{min}})|(\mathbf{x}_{i},y_{i})\in E_{j}\}\);
5 Initialize parameters \(\theta,\phi,\omega\) for \(M_{j}\)’s encoder, decoder, and score predictor, respectively;
6 Train \(\theta,\phi,\omega\) on \(E^{\prime}_{j}\) using stochastic gradient descent to minimize the loss in Eq. (1);
8 end for
return \(M_{1},M_{2},\cdots,M_{n}\)
Algorithm 1 Training Procedure of MEGO

To address these limitations, we propose a decoupled architecture for the expert model based on variational autoencoder (VAE) [61]. The VAE maps a discrete solution into a compact, continuous latent representation. By predicting objective values from within this regularized latent space, the model is compelled to learn the problem instance's global structural patterns, thereby mitigating overfitting to local patterns in the discrete domain. Furthermore, the model's encoder-decoder architecture facilitates fine-tuning on new instances to solve them, as detailed in Sec. 4.2. The model's architecture and training procedure are illustrated in Figs. 1a-1b, and are detailed below.

Specifically, each expert model \(M_j\) consists of an encoder \(f_\theta\), a decoder \(g_\phi\), and a latent score predictor \(h_\omega\), where \(\theta\), \(\phi\), and \(\omega\) are trainable parameters. The encoder-decoder is implemented as a VAE that explicitly regularizes the latent space to be smooth and compact. Given an input solution \(\mathbf{x}_i\in\left\{0,1\right\}^{d_j}\), the encoder \(f_{\theta}\) predicts means \(\boldsymbol{\mu}\in\mathbb{R}^{d_z}\) and standard deviations \(\boldsymbol{\sigma}\in\mathbb{R}^{d_z}\) of a \(d_z\) -dimensional multivariate Gaussian distribution \(\mathcal{N}\left(\boldsymbol{\mu},\boldsymbol{\sigma}^2\boldsymbol{I}\right)\), from which a vector \(\boldsymbol{z} \in \mathbb{R}^{d_z}\) is sampled. Based on \(\boldsymbol{z}\), The decoder \(g_\phi\left(\mathbf{z}\right)=\mathbf{x}_i^\prime\) reconstructs the input, while the score predictor \(h_\omega\left(\mathbf{z}\right)=y_i^\prime\) estimates the objective value. Conceptually, \(M_j\) is a VAE augmented with a predictor \(h_\omega\) that introduces semantic meaning (i.e., the supervision signal from the objective values) into the latent space. Once well trained, this latent space becomes a smooth and compact transformation of \(I_j\) 's original discrete solution space that also aligns well with its objective function.

Input: Training set \(T=\{E_{1},E_{2},\cdots,E_{n}\}\), expert models \(M_{1},M_{2},\cdots,M_{n}\), new problem instance \(I_{new}\).
Output:High quality solution set \(X\) for \(I_{new}\).
1\(\left\{\left(\hat{\mathbf{x}}_{i},\hat{y}_{i}\right)\right\}^{s}_{i=1}\leftarrow\) Randomly sample \(s\) solutions and evaluating them on the objective function of \(I_{new}\);
2\(X\leftarrow\varnothing\);
3for \(j\leftarrow 1,2,\cdots,n\) do
4\(\left\{\hat{y}^{\prime}_{i}\right\}_{i=1}^{s}\leftarrow\) Predict the scores of \(\left\{\hat{\mathbf{x}}^{\prime}_{i}\right\}_{i=1}^{s}\) with \(M_{j}\);
5\(\left\{\hat{\pi}_{i}\right\}^{s}_{i=1},\left\{\hat{\pi}_{i}^{\prime}\right\}^{s}_{i=1}\) \(\leftarrow\) Sort \(\left\{\hat{y}_{i}\right\}^{s}_{i=1}\) and \(\left\{\hat{y}_{i}^{\prime}\right\}^{s}_{i=1}\) respectively to obtain the rank sequences;
6\(\rho_{1}\leftarrow\)\(\texttt{Pearson}\left(\left\{\hat{y}^{\prime}_{i}\right\}_{i=1}^{s},\left\{\hat{y}_{i}\right\}_{i=1}^{s}\right)\);
7\(\rho_{2}\leftarrow\)\(\texttt{Spearman}\left(\left\{\hat{\pi}_{i}^{\prime}\right\}^{s}_{i=1},\left\{\hat{\pi}_{i}\right\}^{s}_{i=1}\right)\);
8if \(\rho_{1}>0\wedge\rho_{2}>0\) then
9\(\left\{\mathbf{x}_{i},y_{i}\right\}_{i=1}^{4s}\leftarrow\) Randomly sample \(4s\) solutions and objective values from \(E_{j}\);
10\(\left\{R_{1}^{i}\right\}_{i=1}^{m_{1}}\leftarrow\) Partition \(\left\{\hat{\mathbf{x}}^{\prime}_{i}\right\}_{i=1}^{s}\) into \(m_{1}\) disjoint subsets by y-values and sort them, where the y-values within the same subset are the same.;
11\(\left\{R_{2}^{i}\right\}_{i=1}^{m_{2}}\leftarrow\) Partition \(\left\{\mathbf{x}_{i}\right\}_{i=1}^{s}\) into \(m_{2}\) disjoint subsets by y-values and sort them, where the y-values within the same subset are the same.;
12\(m_{min}\leftarrow\min\left(m_{1},m_{2}\right)\);
13\(R\leftarrow\cup_{i=1}^{m_{min}}R_{1}^{i}\times R_{2}^{i}\), where“\(\times\)” denotes Cartesian product;
14 Freeze the parameters \(\theta,\omega\) of \(M_{j}\) and optimize \(\phi\) to minimize the loss in Eq. (2);
15\(\left\{\bar{\mathbf{x}}_{i}\right\}^{k}_{i=1}\leftarrow\) Randomly sample \(p\) solutions, predict their scores with \(M_{j}\), and retain the top-\(k\) solutions;
16\(\left\{\bar{\mathbf{x}}^{\prime}_{i}\right\}_{i=1}^{k}\leftarrow\) Apply the encoder-decoder of \(M_{j}\) to \(\left\{\bar{\mathbf{x}}_{i}\right\}^{k}_{i=1}\);
17\(X\leftarrow X\cup\left\{\bar{\mathbf{x}}^{\prime}_{i}\right\}_{i=1}^{k}\);
19 end if
21 end for
22\(X\leftarrow\) Evaluate all solutions in \(X\) on the objective function of \(I_{new}\) and retain the top-\(k\) solutions;
return X
Algorithm 2 Application Procedure of MEGO

The training procedure of MEGO is outlined in Alg. 1. The encoder \(f_\theta\), decoder \(g_\phi\), and score predictor \(h_\omega\) are all neural networks and are jointly trained using normalized samples in \(E_j\) (lines 2-4 in Alg.1). The overall training objective of \(M_j\) is to minimize a composite loss function:

\[\min_{\theta,\phi,\omega}\frac{1}{\left\vert E_j\right\vert}\sum_{\left(\mathbf{x}_i,y_i\right)\in E_j}{ \begin{aligned}[t] & \left\Vert\mathbf{x}_i-\mathbf{x}_i^\prime\right\Vert^2+\lambda\left\Vert y_i-y_i^\prime\right\Vert^2 \\ & + \gamma\mathbb{D}_{\textrm{KL}}{\left(\mathcal{N}\left(\boldsymbol{\mu},\boldsymbol{\sigma^2I}\right)\Vert\mathcal{N}\left(\boldsymbol{0},\boldsymbol{I}\right)\right)} \end{aligned}, }\](1)

where \(\boldsymbol{\mu},\boldsymbol{\sigma}=f_\theta\left(\mathbf{x}_i\right)\), \(\mathbf{z}\sim\mathcal{N}\left(\boldsymbol{\mu},\boldsymbol{\sigma^2I}\right)\) , \(\mathbf{x}_i^\prime=g_\phi\left(\mathbf{z}\right)\), and \(y^\prime=h_{\omega}\left(\mathbf{z}\right)\). Overall, Eq. (1) consists of three parts: 1) a reconstruction loss measured by square error between \(\mathbf{x}_i\) and \(\mathbf{x}_i^\prime\), encouraging the VAE to capture the essential information of the discrete input; 2) a score prediction loss measured by square error between \(y_i\) and \(y_i^\prime\), encouraging the score predictor to be accurate; and 3) a regularization loss measured by the Kullback-Leibler (KL) divergence between the learned probability distribution \(\mathcal{N}\left(\boldsymbol{\mu},\boldsymbol{\sigma^2I}\right)\) over the latent space and a predefined prior distribution (the standard normal distribution \(\mathcal{N}\left(\boldsymbol{0},\boldsymbol{I}\right)\)), which promotes a smooth and compact latent space. Here, \(\lambda\) and \(\gamma\) are two weighting hyper-parameters.

4.2Employing MEGO to Solve a New Problem Instance

When presented with a new problem instance \(I_{new}\), MEGO follows a three-step procedure: 1) identifying relevant experts, 2) fine-tuning them, and 3) generating solutions. This select-adapt-generate process is designed to efficiently utilize knowledge from previously solved training problem instances for \(I_{new}\), requiring only a small budget of function evaluations (#FEs) on \(I_{new}\). The application procedure of MEGO is shown in Figs. 1c-1e, with the pseudo-code outlined in Alg. 2. For a concrete illustration, Fig. 2 also details these steps as MEGO solves a test instance of the compiler argument optimization problem from our experiments.

4.2.1Relevant Expert Identification

This step aims to identify experts whose learned structural patterns correlate strongly with \(I_{new}\), ensuring that only the most suitable knowledge is utilized. It is governed by MEGO's routing policy (Fig 1c), a rule-based mechanism that quantifies the correlation between \(M_j\) and \(I_{new}\), measured by the alignment between the objective values of the sampled solutions on \(I_{new}\) and the objective values predicted by \(M_j\). Specifically, a small set of \(s\) solutions, \(\left\{\left(\hat{\mathbf{x}}_i, \hat{y}_i\right)\right\}^s_{i=1}\), is obtained by sampling uniformly at random and evaluating on the objective function of \(I_{new}\) (Fig. 2a and line 1 in Alg. 2). Each expert model \(M_j\) is then applied to \(\left\{\hat{\mathbf{x}}_i\right\}^s_{i=1}\) to predict their objective values. The results are denoted as \(\left\{\left(\hat{\mathbf{x}}_i, \hat{y}_i^\prime\right)\right\}^s_{i=1}\), where \(\hat{y}_i^\prime=h_\omega\left(f_\theta\left(\hat{\mathbf{x}}_i\right) \right)\) is the predicted score. If the dimension of \(I_{new}\) is smaller than an expert's input dimension, the sampled target-instance solutions are padded with zeros during relevant expert identification; if it is larger, truncation is used instead. These two sets of results, \(\left\{\left(\hat{\mathbf{x}}_i, \hat{y}_i\right)\right\}^s_{i=1}\) and \(\left\{\left(\hat{\mathbf{x}}_i, \hat{y}_i^\prime\right)\right\}^s_{i=1}\), are then sorted separately based on their respective \(y\) -values to obtain their corresponding rank sequences, \(\left\{\hat{\pi}_i\right\}^s_{i=1}\) and \(\left\{\hat{\pi}_i^\prime\right\}^s_{i=1}\) (Fig. 2b and lines 4-5 in Alg. 2).

To measure the correlation, two coefficients \(\rho_1\) and \(\rho_2\) are calculated (Fig. 2c and lines 6-7 in Alg. 2). An expert \(M_j\) is considered relevant to \(I_{new}\) if \(\rho_1>0\) and \(\rho_2>0\):

  • \(\rho_1\): the Pearson correlation between the actual and predicted objective values, i.e., \(\left\{\hat{y}_i\right\}^s_{i=1}\) and \(\left\{\hat{y}_i^\prime\right\}^s_{i=1}\). This captures the linear relationship between the scores.

  • \(\rho_2\): the Spearman's rank coefficient between the ranks of actual and predicted values, i.e., \(\left\{\hat{\pi}_i\right\}^s_{i=1}\) and \(\left\{\hat{\pi}_i^\prime\right\}^s_{i=1}\). This measures the ordinal relationship, assessing whether the expert can correctly rank the solutions by quality.

4.2.2Expert Fine-Tuning

All relevant models are then efficiently adapted to \(I_{new}\). For each relevant model \(M_j\), only its decoder \(g_\phi\) is fine-tuned while the other parts (encoder and latent score predictor) are kept fixed (Fig. 1d), allowing the model to incorporate new information while preserving the learned knowledge. The goal of fine-tuning is to establish a transformation that aligns the solution spaces of \(I_j\) and \(I_{new}\) (Figs. 2d-2e). This is achieved by training the decoder \(g_{\phi}\) on a specially constructed dataset (lines 9-14 in Alg. 2), \(\left\{\left(\mathbf{x}_i,\hat{\mathbf{x}}_i\right)\right\}_{i=1}\). This dataset pairs solutions from the expert's original experience set, \(\mathbf{x}_i \in E_j\), with the newly sampled solutions, \(\hat{\mathbf{x}}_i\), from \(I_{new}\), enforcing ordinal consistency (i.e., better solutions are mapped to better solutions).

 Illustrations of employing MEGO to solve a test instance I_{new} that belongs to the compiler argument optimization problem class. a, s randomly sampled d-dimensional (d is the problem dimension of I_{new}) solutions and their objective values evaluated on the objective function of I_{new}. b, each expert model predicts the scores of these solutions. c, based on the predictions, two correlation coefficients are calculated, and an expert model is considered relevant when both coefficients are larger than 0; M_3 is one relevant model. d, before fine-tuning M_3, for the input solution \mathbf{x}_i of M_3 and its output solution \mathbf{x}_i^\prime, there is almost no correlation between the objective value of \mathbf{x}_i on I_3 and the objective value of \mathbf{x}_i^\prime on I_{new} (here we divide the objective values into 10 levels for visualization). e, after fine-tuning M_3, the objective value of \mathbf{x}_i on I_3 and the objective value of \mathbf{x}_i^\prime on I_{new} are largely aligned, indicating that high-quality solutions of I_3 can be mapped through M_3 to generate high-quality solutions for I_{new}.
Figure 2. Illustrations of employing MEGO to solve a test instance \(I_{new}\) that belongs to the compiler argument optimization problem class. a, s randomly sampled \(d\) -dimensional (\(d\) is the problem dimension of \(I_{new}\)) solutions and their objective values evaluated on the objective function of \(I_{new}\). b, each expert model predicts the scores of these solutions. c, based on the predictions, two correlation coefficients are calculated, and an expert model is considered relevant when both coefficients are larger than 0; \(M_3\) is one relevant model. d, before fine-tuning \(M_3\), for the input solution \(\mathbf{x}_i\) of \(M_3\) and its output solution \(\mathbf{x}_i^\prime\), there is almost no correlation between the objective value of \(\mathbf{x}_i\) on \(I_3\) and the objective value of \(\mathbf{x}_i^\prime\) on \(I_{new}\) (here we divide the objective values into 10 levels for visualization). e, after fine-tuning \(M_3\), the objective value of \(\mathbf{x}_i\) on \(I_3\) and the objective value of \(\mathbf{x}_i^\prime\) on \(I_{new}\) are largely aligned, indicating that high-quality solutions of \(I_3\) can be mapped through \(M_3\) to generate high-quality solutions for \(I_{new}\).

Specifically, to construct such a mapping dataset, we first sort the solutions sampled from \(I_{new}\) according to the objective values, denoted as \(R_1\). Then we sample \(4s\) solutions from the training set \(E_j\) of \(M_j\) and also sort them, denoted as \(R_2\). Within each of \(R_1\) and \(R_2\), there may be solutions with the same objective value. Supposing there are \(m_1\) and \(m_2\) unique objective values within \(R_1\) and \(R_2\), respectively, we partition \(R_1\) and \(R_2\) into two sequences of \(m_1\) and \(m_2\) disjoint subsets and sort them, respectively, where the y-values within the same subset are the same: \(R_1=\cup_{i=1}^{m_1}R_1^i\) and \(R_2=\cup_{i=1}^{m_2}R_2^i\). Finally, from both sequences of subsets, we select the first \(m_{min}=\min\left\{m_1,m_2\right\}\) subsets, constructing \(m_{min}\) pairs \(\left\{\left(R_1^i, R_2^i\right)\right\}_{i=1}^{m_{min}}\). The Cartesian product of each pair will constitute the mapping dataset , where " \(\times\) " denotes Cartesian product. Given the mapping dataset \(R=\cup_{i=1}^{m_{min}}R_1^i\times R_2^i=\left\{\left(\mathbf{x}_i,\hat{\mathbf{x}}_i\right)\right\}_{i=1}\), the loss function for fine-tuning \({M_j}\) is:

\[\min_\phi\frac{1}{\left\vert R\right\vert}\sum_{\left(\mathbf{x}_i,\hat{\mathbf{x}}_i\right)\in R}\left\Vert \mathbf{x}_i^\prime-\hat{\mathbf{x}}_i\right\Vert^2,\](2)

where \(\boldsymbol{\mu},\boldsymbol{\sigma}=f_\theta\left(\mathbf{x}_i\right)\), \(\mathbf{z}\sim\mathcal{N}\left(\boldsymbol{\mu},\boldsymbol{\sigma^2I}\right)\), \(\mathbf{x}_i^\prime=g_\phi\left(\mathbf{z}\right)\), and \(\phi\) denotes the trainable parameters of the decoder \(g_\phi\). During fine-tuning, the final layer of the decoder will be adjusted to match the problem dimension of \(I_{new}\).

4.2.3Solution Generation

Each fine-tuned \(M_j\) is used to generate candidate solutions for \(I_{new}\) (Fig. 1e). Since the encoder-decoder of fine-tuned \(M_j\) serves as an effective transformation from the solution space of \(I_j\) to that of \(I_{new}\), high-quality solutions for \(I_j\) can be mapped to generate high-quality solutions for \(I_{new}\). Specifically, a large number of \(p\) solutions are randomly sampled in the input space of the encoder of \(M_j\), and their scores, as predicted by \(M_j\), are obtained.An alternative is to search directly in the latent space of a selected expert. An empirical comparison with latent-space search is provided in Section 5.6.1. These solutions are sorted based on the scores, and the top- \(k\) unique solutions, denoted as \(\left\{\bar{\mathbf{x}}_i\right\}_{i=1}^k\) (line 15 in Alg. 2), are retained, where \(k\) is a hyper-parameter. It is worth noting that these retained solutions are high-quality solutions in the source expert's solution space, rather than in the solution space of \(I_{new}\). The encoder-decoder of \(M_j\) is then applied to map \(\left\{\bar{\mathbf{x}}_i\right\}_{i=1}^k\) to a new set of solutions \(\left\{\bar{\mathbf{x}}^\prime_i\right\}_{i=1}^k\) tailored for \(I_{new}\) (line 16 in Alg. 2). Solutions generated from all fine-tuned models are aggregated, evaluated on \(I_{new}\), and the final top- \(k\) solutions are returned (line 20 in Alg. 2).

The total #FEs used by MEGO to generate solutions for \(I_{new}\) is \(s+k\times m\), where \(m\) is the number of relevant expert models. In the experiments, \(s\) and \(k\) are set to small values (\(s=64\) and \(k=4\)), while \(m\) can vary across different problem instances but is generally of moderate size. Typically, MEGO consumes around 100 FEs in total to solve a problem instance.

4.3Constraint Handling and Application Modes of MEGO

MEGO does not incorporate a built-in mechanism for handling constraints, as constraints in optimization problems are often highly problem-dependent. Integrating problem-specific constraint-handling mechanism into the architecture would compromise the model's generality, conflicting with our primary goal of creating a general-purpose optimizer. To address constrained problems, MEGO uses simple, external constraint-handling techniques that operate as a wrapper around it. During training phase, any sampled solution that violates constraints is first transformed into a feasible one by a repair heuristic. Similarly, when MEGO generates solutions for a constrained problem instance, the same technique is applied to ensure the final outputs are feasible. This straightforward approach allows MEGO to maintain its general-purpose characteristic while effectively solving constrained optimization problems.

MEGO can be employed in two modes:

  • As a standalone optimizer: MEGO can be used directly to find high-quality solutions for a new problem instance within a small budget of #FEs.

  • As an initial solution generator: The solutions produced by MEGO can provide a set of high-quality starting points to warm-start other optimizers. As demonstrated in the experiments, MEGO's output can be used to initialize the population of GA, provide effective starting points for HC, or serve as the initial design for BO, thereby boosting their performance.

5Experiments

The experiments mainly aim to answer the following key questions. First, as a general-purpose optimizer that targets at diverse binary problem classes, the most important aspect to evaluate is its generalization ability across problem classes. Specifically, can MEGO effectively solve problem instances from classes and dimensionalities that are not part of its training data (RQ1)? Second, for the problem classes that are included in the training set, how well does MEGO generalize to new instances within those same classes (RQ2)?

Beyond evaluating performance, the experiments also explore a novel application of MEGO. A computational approach to problem classification is developed based on vector representations of problem instances derived from MEGO's fine-tuning procedure (see Sec. 5.7). This approach allows for measuring the similarity between different problem instances, leading to a data-driven problem classification. This gives rise to the third key question: How does this learned classification compare with conventional, analysis-based problem classification, and what new relationships between problems might it reveal (RQ3)?

To address these questions, a comprehensive experimental setup is established across six problem classes from various disciplines. This includes three classic problems--the generalized One-Max Problem (OM) [62], the Knapsack Problem (KP) [33], and the Max-Cut Problem (MC) [63]--as well as three real-world applications: Compiler Arguments Optimization (CA) [7], Complementary Influence Maximization (CIM) on social networks [21], and Anchor Selection (AS) for pose estimation in camera imaging [5].

The training set is composed of 27 instances exclusively from the three classic problem classes (OM, KP, and MC). For each class, three instances are generated for each of the dimensions 30, 35, and 40. To generate the training data, each of these instances is associated with an experience set of 20,000 pairs of (solution, objective value), where solutions are sampled uniformly at random. In contrast, the test set comprises 72 instances from all six problem classes, including the three real-world applications (CA, CIM, and AS) unseen during training. The dimensions of the test instances are also higher--specifically 40, 60, 80, and 100--with three instances per dimension for each class. This experimental setup is motivated by a practical consideration: data for classic problems is often abundant or easy to generate, whereas data for real-world applications can be scarce and expensive to obtain. Therefore, demonstrating that an optimizer trained on accessible classic problems can generalize effectively to challenging real-world applications strongly supports its practical utility. Since the black-box setting is considered here, in the experiments, all the general-purpose optimizers interact with the problem instances solely through function evaluations. The Python code of MEGO, problem instances, baselines, and the scripts for repeating our experiments are open-sourced at https://github.com/MetaronWang/MEGO.

5.1Problem Classes, Instances, and Constraint Handling

During the six problem classes, KP, MC, CIM, and AS involve constraints. As noted in Sec. 4.3, MEGO does not handle constraints directly. Instead, external constraint-handling techniques are applied. Details on each problem class, including their objective functions, constraint-handling techniques, and problem instances, are provided below.

5.1.1One-Max Problem (OM)

The OM problem [62] is a fundamental binary optimization task, often serving as a benchmark for analyzing the theoretical performance of search-based optimizer. This work employs a generalized version of OM to create a diverse set of instances. Specifically, the objective of OM is to find a binary vector \(\mathbf{x}\) that minimizes the Hamming distance to a predefined reference vector \(\hat{\mathbf{x}}\). This is equivalent to maximizing the number of matching bits. The original OM problem is a special case where the reference vector consists of all ones.

For a \(d\) -dimensional OM instance with a reference vector \(\hat{\mathbf{x}} \in \{0,1\}^d\), the objective function is:

\[\text{maximize} \quad F\left(\mathbf{x}\right)=d-D_{hamming}\left(\mathbf{x},\hat{\mathbf{x}}\right).\](3)

In the experiments, OM instances are generated by constructing the refenrece vector \(\hat{\mathbf{x}}\). Each element of \(\hat{\mathbf{x}}\) is sampled independently from a uniform distribution over \(\{0, 1\}\).

5.1.2Knapsack Problem (KP)

The KP [33] is a classic combinatorial optimization problem. The goal is to select a subset of items to maximize their total value, subject to a total weight constraint. For a KP instance with \(d\) items, where each item \(i\) has a value \(v_i\) and a weight \(w_i\), a solution is represented by a binary vector \(\mathbf{x} \in \{0,1\}^d\). Here, \(x_i=1\) indicates that item \(i\) is selected. The objective function is:

\[\begin{aligned} \text{maximize} \quad & F(\mathbf{x}) = \sum_{i=1}^d v_i x_i \\ \text{subject to} \quad & \sum_{i=1}^d w_i x_i \leq w_{\text{max}} \end{aligned},\](4)

where \(w_{\text{max}}\) is the weight capacity.

In the experiments, KP instances are generated as follows. Both the value vector \(\mathbf{v}\) and the weight vector \(\mathbf{w}\) are populated with elements sampled uniformly from \([0, 1]\). To introduce a correlation between values and weights, the two vectors are sorted in tandem, ensuring that a higher value corresponds to a higher weight. The weight capacity \(w_{\text{max}}\) is then set as a fraction of the total possible weight, calculated as \(w_{\text{max}} = r \sum_{i=1}^d w_i\), where \(r\) is sampled uniformly from \([0.2, 0.8]\).

Given a KP instance, infeasible solutions are repaired using a simple heuristic. It processes the solution vector \(\mathbf{x}\) sequentially from index \(i=1\) to \(d\). For each selected item \(i\) (\(x_i=1\)), it checks if adding its weight would cause the solution to be infeasible. If so, the selection is reversed by setting \(x_i\) to 0. This check is performed for all items in order, guaranteeing that the repaired solution is feasible.

5.1.3Max-Cut Problem (MC)

The MC problem [63] aims to partition the vertices of a graph into two disjoint sets to maximize the number of edges connecting the two sets. This work focuses on a constrained variant where one of the two partitions is limited to a maximum size. Given an undirected graph with \(d\) vertices, represented by its adjacency matrix \(A \in \{0, 1\}^{d \times d}\), a partition can be defined by a binary vector \(\mathbf{x} \in \{0,1\}^d\), where \(x_i=1\) assigns vertex \(i\) to the first partition, and \(x_i=0\) assigns it to the second. The objective function is:

\[\begin{aligned} \text{maximize} \quad & F(\mathbf{x}) = \sum_{i=1}^d \sum_{j=i+1}^d A_{ij} |x_i - x_j| \\ \text{subject to} \quad & \sum_{i=1}^d x_i \leq b \end{aligned},\](5)

where \(b\) is the maximum allowed size of the first partition.

In the experiments, problem instances are generated by creating graph structure and the partition size limit. Undirected graphs with \(d\) vertices are generated using the NetworkX library [64]. The number of edges is set to \(r d^2\), where \(r\) is sampled uniformly from \([0.2, 0.4]\). To ensure a meaningful problem structure, only connected graphs are used; any disconnected graphs are discarded and then regenerated. The maximum size for the first partition, i.e., \(b\), is set to \(\lfloor r' d \rfloor\), with \(r'\) is sampled uniformly from \([0.2, 0.4]\).

A repair heuristic, analogous to the one for KP, handles solutions violating the constraint. The heuristic iterates through the solution vector \(\mathbf{x}\) sequentially from \(i=1\) to \(d\). If it encounters a selected vertex (\(x_i=1\)) after the size of the first partition has already reached the limit \(b\), the selection is reversed (\(x_i\) is set to 0).

5.1.4Compiler Arguments Optimization Problem (CA)

The CA problem [7] seeks to identify the optimal set of compiler arguments for a given source code. The goal is to minimize the size of the generated executable file. This is a practical black-box optimization problem, as the objective function involves an actual compilation process. Given a source code file \(G\) and a set of \(d\) available compiler arguments, a solution \(\mathbf{x} \in \{0, 1\}^d\) represents a compiler configuration where \(x_i=1\) enables the \(i\) -th argument. The objective function is:

\[\text{minimize} \quad F(\mathbf{x}) = \textrm{Executable\_Size}(G, \mathbf{x}).\](6)

In the experiments, CA instances are generated using source files randomly selected from the cbench and polybench-cpu benchmarks [65]. The GCC compiler is used, and \(d\) arguments are randomly selected from its 186 available arguments to generate a \(d\) -dimensional CA instance.

5.1.5Complementary Influence Maximization Problem (CIM)

The CIM problem [21] extends the classic IMP [3] by introducing complementary users. The goal is to select a set of "seed" nodes \(S_B\) for one opinion \(B\) to maximize its spread in a social network, given that a complementary opinion \(A\) is already being propagated from a predefined seed set \(S_A\). Formally, given a social network \(\mathcal{G}\) and \(S_A\), CIM aims to find a node set \(S_B\) from a candidate set of \(d\) nodes to maximize the expected number of nodes activated by opinion \(B\), subject to a constraint \(b\) on the size of \(S_B\):

\[\begin{gathered} \text{maximize} \quad F(\mathbf{x}) = \textrm{ActiveNum}(\mathcal{G}, S_A, \mathbf{x}) \\ \text{subject to} \quad \sum_{i=1}^{d} x_i \leq b \end{gathered},\](7)

where \(\mathbf{x} \in \{0,1\}^d\) and \(x_i=1\) indicates the \(i\) -th node is included into \(S_B\). The interaction between opinions \(A\) and \(B\) are governed by parameters \(q_{A|\emptyset}\), \(q_{A|B}\), \(q_{B|\emptyset}\), and \(q_{B|A}\), as detailed in [21].

In the experiments, CIM instances are generated using real-world social networks. Specifically, the social network \(\mathcal{G}\) is randomly chosen from the Wiki [66] and Facebook datasets [67]. The candidate node set and \(S_A\) are formed by randomly selecting nodes from the network. The budget \(b\) is set to \(\lfloor r d \rfloor\), with \(r\) sampled uniformly from \([0.2, 0.4]\). The interaction parameters between opinions are set following [21]: \(q_{A|\emptyset}=0.5\), \(q_{A|B}=0.7\), \(q_{B|\emptyset}=0.5\), and \(q_{B|A}=0.5\).

A repair heuristic similar to the one for KP is employed to handle infeasible solutions. If a solution vector violates the size constraint, it iterates through the solution \(\mathbf{x}\) sequentially from \(i=1\) to \(d\), and excess selections are disabled by setting their corresponding bits to 0.

5.1.6Anchor Selection Problem (AS)

The AS Problem arises in selecting robust initial points for numerical solvers in camera imaging [5]. The goal is to select a small subset of "anchor points" (of size at most \(b\)) from a larger candidate set, such that these anchors collectively "cover" or correctly solve the maximum number of problems from a given problem set. This task can be framed as the Maximum Coverage problem. Let \(M = \{m_1, \dots, m_d\}\) be a candidate set of \(d\) anchor points and \(Q\) be a set of problems. For each point \(m_i \in M\), let \(Q_i \subseteq Q\) be the subset of problems it can solve. A solution is represented by a binary vector \(\mathbf{x} \in \{0, 1\}^d\), where \(x_i\) indicates \(m_i\) is selected. The objective function is:

\[\begin{gathered} \text{maximize} \quad F(x) = \left| \bigcup_{i=1, x_i=1}^d Q_i \right| \\ \text{subject to} \quad \sum_{i=1}^d x_i \leq b \end{gathered}\](8)

In the experiments, AS instances are generated by randomly selecting scenes from the ETH3D dataset [68], following [5]. A problem set \(Q\) of size 100,000 is generated from a selected scene. The candidate anchor set \(M\) of size \(d\) is created by sampling points from \(Q\). The size limit \(b\) for the anchor set is set to \(\lfloor r d \rfloor\), where \(r\) is uniformly sampled from \([0.1, 0.6]\).

A repair heuristic same as the one for CIM is employed. If a solution vector violates the size constraint, it iterates through the solution and excess selections are disabled.

Hyper-parameters Values
VAE
#hidden units of
encoder
[64, 128, 128, 64]
#hidden units of
decoder
[64, 128, 128, 64]
#dims of latent space 4\(\times\) input dimension
activation function &
batch normalization
LeakyReLU in every layer
except HardTanh in the last
layer of decoder;
Batch normalization used
Latent score
predictor
#hidden units
[128, 256, 512, 1024,
512, 256, 128]
activation function &
batch normalization
ReLU in the last layer;
Batch normalization used
Weighting
loss function
\(\lambda\) 1
\(\gamma\) 0.0025
Training learning rate
0.0005, Adam Optimizer [kingma2015adam]
without weight decay
batch size 1024
Fine-tuning \(s\) 64
learning rate
0.001, Adam Optimizer [kingma2015adam]
without weight decay
batch size 1024
Solution
generation
\(k\) 4
\(p\) \(2\times 10^{6}\)
Table 1. Hyper-parameter Settings of MEGO
Testing performance on the real-world problem classes beyond the training set. a-l, averaged convergence curves of 30 independent runs across 3 test instances. m, acceleration ratios of MEGO compared to GA, HC, and BO. Here, f_a- f_l indicate the test instances in fig. a – fig. l, respectively. n, W-D-L counts derived from statistical results of comparing MEGO vs. X (X: GA, HC and BO) under the first stopping criterion. o, W-D-L counts derived from statistical results of comparing MEGO+X vs. X (X: GA, HC and BO) under the second stopping criterion.
Figure 3. Testing performance on the real-world problem classes beyond the training set. a-l, averaged convergence curves of 30 independent runs across 3 test instances. m, acceleration ratios of MEGO compared to GA, HC, and BO. Here, \(f_a\) - \(f_l\) indicate the test instances in fig. a – fig. l, respectively. n, W-D-L counts derived from statistical results of comparing MEGO vs. X (X: GA, HC and BO) under the first stopping criterion. o, W-D-L counts derived from statistical results of comparing MEGO+X vs. X (X: GA, HC and BO) under the second stopping criterion.

5.2Compared Optimizers and Experimental Protocol

MEGO is compared with widely-adopted general-purpose optimizers for binary optimization, including GA [14], Hill Climbing with random restart (HC) [30], and BO [31]. The parameters of these baselines are tuned or set according to their original publications. Specifically, GA employs the elitism mechanism, the single-point crossover operator and random flip mutation operator. Its population size is 32, the number of elites is 1, and the mutation rate is set to \(1/d\), where \(d\) is the problem dimension. HC is based on the bit-flip operator and has no parameters. BO is implemented via the SMAC3 package [31], following the suggested settings in its official documentation suitable for various scales of discrete optimization problems. Specifically, random forest is used as the surrogate model and log expected improvement is adopted as the acquisition function. The initial design is generated using a scrambled Sobol sequence, with the number of initial #FEs limited to 25% of the total budget. Finally, a comparison is also made with SMARTEST [7], a specialized optimizer for the CA problem. The parameters of SMARTEST are set following its original paper [7], using a population size of 100, a crossover rate of 0.8, and an elitism rate of 0.1. We also include a variant of MEGO to examine the effect of target-specific adaptation. Compared with MEGO, the variant removes the decoder fine-tuning step (line 14 in Alg. 2) after expert selection, while keeping the total FE budget the same as in MEGO for a fair comparison.

The hyper-parameter settings for MEGO are summarized in Table 1. Its structural hyper-parameters (e.g., VAE architecture), learning hyper-parameters (e.g., learning rate), and weighting hyper-parameters are manually tuned for stable training. Details of the manual tuning process are also provided in the supplementary material. To ensure MEGO consumes within a small budget (around 100) of #FEs, \(s\) and \(k\) are set to 64 and 4, respectively. In terms of wall-clock time, the fine-tuning step of MEGO uses 20000 epochs and takes about 120-180 seconds, while sampling and scoring \(2\times 10^6\) source-space solutions takes about 3 seconds on our reference machine. As aforementioned in Sec. 4.3, MEGO can be employed in two modes. Both modes are evaluated in the experiments. First, MEGO is assessed as a standalone optimizer and compared directly against the baselines. Second, MEGO is utilized as an initial solution generator to warm-start these optimizers. In the second mode, the combined optimizer is denoted as MEGO+X (e.g., MEGO+GA). For MEGO+GA, the solutions generated by MEGO will be directly inserted into its initial population. For MEGO+HC, the generated solutions will serve as candidates for the starting point at each restart. For MEGO+BO, the generated solutions are used to initialize the surrogate model.

Testing performance on the three classic problem classes that appeared in the training set. a-l, averaged convergence curves of 30 independent trials across 3 test instances. m, acceleration ratios of MEGO compared to GA, HC, and BO. Here, f_a- f_l indicate the test instance in fig. a – fig. l, respectively. n, W-D-L counts derived from statistical results of comparing MEGO vs. X (X: GA, HC and BO) under the first stopping criterion. o, W-D-L counts derived from statistical results of comparing MEGO+X vs. X (X: GA, HC and BO) under the second stopping criterion.
Figure 4. Testing performance on the three classic problem classes that appeared in the training set. a-l, averaged convergence curves of 30 independent trials across 3 test instances. m, acceleration ratios of MEGO compared to GA, HC, and BO. Here, \(f_a\) - \(f_l\) indicate the test instance in fig. a – fig. l, respectively. n, W-D-L counts derived from statistical results of comparing MEGO vs. X (X: GA, HC and BO) under the first stopping criterion. o, W-D-L counts derived from statistical results of comparing MEGO+X vs. X (X: GA, HC and BO) under the second stopping criterion.

For a comprehensive performance evaluation, the compared optimizers are assessed under two distinct stopping criteria:

  1. A short budget criterion: the optimizers use the same #FEs as MEGO, which typically represents the scenario with high demands for solution efficiency.

  2. A long-budget criterion: the optimizers run for a longer time until a budget of 800 FEs is consumed.

To ensure a fair comparison, the same repair procedure is applied to all compared methods under the same evaluation protocol. Each optimizer is applied 30 times independently on every test instance, and the average results from these runs are compared. For the ease of comparison, all objective values are normalized and reported, with higher values indicating better performance. The detailed solution quality results for all compared optimizers are available in the supplementary. Furthermore, Wilcoxon rank-sum tests with significance level 0.05 are employed to determine the significance of the observed performance differences between the optimizers.

Problem Instances #FEs=800 #FEs=1600
BO MEGO+BO SMATEST SMATEST
Compiler
Arguments
Optimization (CA)
Dim=40 ins1 5568.27±1.44→ 5568.00±0.00 5569.60±5.99→ 5569.60±5.99→
ins2 6848.00±0.00→ 6848.00±0.00 6849.33±2.98→ 6849.33±2.98→
ins3 5672.00±0.00→ 5672.00±0.00 5672.00±0.00→ 5672.00±0.00→
Dim=60 ins1 6367.20±12.28→ 6363.73±3.99 6366.13±10.47→ 6365.33±9.98→
ins2 9572.27±3.99↓ 9569.33±2.98 9573.60±6.25↓ 9573.33±6.31↓
ins3 6264.00±0.00→ 6264.00±0.00 6265.07±3.99→ 6264.53±2.87→
Dim=80 ins1 5230.93±13.82↓ 5225.33±4.17 5236.00±14.57↓ 5234.40±14.33↓
ins2 6137.33±2.98→ 6136.00±0.00 6138.40±9.04→ 6138.40±9.04→
ins3 9134.13±9.39↓ 9120.27±4.84 9132.00±12.18↓ 9130.13±11.30↓
Dim=100 ins1 5512.53±12.72↓ 5501.07±7.00 5508.80±13.32↓ 5508.27±13.34↓
ins2 4240.00±12.73↓ 4213.60±12.76 4224.53±19.81↓ 4222.93±19.13↓
ins3 60583.73±63.98↓ 60519.73±45.79 60618.13±182.73→ 60610.93±175.61→
W-D-L 6-6-0 5-7-0 5-7-0
Table 2. Comparing MEGO+BO with SMARTEST, a recent optimizer specifically designed for optimizing compiler arguments. In this application, the goal is to minimize the size of the compiled code. Average ± standard deviation of raw results in terms of code size (bytes) across 30 repeated runs are reported below. On each problem instance, the best quality is indicated by underline "_". Moreover, "↑, ↓, →" represents that MEGO+BO is significantly better, worse, or not significantly different than the corresponding optimizer, respectively.

5.3Performance on Entirely Unseen Problem Classes

The most intriguing findings of this work emerge from the performance of MEGO on real-world problem classes beyond the training set. Fig. 3 presents these results. Figs. 3a-3l show the averaged convergence curves across the three test instances for each problem class and dimension. The #FEs consumed by MEGO and the solution quality it achieves are indicated with red lines for easy comparison under the first stopping criterion. Fig. 3m presents the acceleration ratio (detailed results are provided in the supplementary), calculated as the #FEs required by baselines to reach MEGO's solution quality divided by MEGO's #FEs. Finally, on different problem dimensions, statistical results of comparing MEGO with baselines are presented in Figs. 3n-3o, respectively.

There are five primary findings from Fig. 3. First, Figs. 3a-3l show that MEGO generalizes effectively to the unseen problem classes considered here. To the best of our knowledge, this is the first neural optimizer trained on a specific set of binary optimization problem classes generalizes well to entirely unseen binary optimization problem classes. Furthermore, this generalization extends to problem dimensionality. MEGO was trained on instances with dimensions up to 40, yet it performs well on test instances with dimensions up to 100. Second, MEGO surpasses widely-adopted general-purpose optimizers in both solution quality and computational efficiency on the problem classes considered here. Specifically, under the first stopping criterion, MEGO obtains much better solutions than the three baselines when using the same #FEs. As shown in Fig. 3m, GA, HC, and BO require on average 3.7, 4.0, and 4.4 times the #FEs of MEGO, respectively, to match MEGO's solution quality, indicating MEGO is much more efficient than these optimizers. Third, MEGO serves as an effective performance booster for existing optimizers as an initial solution generator. Specifically, on the CA class, the W-D-L (win-draw-loss) counts of MEGO+X vs. X (X: GA, HC, or BO) are 4-8-0, 5-7-0, and 6-6-0 when X is GA, HC, and BO, respectively. On the CIM class, these counts are 9-3-0, 11-1-0, and 12-0-0, respectively, and on the AS class, these counts are 9-3-0, 12-0-0, and 11-1-0, respectively. Fourth, MEGO is consistently better than the No-Finetuning variant, indicating that target-specific adaptation plays an important role in the effectiveness of MEGO. Finally, from Fig. 4n and Fig. 4o, the advantage of MEGO under both stopping criteria does not change significantly as the problem dimension varies from 40 to 100, i.e., it is not sensitive to problem dimension.

In summary, these findings have affirmatively answered RQ1, thus indicating MEGO's potential for practical applications. Particularly, MEGO can be trained on well-studied classic problems and then, without adjustments, applied to unseen, real-world optimization challenges where training data might be scarce or difficult to obtain.

5.4Performance on Problem Classes Seen in the Training Set

On the classic problem classes present in the training set, MEGO's performance advantage is even more pronounced (Figs. 4a-4l). Under the first stopping criterion (Fig. 4m), MEGO achieves average acceleration ratios of 3.6, 5.1, and 4.8 compared to GA, HC, and BO, respectively. With an extended budget of 800 FEs, MEGO+X consistently outperforms the three baselines across all dimensions and problem classes. For example, on the OM class, MEGO+X achieves a perfect 12-0-0 W-D-L record against all three baselines. Finally, from Figs. 4n-4o, once again MEGO's advantage is not sensitive to problem dimension.

These results further confirm MEGO's superior performance over the considered general-purpose optimizers and its ability to enhance them, thus affirmatively answering RQ2 within our testbed. Collectively, Figs. 3 and 4 demonstrate MEGO's promising performance as a general-purpose optimizer applicable to diverse binary optimization problem classes.

5.5Comparison with Specialized Optimizer on CA Problem

Table 2 compares MEGO+BO with the recently published specialized optimizer SMARTEST [7] on the CA problem class. From Table 2, MEGO+BO obtains the best solution quality (in terms of code size of the generated executable file) on all 12 problem instances, far better than any other compared optimizer. Statistical results further show that on any of the problem instances, MEGO+BO is not inferior to SMARTEST, and on five of them, the solution quality obtained by MEGO+BO is significantly better than SMARTEST. The above findings hold even when the #FEs consumed by SMARTEST is doubled to 1600. These results once again demonstrate that MEGO can significantly improve a general-purpose optimizer, in some cases enabling it to substantially surpass the performance of specialized optimizers.

Problem MEGO VS. Latent-Space Search Variant
W D L
OM 10 1 1
MC 5 7 0
KP 10 2 0
AS 10 1 1
CIM 10 1 1
CA 8 4 0
Total 53 16 3
Table 3. Performance Comparison Between MEGO and Latent-Space Search Variant via Wilcoxon Rank‑Sum Test (p=0.05): W (MEGO Stronger), D (No Significant Difference), L (Variant Stronger)

5.6Component Analysis

5.6.2Padding Strategy

To examine whether zero padding would introduce bias during the expert identification step of MEGO (see Sec. 4.2.1), we compared three padding strategies: zero padding, all-one padding, and random padding. To ensure that padding is indeed required, we used test instances of dimension 20, while the experts were trained on dimensions 30, 35, and 40. Each strategy was executed for 30 independent runs on every problem instance. The test results are presented in Table 4. Across the 18 test instances, zero padding achieves W-D-L counts of 2-15-1 against all-one padding and 2-14-2 against random padding. These results indicate that all the three strategies are broadly comparable to each other, and no clear systematic bias is observed.

5.6.3Source-Target Mapping

To investigate the effect of the source-target mapping step (line 16 in Alg. 2), we further compared the following two configurations of MEGO.

  • Mapping: The standard MEGO procedure.

  • No Mapping: A variant of MEGO where the solution mapping step is removed. After experts are selected, new solutions are sampled directly in the source problem instance's solution space. Then, these solutions are ranked by their performance on the expert models and the top- \(k\) solutions are selected, and are finally evaluated on the target problem instance.

Each method was executed for 30 independent runs on every problem instance. The test results, in terms of aggregated W-D-L counts (according to the Wilcoxon rank-sum test at a 0.05 significance level) for each class, are presented in Table 5. Complete per-instance solution-quality and W-D-L results are provided in the supplementary. Overall, these results show that MEGO (with mapping) outperforms the no-mapping variant on 67 out of 72 test instances, ties on 4 instances, and loses on only 1 instance. These results indicate that the mapping step is essential for the effectiveness of MEGO.

5.6.4Relevant Expert Identification

The current implementation of MEGO would normally activate multiple experts rather than only one (MEGO selects about 14 experts on average across the experiments). A natural question is whether activating multiple experts is beneficial, since different experts may contain overlapping knowledge. To examine the effect of this design, we compared MEGO with three expert-selection baselines: (i) random selection of the same number of experts as MEGO (denoted as "SAMPLE"), (ii) the average performance obtained by running each expert individually ("MEAN") that corresponds to randomly selecting only one expert, and (iii) the hindsight best individual expert among all experts ("MAX"). Table 6 reports aggregated W-D-L results (according to the Wilcoxon rank-sum test at a 0.05 significance level) at the problem-class level. Complete results are provided in the supplementary material.

Across all 72 test instances, MEGO achieves W-D-L counts of 19-45-8 against SAMPLE, 71-0-1 against MEAN, and 9-15-48 against MAX. These results suggest that activating multiple experts is indeed beneficial, as MEGO substantially outperforms the MEAN baseline (relying on a single randomly chosen expert), and that the correlation-based routing strategy is more effective than selecting the same number of experts at random. At the same time, it is not surprising that the hindsight best single expert often outperforms MEGO, because that baseline assumes oracle knowledge after exhaustively evaluating all experts. Overall, these results suggest that overlap among experts does not negate the value of multi-expert activation. Rather, what matters is activating a relevant subset of experts for the target instance.

To further examine whether the correlation-based routing policy can identify useful experts, we compared it with random selection in terms of the rates of hitting top- \(k\) relevant experts, where \(k=1,3,5,10\). The results in Figure 5 show that using correlation coefficients generally leads to higher average hit rates than random selection, especially for top-3, top-5, and top-10. This indicates that the routing policy is effective in identifying relevant experts for a target instance.

5.6.5Analysis of the Latent Representation

To further examine whether the latent representations could preserve global structural information, we performed a quantitative analysis of reconstruction fidelity and geometry preservation for the expert models. Specifically, for an expert model trained on a training instance, we randomly generate 10000 binary solutions \(X\), encode them into the latent space, and then decode them to obtain reconstructed solutions \(X'\). These input solutions are generated independently of the training and validation sets. The mean absolute error between \(X\) and \(X'\) is only 0.006, corresponding to a per-dimension reconstruction accuracy of 99.4% for binary vectors. In addition, the exact reconstruction accuracy at the whole-solution level reaches 84%.

We further analyze whether relative relationships among solutions are preserved after passing through the latent representation. Specifically, we compute the pairwise Manhattan distances among solutions in \(X\) and among reconstructed solutions in \(X'\), and then measure the rank correlation between these two distance matrices. The results are illustrated in Fig. 6. The resulting Kendall's Tau and Spearman correlation coefficients are 0.767 and 0.927, respectively.

These results suggest that the latent representations preserve substantial structural information about the original solution space, both at the level of individual solution reconstruction and at the level of geometric relationships among solutions.

Correspondence between Manhattan Distances of Reconstructed Solution Pairs and their respective Input Pairs. (a) Distance Correlation. (b) Sorted Distance Progression.
Figure 6. Correspondence between Manhattan Distances of Reconstructed Solution Pairs and their respective Input Pairs. (a) Distance Correlation. (b) Sorted Distance Progression.

5.7A Novel Perspective of Problem Classification

Based on MEGO, a computational approach is developed to classify optimization problems based on their vector-based representations. This approach results in a novel, data-driven perspective that diverges from conventional, analysis-based classification.

Specifically, each test instance \(I_{new}\) is represented as a \(27\) -dimensional vector, with the \(j\) -th component quantifies the similarity between \(I_{new}\) and the \(j\) -th training problem instance (there are 27 training problem instances in total). To obtain this vector, the following procedure is applied. First, each of the 27 expert models in MEGO is adapted to \(I_{new}\), using the fine-tuning procedure described in Sec. 4.2. Once fine-tuned, the encoder-decoder of each expert model is a mapping from the solution space of the corresponding training problem instance to the solution space of \(I_{new}\). Based on each of these mappings, a large number of solutions are randomly sampled and the four solutions with the highest predicted scores are identified, resulting in a candidate pool of 108 solutions. These solutions are then evaluated using the objective function of \(I_{new}\), and the top four unique solutions from this pool are retained. This step validates which expert models are genuinely most effective at generating high-quality solutions for \(I_{new}\).

The above procedure is repeated for 30 times; therefore a final elite set of 120 solutions (4 solutions × 30 repeat) is collected. The vector is then derived from this elite set. A raw 27-dimensional count vector, \(\mathbf{a}'\), is first constructed, where its \(j\) -th component, \(a_j\), is simply the number of solutions in the 120-solution elite set that originated from the \(j\) -th expert model. This count directly measures the contribution, and thus the relevance, of the \(j\) -th training problem instance to solving \(I_{new}\). Finally, to ensure the components are on a consistent scale for comparison and clustering, the raw count vector is L2-normalized to produce the final vector: \(\mathbf{a}=\frac{\mathbf{a}'}{||\mathbf{a}||_2}\).

Fig. 7 illustrates the clustering (using K-means [69]) and 2-dimensional t-SNE visualization [70] of the vectors of all 72 test instances (5 clusters). The resulting classification reveals interesting discrepancies from conventional problem classification. While some consistency exists (e.g., between OM class and cluster 5, AS class and cluster 3), other problem classes show substantial distribution across multiple clusters. For instance, the CA and CIM classes are each spread across 4 clusters. These findings are somewhat counterintuitive. They indicate that from the perspective of a learned optimizer like MEGO, instances from conventionally different problem classes may exhibit greater similarity than instances within the same problem class. This observation also suggests that the behavior of MEGO is not determined solely by the manually defined training problem classes. This insight offers an explanation for MEGO's strong generalization to unseen problem classes. That is, in the cases studied here, MEGO succeeds not by learning the abstract properties of a problem class, but by identifying that a new instance--regardless of its conventional class label--shares sufficiently aligned solution-quality landscape structure with some instances in its experience, thereby enabling the transfer of a relevant optimization strategy.

Overall, MEGO introduces a computational lens for examining the relationships between seemingly disparate optimization problems. This data-driven perspective on problem similarity complements conventional, analysis-based classifications and may offer new insights into the problem landscape.

Visualization of conventional problem classification and similarity-based problem classification. a. clustering and 2-dimensional t-SNE visualization results of the test instances. b-f. distributions of instances from different problem classes (according to conventional classification) across different clusters (according to similarity-based classification).
Figure 7. Visualization of conventional problem classification and similarity-based problem classification. a. clustering and 2-dimensional t-SNE visualization results of the test instances. b-f. distributions of instances from different problem classes (according to conventional classification) across different clusters (according to similarity-based classification).

6Conclusion and Discussion

This work addresses the challenge of building off-the-shelf optimizers for binary optimization. MEGO, a general-purpose neural optimizer, is introduced. With minimal problem-specific customization, MEGO shows strong generalization capabilities across the six problem classes considered in this work, including those not seen during training. Furthermore, MEGO offers a new computational approach for classifying optimization problems, which is fundamentally different from the conventional problem classification approach. At the same time, it is important to note that MEGO should not be understood as a universal optimizer for arbitrary binary optimization problems. Its effectiveness depends on whether the target problem instance shares reusable structure (regularities) with the expert pool. To further examine this point, we conducted an additional experiment in which the target problem instance is an arbitrary random binary function, and compared MEGO with the baselines under the same #FEs over 30 independent runs. The results show that MEGO no longer exhibits a meaningful transfer advantage in that case. This supports the view that when such reusable structure is weak or absent, transfer is no longer meaningful and negative transfer may occur. Detailed discussion of these regularities and the additional experiment is provided in the supplementary material.

There exist many open avenues for future improvement. For instance, the current MEGO architecture is intentionally modular rather than fully end-to-end. Each expert model is trained independently on one training instance, the routing policy is based on sampled evaluations and correlation-based expert selection, and the selected experts are subsequently adapted to the target instance through decoder fine-tuning. As a result, the overall pipeline is better viewed as a select-adapt-generate framework than a conventional end-to-end MoE.

This design has both advantages and limitations. On the one hand, it makes MEGO modular and flexible, allows experts to be learned independently from black-box experience data, and avoids requiring a differentiable routing mechanism tied to a specific problem representation. It also naturally supports target-instance-specific adaptation after expert selection. On the other hand, because the router and the experts are not jointly optimized, they may not be perfectly synchronized. Consequently, the routing rule may fail to activate the most useful experts in some cases, or may activate suboptimal ones.

Developing a more tightly integrated version of MEGO would require a substantially different framework, since the current routing procedure is non-differentiable and the adaptation step depends on target-instance-specific sampled data. Future work may therefore investigate differentiable routing, meta-level adaptation across problem instances, or reinforcement-learning-based routing and training strategies.

Furthermore, MEGO does not directly handle constraints. While it can be paired with simple repair heuristics to solve constrained problems, a notable advancement would be the integration of a built-in, general-purpose constraint-handling mechanism. Beyond that, several other exciting research directions are envisioned:

  1. The evaluation of MEGO can be extended to a wider array of problem classes and dimensions. In particular, scaling MEGO to much larger binary dimensions is an important direction for future work, but will likely require improved expert architectures and more efficient adaptation mechanisms for high-dimensional settings.

  2. Another important direction is to investigate more principled ways of automatically constructing the training problem classes and expert pool, thereby mitigating the potential bias of manual selection.

  3. The current solution-generation step uses random sampling for simplicity and efficiency. A promising direction is to investigate more sophisticated search strategies in the latent space of selected experts, which may further improve solution quality.

  4. A continuous learning framework could be explored. This would allow MEGO to continuously improve by learning from new problem instances encountered after its initial training, but it would also enlarge the expert pool over time. In the current implementation, the storage cost grows linearly with the number of experts, with each expert occupying about 5.9 MB. At inference time, not all experts are activated for every target instance, and fine-tuning and solution generation for different selected experts are naturally parallelizable. The GPU memory usage for one expert is about 750 MB, and on an 8-GPU server with Nvidia MPS or MIG enabled, we can fine-tune and sample from at least 24 experts concurrently with little observed additional latency. A key challenge for future work is therefore to manage the growing expert pool efficiently, for example through dynamic model pruning, so as to maintain a balance between performance and computational cost.

  5. Finally, the problem classification approach enable by MEGO could be explored further. A valuable next step would be to analyze the structural properties of the resulting problem clusters. For instance, by using fitness landscape analysis, one could examine whether the problem instances grouped together share underlying features, such as ruggedness or variable interaction. Such an understanding could then be used to develop more suitable optimization strategy for these problem instances.

7Acknowledgments

This work was supported by National Key Research and Development Program of China under Grant 2022YFA1004102, and in part by the Natural Science Foundation of China under Grants T2495254, 62502192, and 62250710682, and in part by the internal grants of Lingnan University.

References

  1. G. Naseri, M. A. Koffas, "Application of combinatorial optimization strategies in synthetic biology", Nat. Commun., vol. 11, no. 1, pp. 2446, 2020.
  2. L. Tang, T. Li, Y. Meng, J. Liu, "Searching in Symmetric Solution Space for Permutation-Related Optimization Problems", IEEE Trans. Pattern Anal. Mach. Intell., vol. 47, no. 8, pp. 7036--7052, 2025.
  3. D. Kempe, J. Kleinberg, \. Tardos, "Maximizing the spread of influence through a social network", in Proceedings of KDD'2003, 2003.
  4. J. Yu, T. Xu, Y. Rong, Y. Bian, J. Huang, R. He, "Recognizing Predictive Substructures With Subgraph Information Bottleneck", IEEE Trans. Pattern Anal. Mach. Intell., vol. 46, no. 3, pp. 1650--1663, 2024.
  5. P. Hruby, T. Duff, A. Leykin, T. Pajdla, "Learning to solve hard minimal problems", in Proceedings of CVPR'2022, New Orleans, LA, 2022.
  6. C. Wang, Y. Liu, Y. Wang, X. Li, M. Wang, "Efficient and Outlier-Robust Simultaneous Pose and Correspondence Determination by Branch-and-Bound and Transformation Decomposition", IEEE Trans. Pattern Anal. Mach. Intell., vol. 44, no. 10, pp. 6924--6938, 2022.
  7. H. Jiang, G. Gao, Z. Ren, X. Chen, Z. Zhou, "SMARTEST: a surrogate-assisted memetic algorithm for code size reduction", IEEE Trans. Reliab., vol. 71, no. 1, pp. 190--203, 2021.
  8. S. Liu, Y. Zhang, K. Tang, X. Yao, "How good is neural combinatorial optimization? A systematic evaluation on the traveling salesman problem", IEEE Comput. Intell. Mag., vol. 18, no. 3, pp. 14--28, 2023.
  9. J. Pan, P. Hu, V. Sn\'asel, S. Chu, "A survey on binary metaheuristic algorithms and their engineering applications", Artif. Intell. Rev., vol. 56, no. 7, pp. 6101--6167, 2023.
  10. L. M. Rios, N. V. Sahinidis, "Derivative-free optimization: a review of algorithms and comparison of software implementations", J. Glob. Optim., vol. 56, no. 3, pp. 1247--1293, 2013.
  11. B. Li, Z. Wei, J. Wu, S. Yu, T. Zhang, C. Zhu, D. Zheng, W. Guo, C. Zhao, J. Zhang, "Machine learning-enabled globally guaranteed evolutionary computation", Nat. Mac. Intell., vol. 5, no. 4, pp. 457--467, 2023.
  12. A. Schrijver, others, "Combinatorial optimization: polyhedra and efficiency", Springer, 2003.
  13. Z. Wang, F. Hutter, M. Zoghi, D. Matheson, N. D. Freitas, "Bayesian Optimization in a Billion Dimensions via Random Embeddings", J. Artif. Intell. Res., vol. 55, pp. 361--387, 2016.
  14. J. H. Holland, "Genetic algorithms", Sci. Am., vol. 267, no. 1, pp. 66--73, 1992.
  15. S. Kirkpatrick, C. D. Gelatt Jr, M. P. Vecchi, "Optimization by simulated annealing", Science, vol. 220, no. 4598, pp. 671--680, 1983.
  16. P. Larra\~naga, J. A. Lozano, "Estimation of distribution algorithms: A new tool for evolutionary computation", Springer Science \& Business Media, 2001.
  17. D. R. Jones, M. Schonlau, W. J. Welch, "Efficient global optimization of expensive black-box functions", J. Glob. Optim., vol. 13, pp. 455--492, 1998.
  18. M. L\'opez-Ib\'a\~nez, J. Dubois-Lacoste, L. P. C\'aceres, M. Birattari, T. Stutzle, "The irace package: Iterated racing for automatic algorithm configuration", Oper. Res. Perspect., vol. 3, pp. 43--58, 2016.
  19. G. Malkomes, R. Garnett, "Automating Bayesian optimization with Bayesian optimization", in Proceedings of NeurIPS'2018, 2018.
  20. T. Elsken, J. H. Metzen, F. Hutter, "Neural Architecture Search: A Survey", J. Mach. Learn. Res., vol. 20, pp. 55:1--55:21, 2019.
  21. W. Lu, W. Chen, L. V. S. Lakshmanan, "From Competition to Complementarity: Comparative Influence Diffusion and Maximization", Proc. VLDB Endow., vol. 9, no. 2, pp. 60--71, 2015.
  22. K. Tang, X. Yao, "Learn to optimize—a brief overview", Natl. Sci. Rev., vol. 11, no. 8, pp. nwae132, 2024.
  23. O. Vinyals, M. Fortunato, N. Jaitly, "Pointer Networks", in Proceedings of NIPS'2015, 2015.
  24. I. Bello, H. Pham, Q. V. Le, M. Norouzi, S. Bengio, "Neural Combinatorial Optimization with Reinforcement Learning", in Proceedings of ICLR'2017, 2017.
  25. Y. Bengio, A. Lodi, A. Prouvost, "Machine learning for combinatorial optimization: a methodological tour d’horizon", Eur. J. Oper. Res., vol. 290, no. 2, pp. 405--421, 2021.
  26. C. Wang, Z. Yu, S. McAleer, T. Yu, Y. Yang, "ASP: Learn a Universal Neural Solver!", IEEE Trans. Pattern Anal. Mach. Intell., vol. 46, no. 6, pp. 4102--4114, 2024.
  27. T. Kortus, R. Keidel, N. R. Gauger, "Towards Neural Charged Particle Tracking in Digital Tracking Calorimeters With Reinforcement Learning", IEEE Trans. Pattern Anal. Mach. Intell., vol. 45, no. 12, pp. 15820--15833, 2023.
  28. N. Shazeer, A. Mirhoseini, K. Maziarz, A. Davis, Q. V. Le, G. E. Hinton, J. Dean, "Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layer", in Proceedings of ICLR'2017, 2017.
  29. W. Cai, J. Jiang, F. Wang, J. Tang, S. Kim, J. Huang, "A Survey on Mixture of Experts in Large Language Models", IEEE Trans. Knowl. Data Eng., vol. 37, no. 7, pp. 3896--3915, 2025.
  30. S. J. Russell, P. Norvig, "Artificial intelligence: a modern approach", pearson, 2016.
  31. M. Lindauer, K. Eggensperger, M. Feurer, A. Biedenkapp, D. Deng, C. Benjamins, T. Ruhkopf, R. Sass, F. Hutter, "SMAC3: A versatile Bayesian optimization package for hyperparameter optimization", J. Mach. Learn. Res., vol. 23, no. 54, pp. 1--9, 2022.
  32. J. Cai, J. Luo, S. Wang, S. Yang, "Feature selection in machine learning: A new perspective", Neurocomputing, vol. 300, pp. 70--79, 2018.
  33. S. Martello, P. Toth, "Knapsack problems: algorithms and computer implementations", John Wiley \& Sons, Inc., 1990.
  34. M. M. Keikha, "Improved simulated annealing using momentum terms", in Proceedings of ISMS'2011, 2011.
  35. S. W. Mahfoud, D. E. Goldberg, "Parallel Recombinative Simulated Annealing: A Genetic Algorithm", Parallel Comput., vol. 21, no. 1, pp. 1--28, 1995.
  36. M. A. Londe, L. S. Pessoa, C. E. D. Andrade, M. G. C. Resende, "Biased random-key genetic algorithms: A review", Eur. J. Oper. Res., vol. 321, no. 1, pp. 1--22, 2025.
  37. K. G. Srinivasa, K. R. Venugopal, L. M. Patnaik, "A self-adaptive migration model genetic algorithm for data mining applications", Inf. Sci., vol. 177, no. 20, pp. 4295--4313, 2007.
  38. R. Baptista, M. Poloczek, "Bayesian Optimization of Combinatorial Structures", in Proceedings of ICML'2018, 2018.
  39. C. Oh, J. M. Tomczak, E. Gavves, M. Welling, "Combinatorial Bayesian Optimization using the Graph Cartesian Product", in Proceedings of NeurIPS'2019, 2019.
  40. M. Pelikan, D. E. Goldberg, "Hierarchical Bayesian Optimization Algorithm", Scalable Optimization via Probabilistic Modeling, 2006, 2006.
  41. C. Huang, Y. Li, X. Yao, "A Survey of Automatic Parameter Tuning Methods for Metaheuristics", IEEE Trans. Evol. Comput., vol. 24, no. 2, pp. 201--216, 2020.
  42. K. Li, \. Fialho, S. Kwong, Q. Zhang, "Adaptive Operator Selection With Bandits for a Multiobjective Evolutionary Algorithm Based on Decomposition", IEEE Trans. Evol. Comput., vol. 18, no. 1, pp. 114--130, 2014.
  43. G. Malkomes, C. Schaff, R. Garnett, "Bayesian optimization for automated model selection", in Proceedings of NIPS'2016, 2016.
  44. W. Kool, H. V. Hoof, M. Welling, "Attention, Learn to Solve Routing Problems!", in Proceedings of ICLR'2019, 2019.
  45. Y. Kwon, J. Choo, B. Kim, I. Yoon, Y. Gwon, S. Min, "POMO: Policy Optimization with Multiple Optima for Reinforcement Learning", in Proceedings of NeurIPS'2020, 2020.
  46. C. Gao, H. Shang, K. Xue, D. Li, C. Qian, "Towards Generalizable Neural Solvers for Vehicle Routing Problems via Ensemble with Transferrable Local Policy", in Proceedings of IJCAI'2024, 2024.
  47. E. B. Khalil, H. Dai, Y. Zhang, B. Dilkina, L. Song, "Learning Combinatorial Optimization Algorithms over Graphs", in Proceedings of NIPS'2017, 2017.
  48. C. K. Joshi, T. Laurent, X. Bresson, "An Efficient Graph Convolutional Network Technique for the Travelling Salesman Problem", CoRR, vol. abs/1906.01227, 2019.
  49. R. G\'omez-Bombarelli, J. N. Wei, D. Duvenaud, J. M. Hern\'andez-Lobato, B. S\'anchez-Lengeling, D. Sheberla, J. Aguilera-Iparraguirre, T. D. Hirzel, R. P. Adams, A. Aspuru-Guzik, "Automatic chemical design using a data-driven continuous representation of molecules", ACS central science, vol. 4, no. 2, pp. 268--276, 2018.
  50. R. Luo, F. Tian, T. Qin, E. Chen, T. Liu, "Neural Architecture Optimization", in Proceedings of NeurIPS'2018, 2018.
  51. A. Hottung, B. Bhandari, K. Tierney, "Learning a Latent Search Space for Routing Problems using Variational Autoencoders", in Proceedings of ICLR'2021, 2021.
  52. N. Maus, H. T. Jones, J. Moore, M. Kusner, J. Bradshaw, J. R. Gardner, "Local Latent Space Bayesian Optimization over Structured Inputs", in Proceedings of NeurIPS'2023, 2022.
  53. S. Lee, J. Chu, S. Kim, J. Ko, H. J. Kim, "Advancing Bayesian Optimization via Learning Correlated Latent Space", in Proceedings of NeurIPS'2023, 2023.
  54. J. Hu, J. Whitman, H. Choset, "GLSO: Grammar-guided Latent Space Optimization for Sample-efficient Robot Design Automation", in Proceedings of CoRL'2022, 2022.
  55. H. B. Moss, S. W. Ober, T. Diethe, "Return of the Latent Space COWBOYS: Re-thinking the use of VAEs for Bayesian Optimisation of Structured Spaces", in Proceedings of ICML'2025, 2025.
  56. C. Gao, H. Shang, K. Xue, C. Qian, "Neural Solver Selection for Combinatorial Optimization", in Proceedings of ICML'2025, 2025.
  57. X. He, H. Shang, C. Qian, "How to Train Algorithm Selection Models: Insights from Black-box Continuous Optimization", in Proceedings of GECCO'2025, 2025.
  58. A. Kostovska, G. Cenikj, D. Vermetten, A. Jankovic, A. Nikolikj, U. Skvorc, P. Korosec, C. Doerr, T. Eftimov, "PS-AAS: Portfolio Selection for Automated Algorithm Selection in Black-Box Optimization", in Proceedings of AutoML'2023, 2023.
  59. X. Wu, J. Wu, Y. Zhou, L. Feng, K. Tan, "Towards Robustness and Explainability of Automatic Algorithm Selection", in Proceedings of ICML'2025, 2025.
  60. P. J. Darwen, X. Yao, "Speciation as automatic categorical modularization", IEEE Trans. Evol. Comput., vol. 1, no. 2, pp. 101--108, 1997.
  61. D. P. Kingma, M. Welling, "Auto-Encoding Variational Bayes", in Proceedings of ICLR'2014, 2014.
  62. L. Eshelman, "On crossover as an evolutionarily viable strategy", in Proceedings of ICGA'1991, 1991.
  63. M. R. Garey, D. S. Johnson, "Computers and Intractability: A Guide to the Theory of NP-Completeness", W. H. Freeman, 1979.
  64. A. Hagberg, P. J. Swart, D. A. Schult, "Exploring network structure, dynamics, and function using NetworkX", 2008.
  65. G. Fursin, "Collective Tuning Initiative: automating and accelerating development and optimization of computing systems", in Proceedings of the GCC Developers' Summit'2009, 2009.
  66. J. Leskovec, D. P. Huttenlocher, J. M. Kleinberg, "Predicting positive and negative links in online social networks", in Proceedings of WWW'2010, 2010.
  67. J. J. McAuley, J. Leskovec, "Learning to Discover Social Circles in Ego Networks", in Proceedings of NIPS'2012, 2012.
  68. T. Sch\"ops, J. L. Sch\"onberger, S. Galliani, T. Sattler, K. Schindler, M. Pollefeys, A. Geiger, "A Multi-View Stereo Benchmark with High-Resolution Images and Multi-Camera Videos", in Proceedings of CVPR 2017, 2017.
  69. S. Lloyd, "Least squares quantization in PCM", IEEE Trans. Inf. Theory., vol. 28, no. 2, pp. 129--137, 1982.
  70. L. Van der Maaten, G. Hinton, "Visualizing data using t-SNE", J. Mach. Learn. Res., vol. 9, no. 11, 2008.

App. ADetailed Experimental Results on Problem Classes Seen in the Training Set

App. A.1Objective Values of MEGO and the Baselines

We compare the objective values achieved by MEGO and the baselines on the training problem classes, while the baselines use the same #FEs as MEGO. Each problem instance is optimized 30 times. The results' statistical significance was tested through the Wilcoxon rank-sum statistic. Table 789 compare the objective values achieved by MEGO and baselines on the OM problem, KP, and MC problem, respectively.

Problem Instance MEGO GA HC BO
Dim=40 ins1 31.33±1.01 27.40±1.60↓ 23.30±3.23↓ 26.50±1.69↓
ins2 30.83±0.93 27.57±1.78↓ 22.57±3.34↓ 26.70±1.29↓
ins3 32.53±1.20 27.53±1.52↓ 22.53±3.31↓ 26.50±1.48↓
Dim=60 ins1 44.87±1.18 39.63±1.83↓ 32.57±3.45↓ 38.73±1.44↓
ins2 42.90±0.75 39.53±1.54↓ 32.73±3.62↓ 38.77±1.86↓
ins3 42.63±1.58 39.27±1.61↓ 31.03±3.49↓ 38.47±1.93↓
Dim=80 ins1 54.37±2.36 50.23±2.29↓ 41.83±3.64↓ 49.40±1.94↓
ins2 57.03±1.43 50.20±2.07↓ 42.70±4.66↓ 50.07±2.06↓
ins3 56.13±1.48 50.90±2.45↓ 43.47±4.83↓ 49.17±1.44↓
Dim=100 ins1 69.90±2.44 61.53±2.00↓ 51.07±4.25↓ 60.30±2.10↓
ins2 66.67±2.65 61.27±3.00↓ 50.50±3.96↓ 60.10±1.94↓
ins3 64.10±1.51 61.50±2.01↓ 50.63±4.85↓ 60.17±1.93↓
W-D-L 12-0-0 12-0-0 12-0-0
Table 7. Objective values achieved by MEGO and the Baselines on the OM Problem. "↑, ↓, →" represents that the corresponding method is significantly better, worse, or not significantly different than the MEGO, respectively.
Problem Instance MEGO GA HC BO
Dim=40 ins1 7.53±0.09 7.23±0.13 ↓ 6.92±0.25 ↓ 7.15±0.12 ↓
ins2 13.13±0.10 12.97±0.16 ↓ 12.57±0.66 ↓ 12.89±0.17 ↓
ins3 5.91±0.03 5.74±0.08 ↓ 5.63±0.17 ↓ 5.65±0.08 ↓
Dim=60 ins1 8.73±0.09 8.72±0.10→ 8.53±0.18 ↓ 8.61±0.09 ↓
ins2 7.41±0.09 7.36±0.09 ↓ 7.17±0.15 ↓ 7.26±0.13 ↓
ins3 12.96±0.07 12.90±0.07 ↓ 12.72±0.16 ↓ 12.86±0.08 ↓
Dim=80 ins1 19.18±0.07 19.07±0.11 ↓ 18.69±0.40 ↓ 19.00±0.10 ↓
ins2 25.89±0.76 24.17±1.13 ↓ 21.07±2.37 ↓ 23.93±1.19 ↓
ins3 23.17±0.11 23.08±0.15→ 21.15±1.95 ↓ 22.93±0.19 ↓
Dim=100 ins1 18.35±0.03 18.37±0.05→ 18.23±0.14 ↓ 18.30±0.06 ↓
ins2 36.55±0.93 33.79±1.13 ↓ 28.18±2.70 ↓ 33.53±1.08 ↓
ins3 15.27±0.05 15.21±0.07 ↓ 15.08±0.14 ↓ 15.16±0.07 ↓
W-D-L 9-3-0 12-0-0 12-0-0
Table 8. Objective values achieved by MEGO with the Baselines on the KP. "↑, ↓, →" represents that the corresponding method is significantly better, worse, or not significantly different than the MEGO, respectively.
Problem Instance MEGO GA HC BO
Dim=40 ins1 186.03±4.09 181.60±3.52↓ 180.73±3.68↓ 178.43±2.25↓
ins2 264.83±2.15 264.70±3.21→ 265.13±3.17→ 263.13±2.87↓
ins3 138.13±1.15 135.83±2.15↓ 135.63±2.32↓ 135.10±2.17↓
Dim=60 ins1 442.17±2.02 439.60±3.78↓ 435.80±5.20↓ 439.30±3.48↓
ins2 622.20±2.21 622.23±3.93→ 613.77±6.78↓ 619.17±3.34↓
ins3 465.50±2.42 462.60±4.01↓ 454.83±7.08↓ 460.20±4.09↓
Dim=80 ins1 1048.43±6.01 1041.27±4.39↓ 1028.47±11.24↓ 1039.13±5.85↓
ins2 1068.33±5.06 1062.17±5.09↓ 1050.97±11.41↓ 1059.17±4.31↓
ins3 709.77±5.98 700.30±6.00↓ 688.43±8.81↓ 698.20±5.96↓
Dim=100 ins1 1430.50±6.23 1427.77±8.34↓ 1398.80±15.67↓ 1418.60±8.17↓
ins2 1111.57±7.10 1113.80±7.45↑ 1091.43±16.70↓ 1104.33±5.58↓
ins3 1381.30±6.27 1366.83±8.86↓ 1350.30±12.91↓ 1363.00±5.13↓
W-D-L 9-2-1 11-1-0 12-0-0
Table 9. Objective values achieved by MEGO and the Baselines on the MC Problem. "↑, ↓, →" represents that the corresponding method is significantly better, worse, or not significantly different than the MEGO, respectively.

App. A.2Acceleration Ratios of MEGO compared to the Baselines

We record the #FEs required by the baselines to achieve the objective values of MEGO, and based on this, calculate the acceleration ratio of MEGO relative to baselines across various problem classes and various problem dimensions. The #FEs used for a specific problem class with a particular dimension were averaged over 30 runs on the three test instances. The comparison results are shown in Table 10.

Problem Class Dim MEGO GA HC BO
#FEs #FEs Ratio #FEs Ratio #FEs Ratio
OM 40 94.28 540.36 5.73 440.98 4.68 660.24 7
60 127.1 495.21 3.9 735.14 5.78 598.69 4.71
80 106.68 499.29 4.68 830.94 7.79 662.28 6.21
100 94.97 466.58 4.91 884.12 9.31 621.62 6.55
KP 40 132.76 583.12 4.39 685.64 5.16 701.36 5.28
60 119.93 324.49 2.71 636.63 5.31 477.37 3.98
80 138.07 401.6 2.91 692.24 5.01 595.98 4.32
100 131.2 381.66 2.91 757.44 5.77 509.6 3.88
MC 40 130.28 384.72 2.95 290.71 2.23 512.94 3.94
60 112.21 250.31 2.23 343.86 3.06 355.39 3.17
80 133.18 383.9 2.88 431.14 3.24 555.53 4.17
100 116.28 331.52 2.85 492.92 4.24 491.82 4.23
Avg. Ratio 3.59 5.13 4.79
Table 10. Acceleration Ratios of MEGO compared to the Baselines on the problem classes seen in the training set.

App. A.3Objective Values of MEGO+X and the Baselines

MEGO+X uses MEGO as the initial solution generator for X, and X is the baseline. We compare the objective values achieved by MEGO+X and the baselines on the training problem classes while the budget of #FEs is 800. Each problem instance is optimized 30 times. The results’ statistical significance was tested through the Wilcoxon rank-sum statistic. Table 111213 compare the objective values achieved by MEGO+X and baselines on the OM problem, KP, and MC problem, respectively.

Problem Instance MEGO+GA GA MEGO+HC HC MEGO+BO BO
Dim=40 ins1 33.93±1.55 32.17±2.03↓ 40.00±0.00 38.73±1.44↓ 35.27±1.34 33.23±1.43↓
ins2 33.63±1.40 32.13±1.67↓ 40.00±0.00 38.87±1.71↓ 34.67±1.30 32.73±1.31↓
ins3 34.10±1.51 31.83±1.55↓ 40.00±0.00 38.37±2.01↓ 35.17±0.86 32.77±1.12↓
Dim=60 ins1 47.67±1.62 44.77±1.96↓ 55.63±1.20 42.57±3.45↓ 47.23±1.45 46.23±1.73↓
ins2 47.30±1.51 44.27±2.03↓ 54.50±1.36 42.90±3.52↓ 47.30±1.51 46.10±1.87↓
ins3 46.83±2.16 44.77±2.28↓ 53.83±1.27 42.07±3.44↓ 47.70±1.46 45.27±1.36↓
Dim=80 ins1 59.33±2.05 56.97±2.17↓ 62.87±2.01 49.83±3.64↓ 60.77±2.36 57.83±1.67↓
ins2 61.13±2.32 57.33±2.51↓ 65.80±1.66 50.70±4.66↓ 61.13±1.91 57.97±1.87↓
ins3 60.33±2.07 57.43±2.39↓ 65.13±1.52 51.47±4.83↓ 60.90±1.80 57.27±2.10↓
Dim=100 ins1 73.77±2.88 68.50±2.78↓ 75.60±3.28 58.07±4.25↓ 74.30±2.53 69.33±2.41↓
ins2 71.57±2.60 68.90±2.31↓ 73.07±2.19 57.50±3.96↓ 73.70±2.22 69.33±2.26↓
ins3 70.97±3.05 68.07±2.79↓ 70.83±1.24 57.63±4.85↓ 73.07±2.05 69.40±2.12↓
W-D-L 12-0-0 12-0-0 12-0-0
Table 11. Objective values achieved by MEGO+X and the Baselines on the OM Problem. "↑, ↓, →" represents that the corresponding method is significantly better, worse, or not significantly different than the MEGO, respectively.
Problem Instance MEGO+GA GA MEGO+HC HC MEGO+BO BO
Dim=40 ins1 7.62±0.05 7.48±0.13↓ 7.73±0.03 7.38±0.17↓ 7.65±0.08 7.50±0.15↓
ins2 13.35±0.11 13.25±0.16↓ 13.42±0.08 13.15±0.13↓ 13.36±0.12 13.26±0.09↓
ins3 5.98±0.05 5.89±0.08↓ 6.04±0.03 5.83±0.10↓ 5.98±0.05 5.87±0.08↓
Dim=60 ins1 8.89±0.07 8.86±0.09→ 8.95±0.08 8.78±0.14↓ 8.96±0.10 8.89±0.08↓
ins2 7.55±0.11 7.56±0.16→ 7.56±0.13 7.38±0.10↓ 7.59±0.12 7.51±0.11↓
ins3 13.07±0.06 13.04±0.08↓ 13.11±0.05 12.93±0.08↓ 13.05±0.06 13.03±0.07→
Dim=80 ins1 19.32±0.09 19.21±0.10↓ 19.32±0.09 19.04±0.13↓ 19.34±0.09 19.23±0.10↓
ins2 27.59±0.24 27.09±0.70↓ 27.68±0.11 26.52±1.42↓ 27.60±0.22 27.34±0.48↓
ins3 23.38±0.13 23.41±0.19→ 23.33±0.13 22.88±0.33↓ 23.43±0.15 23.36±0.17→
Dim=100 ins1 18.45±0.05 18.45±0.05→ 18.42±0.03 18.35±0.07↓ 18.44±0.05 18.41±0.04↓
ins2 38.34±0.32 37.45±0.93↓ 38.71±0.14 33.69±2.52↓ 38.32±0.39 37.68±0.82↓
ins3 15.34±0.06 15.32±0.06→ 15.36±0.05 15.20±0.08↓ 15.38±0.07 15.34±0.07↓
W-D-L 7-5-0 12-0-0 10-2-0
Table 12. Objective values achieved by MEGO+X and the Baselines on the KP. "↑, ↓, →" represents that the corresponding method is significantly better, worse, or not significantly different than the MEGO, respectively.
Problem Instance MEGO+GA GA MEGO+HC HC MEGO+BO BO
Dim=40 ins1 191.73±3.55 186.97±3.03↓ 196.07±0.36 192.27±4.88↓ 192.50±3.13 186.47±4.18↓
ins2 270.80±2.97 270.70±3.41→ 279.03±1.87 275.27±3.84↓ 271.90±2.34 271.90±2.86→
ins3 140.33±1.14 138.83±2.27↓ 142.57±1.86 139.97±1.92↓ 140.73±1.88 139.83±2.49↓
Dim=60 ins1 447.20±3.11 446.63±4.43→ 456.37±2.95 446.53±4.43↓ 450.00±2.32 448.70±3.22→
ins2 630.97±4.00 633.17±4.04↑ 640.80±4.45 637.40±7.57↓ 634.93±3.20 633.50±4.01→
ins3 472.53±3.37 471.77±4.19→ 479.87±3.65 476.87±7.67↓ 477.13±3.24 473.40±4.04↓
Dim=80 ins1 1062.00±6.61 1055.00±6.81↓ 1075.33±7.59 1061.87±10.22↓ 1063.53±5.94 1056.73±6.45↓
ins2 1077.57±4.88 1073.43±6.64↓ 1091.07±5.64 1082.27±10.70↓ 1078.77±4.39 1074.57±5.59↓
ins3 718.97±5.60 713.43±7.29↓ 740.73±6.86 723.40±11.53↓ 718.77±6.05 715.90±5.04↓
Dim=100 ins1 1446.80±7.90 1446.23±8.85→ 1476.00±7.99 1446.47±13.35↓ 1451.23±8.92 1440.93±8.30↓
ins2 1132.00±7.58 1129.23±9.50→ 1159.43±9.75 1137.13±13.86↓ 1130.37±7.26 1127.17±8.11→
ins3 1392.60±7.94 1382.73±8.50↓ 1409.50±7.73 1388.30±9.46↓ 1395.20±6.88 1384.50±6.38↓
W-D-L 6-5-1 12-0-0 8-4-0
Table 13. Objective values achieved by MEGO+X and the Baselines on the MC Problem. "↑, ↓, →" represents that the corresponding method is significantly better, worse, or not significantly different than the MEGO, respectively.

App. BDetailed Experimental Results on Unseen Problem Classes

App. B.1Objective Values of MEGO and the Baselines

Table 141516 compare the objective values achieved by MEGO and baselines on the CA problem, CIM problem, and AS problem, respectively, while the baselines use the same #FEs as MEGO.

Problem Instance MEGO GA HC BO
Dim=40 ins1 5576.00±0.00 5588.53±16.35↓ 5585.33±17.66→ 5589.60±13.88↓
ins2 6848.00±0.00 6854.13±6.09↓ 6881.87±85.76↓ 6854.40±3.20↓
ins3 5672.00±0.00 5697.07±87.60→ 5755.20±172.59↓ 5974.13±229.91↓
Dim=60 ins1 6366.93±2.72 6396.80±14.98↓ 6422.40±30.80↓ 6400.80±12.79↓
ins2 9580.27±7.08 9598.40±18.29↓ 9641.07±61.27↓ 9604.53±14.71↓
ins3 6264.00±0.00 6277.33±12.45↓ 6299.73±39.99↓ 6280.53±12.03↓
Dim=80 ins1 5244.80±14.69 5317.60±75.45↓ 5557.07±274.31↓ 5318.40±44.42↓
ins2 6136.00±0.00 6218.40±47.87↓ 6346.67±182.97↓ 6218.67±48.72↓
ins3 9156.00±17.00 9217.33±46.42↓ 9361.33±146.79↓ 9225.87±51.38↓
Dim=100 ins1 5579.47±14.85 5601.07±54.21→ 6030.67±454.58↓ 5596.00±56.48→
ins2 4293.33±11.75 4344.27±73.48↓ 5258.93±658.59↓ 4356.80±29.55↓
ins3 61038.93±130.05 61375.20±331.23↓ 62328.00±784.37↓ 61545.60±418.96↓
W-D-L 10-2-0 11-1-0 11-1-0
Table 14. Objective values achieved by MEGO and the Baselines on the CA Problem. "↑, ↓, →" represents that the corresponding method is significantly better, worse, or not significantly different than the MEGO, respectively.
Problem Instance MEGO GA HC BO
Dim=40 ins1 29.99±0.09 29.37±0.43↓ 29.23±1.16↓ 28.82±0.70↓
ins2 33.06±0.36 31.92±0.77↓ 31.51±1.44↓ 31.39±0.69↓
ins3 34.88±0.32 34.15±0.64↓ 33.28±1.66↓ 33.86±0.65↓
Dim=60 ins1 41.95±0.75 40.22±1.13↓ 38.03±1.75↓ 39.91±1.35↓
ins2 56.03±0.67 54.85±1.00↓ 52.95±2.98↓ 54.36±1.13↓
ins3 49.22±0.12 47.89±1.01↓ 46.37±2.83↓ 47.70±0.66↓
Dim=80 ins1 36.19±0.44 35.40±0.59↓ 32.95±1.67↓ 35.50±0.96↓
ins2 82.89±1.10 83.25±1.48→ 73.50±7.43↓ 81.74±1.40↓
ins3 35.08±0.38 34.79±0.51↓ 34.07±1.00↓ 34.64±0.51↓
Dim=100 ins1 62.02±0.40 60.94±0.66↓ 57.07±3.08↓ 60.57±0.50↓
ins2 44.31±0.60 42.53±0.89↓ 40.79±1.54↓ 42.01±0.96↓
ins3 103.53±1.02 101.65±1.59↓ 95.40±5.98↓ 100.94±1.35↓
W-D-L 11-1-0 12-0-0 12-0-0
Table 15. Objective values achieved by MEGO and the Baselines on the CIM Problem. "↑, ↓, →" represents that the corresponding method is significantly better, worse, or not significantly different than the MEGO, respectively.
Problem Instance MEGO GA HC BO
Dim=40 ins1 9815.50±128.94 9558.63±383.73↓ 9225.20±468.86↓ 9269.17±362.24↓
ins2 31081.43±573.42 29898.00±584.94↓ 29304.37±1106.26↓ 29489.83±553.34↓
ins3 21284.20±732.88 20040.63±721.47↓ 18845.70±1630.83↓ 19775.47±641.39↓
Dim=60 ins1 15851.67±208.03 15085.93±328.54↓ 15036.77±587.77↓ 15006.57±413.89↓
ins2 21706.80±391.56 20660.53±573.92↓ 19015.37±1235.88↓ 20483.87±558.73↓
ins3 41145.00±426.39 39396.90±808.88↓ 37288.10±2194.27↓ 38741.37±852.26↓
Dim=80 ins1 42027.97±277.02 41116.67±629.09↓ 38407.73±2398.84↓ 40948.20±536.36↓
ins2 34867.27±426.11 33651.47±759.20↓ 31964.40±1527.77↓ 33362.63±777.73↓
ins3 38326.30±743.44 37328.57±919.31↓ 34838.53±1708.84↓ 36809.03±960.53↓
Dim=100 ins1 50003.80±203.51 49250.83±577.65↓ 46700.20±1655.62↓ 48749.13±404.31↓
ins2 34579.93±836.99 34986.33±1205.57→ 32089.50±1813.94↓ 34446.40±1063.70→
ins3 38252.53±442.20 37462.07±671.42↓ 35738.07±1471.09↓ 37249.10±516.72↓
W-D-L 11-1-0 12-0-0 11-1-0
Table 16. Objective values achieved by MEGO and the Baselines on the AS Problem. "↑, ↓, →" represents that the corresponding method is significantly better, worse, or not significantly different than the MEGO, respectively.

App. B.2Acceleration Ratios of MEGO compared to the Baselines

The comparison results in terms of acceleration ratios on the unseen problem classes are shown in Table 17.

Problem Class Dim MEGO GA HC BO
#FEs #FEs Ratio #FEs Ratio #FEs Ratio
CA 40 108.4 185.16 1.71 141.62 1.31 216.8 2
60 124.76 488.23 3.91 356.16 2.85 499.23 4
80 106.24 571.84 5.38 408.91 3.85 580.84 5.47
100 99.98 304.7 3.05 399.04 3.99 412.5 4.13
CIM 40 134.41 521.99 3.88 348.19 2.59 650.46 4.84
60 122.53 449.29 3.67 540.87 4.41 618.59 5.05
80 110.38 299.79 2.72 615.16 5.57 405.09 3.67
100 135.17 560.06 4.14 726.86 5.38 644.77 4.77
AS 40 114.46 470.99 4.11 402.3 3.51 573.77 5.01
60 120.18 577.58 4.81 514 4.28 656.51 5.46
80 123.02 508.94 4.14 586.01 4.76 581.57 4.73
100 121.01 356.53 2.95 650.8 5.38 463.99 3.83
Avg. Ratio 3.71 3.99 4.41
Table 17. Acceleration Ratios of MEGO compared to the Baselines on Unseen Problem classes.

App. B.3Objective Values of MEGO+X and the Baselines

Table 181920 compare the objective values of MEGO+X and baselines on the CA problem, the CIM problem, and the AS problem, respectively, with the budget of #FEs being 800.

Problem Instance MEGO+GA GA MEGO+HC HC MEGO+BO BO
Dim=40 ins1 5568.80±2.40 5569.87±6.09→ 5568.00±0.00 5568.00±0.00→ 5568.00±0.00 5568.27±1.44→
ins2 6848.00±0.00 6848.53±2.00→ 6848.00±0.00 6848.00±0.00→ 6848.00±0.00 6848.00±0.00→
ins3 5672.00±0.00 5672.00±0.00→ 5672.00±0.00 5672.00±0.00→ 5672.00±0.00 5672.00±0.00→
Dim=60 ins1 6366.13±3.38 6374.13±15.13→ 6361.60±3.20 6370.13±14.00↓ 6363.73±3.99 6367.20±12.28→
ins2 9572.00±4.50 9577.33±10.55↓ 9569.60±3.20 9573.07±5.26↓ 9569.33±2.98 9572.27±3.99↓
ins3 6264.00±0.00 6267.20±7.62→ 6264.00±0.00 6264.00±0.00→ 6264.00±0.00 6264.00±0.00→
Dim=80 ins1 5229.87±8.75 5243.73±21.34↓ 5224.00±0.00 5264.53±121.32↓ 5225.33±4.17 5230.93±13.82↓
ins2 6136.00±0.00 6155.47±29.70↓ 6136.00±0.00 6136.00±0.00→ 6136.00±0.00 6137.33±2.98→
ins3 9133.87±7.43 9149.87±27.24↓ 9126.40±4.33 9128.27±9.12→ 9120.27±4.84 9134.13±9.39↓
Dim=100 ins1 5532.27±18.33 5532.27±25.61→ 5505.07±3.41 5553.60±177.15↓ 5501.07±7.00 5512.53±12.72↓
ins2 4261.07±17.83 4259.73±26.02→ 4240.53±25.29 4244.00±27.07→ 4213.60±12.76 4240.00±12.73↓
ins3 60736.27±159.78 60801.33±257.36→ 60474.93±18.53 60598.67±178.37↓ 60519.73±45.79 60583.73±63.98↓
W-D-L 4-8-0 5-7-0 6-6-0
Table 18. Objective values achieved by MEGO+X and the Baselines on the CA Problem. "↑, ↓, →" represents that the corresponding method is significantly better, worse, or not significantly different than the MEGO, respectively.
Problem Instance MEGO+GA GA MEGO+HC HC MEGO+BO BO
Dim=40 ins1 30.08±0.08 29.94±0.28↓ 30.25±0.09 30.22±0.16→ 30.25±0.13 30.08±0.14↓
ins2 33.59±0.33 33.19±0.46↓ 34.23±0.18 33.70±0.44↓ 33.82±0.26 33.31±0.38↓
ins3 35.92±0.59 35.54±0.62↓ 37.26±0.55 35.91±1.03↓ 36.44±0.53 36.11±0.58↓
Dim=60 ins1 43.92±1.47 43.36±1.61→ 44.48±0.97 42.05±2.05↓ 45.30±1.62 43.63±1.89↓
ins2 57.83±1.05 57.29±1.06↓ 59.52±1.22 57.31±1.90↓ 58.86±0.65 57.86±1.07↓
ins3 49.43±0.20 49.21±0.50→ 49.74±0.18 49.46±0.38↓ 49.70±0.20 49.30±0.29↓
Dim=80 ins1 38.86±1.17 38.50±1.52→ 39.54±1.25 35.22±1.92↓ 39.86±0.58 38.16±1.37↓
ins2 86.28±0.88 85.51±1.18↓ 86.56±1.05 84.11±2.67↓ 86.50±1.19 85.91±0.96↓
ins3 36.56±0.80 36.02±0.80↓ 36.49±0.73 35.49±0.84↓ 37.02±0.45 36.49±0.63↓
Dim=100 ins1 62.65±0.49 62.03±0.63↓ 63.07±0.33 62.01±0.94↓ 62.95±0.52 62.66±0.46↓
ins2 45.22±0.68 44.06±0.94↓ 46.16±0.33 43.26±1.25↓ 45.67±0.49 44.56±0.58↓
ins3 105.91±1.11 104.53±1.43↓ 106.81±1.14 103.03±1.91↓ 106.65±1.29 105.44±0.97↓
W-D-L 9-3-0 11-1-0 12-0-0
Table 19. Objective values achieved by MEGO+X and the Baselines on the CIM Problem. "↑, ↓, →" represents that the corresponding method is significantly better, worse, or not significantly different than the MEGO, respectively.
Problem Instance MEGO+GA GA MEGO+HC HC MEGO+BO BO
Dim=40 ins1 10122.6±308.0 10132.0±442.0→ 10250.2±235.6 9904.1±375.6↓ 10483.1±522.9 10284.1±410.2→
ins2 32099.3±488.9 31534.5±757.5↓ 33702.8±134.5 32850.9±1185.0↓ 32401.5±386.1 31927.1±721.7↓
ins3 22981.1±673.8 22233.3±690.0↓ 24181.8±681.5 22918.7±837.3↓ 23416.9±691.8 22619.5±765.5↓
Dim=60 ins1 16068.2±543.8 15669.4±493.9↓ 16873.6±1073.3 15968.9±396.5↓ 16429.7±717.1 15832.6±66.7↓
ins2 22506.8±416.6 22016.3±711.8↓ 23339.7±187.6 22569.0±953.0↓ 23161.4±285.2 22510.6±443.0↓
ins3 41975.6±682.8 41364.7±964.3↓ 44223.5±369.3 43191.0±751.3↓ 42448.1±506.1 41578.0±739.0↓
Dim=80 ins1 42871.1±507.8 42485.0±729.6↓ 43753.7±405.1 41911.1±863.8↓ 43087.7±357.1 42653.1±395.2↓
ins2 35942.4±689.0 35279.8±574.8↓ 37487.7±410.3 36237.9±888.3↓ 36383.1±463.8 35764.2±523.1↓
ins3 39910.1±772.4 39326.5±959.3↓ 41780.9±797.0 39112.6±1387.1↓ 40444.6±536.5 39927.0±715.5↓
Dim=100 ins1 50766.4±341.6 50292.8±427.3↓ 51768.9±219.3 49399.4±894.6↓ 50967.9±283.4 50570.9±439.7↓
ins2 37678.3±1118.5 37481.3±1258.8→ 38316.5±1242.2 35748.0±1389.8↓ 38641.3±893.5 37619.1±874.4↓
ins3 39525.2±707.4 39238.8±806.2→ 40665.6±685.8 38369.1±1309.5↓ 39772.6±679.6 39267.1±794.8↓
W-D-L 9-3-0 12-0-0 11-1-0
Table 20. Objective values achieved by MEGO+X and the Baselines on the AS Problem. "↑, ↓, →" represents that the corresponding method is significantly better, worse, or not significantly different than the MEGO, respectively.

App. CDetailed Experimental Results for Component Study

App. C.1Comparison with Other Expert Selection Strategies

We compare our proposed MEGO method with several alternative expert selection strategies. The methods included in the comparison are:

  • MAX: The maximum value among the optimal solutions obtained by all experts (The best-case scenario while select one expert).

  • MEGO: The best solution from the set of experts selected by the MEGO strategy.

  • SAMPLE: The best solution from a randomly sampled set of experts, where the sample size matches the number selected by MEGO. The reported result is the average over 10,000 independent sampling trials (Randomly select multiple experts).

  • MEAN: The mean value of the optimal solutions obtained by all experts (Randomly select only one expert).

  • MIN: The minimum value among the optimal solutions obtained by all experts (The worst-case scenario while select one expert).

The experimental settings are configured as follows. For MEGO and SAMPLE, 64 randomly sampled solutions are used for fine-tuning. Experts are selected based on similarity, with each selected expert generating 4 new solutions. On average, MEGO selects 14 experts. For MAX, MEAN, and MIN, 116 randomly sampled solutions are used for fine-tuning, with each expert also generating 4 new solutions.

All comparative results are presented in Table 21-26. For a robust evaluation, each method was executed for 30 independent runs on every problem instance. The table lists the mean and standard deviation of the performance across these runs. Furthermore, we conducted the Wilcoxon rank-sum test (at a \(0.05\) significance level) to statistically compare the results of MEGO against each of the other strategies per instance. The outcomes of these significance tests are annotated within the table.

Problem Instance MEGO MAX SAMPLE MEAN MIN
Dim=40 ins1 31.17±1.04 34.60±0.84↑ 30.77±0.46↓ 26.60±0.51↓ 13.73±1.61↓
ins2 32.57±1.12 33.73±0.77↑ 31.66±0.68↓ 27.01±0.33↓ 15.23±0.99↓
ins3 29.77±1.12 31.97±1.30↑ 29.61±0.43→ 24.96±0.57↓ 12.80±1.14↓
Dim=60 ins1 44.17±1.29 45.83±1.46↑ 44.47±0.94→ 37.88±0.43↓ 25.77±1.89↓
ins2 44.60±1.36 47.70±0.97↑ 44.13±1.08→ 38.99±0.56↓ 22.53±2.28↓
ins3 43.07±1.15 46.87±1.73↑ 42.83±0.83→ 37.67±0.61↓ 22.33±1.78↓
Dim=80 ins1 55.37±2.47 57.10±1.30↑ 56.22±1.30↑ 46.34±0.64↓ 33.20±2.87↓
ins2 52.57±2.65 57.03±1.58↑ 53.29±0.81→ 47.24±0.73↓ 30.70±4.17↓
ins3 56.73±1.95 56.60±1.69→ 57.13±0.79→ 46.61±0.70↓ 31.20±1.70↓
Dim=100 ins1 69.93±2.06 70.23±1.80→ 68.64±1.53↓ 59.25±0.61↓ 42.50±2.74↓
ins2 66.80±2.07 68.10±1.19↑ 65.32±1.09↓ 60.02±0.51↓ 45.20±2.59↓
ins3 63.93±1.82 71.20±2.57↑ 64.14±0.85→ 59.57±0.51↓ 40.80±2.41↓
W-D-L 0-2-10 4-7-1 12-0-0 12-0-0
Table 21. Comparative Performance of Expert Selection Strategies on the OM Problem "↑, ↓, →" represents that the corresponding strategy is significantly better, worse, or not significantly different than the MEGO, respectively.
Problem Instance MEGO MAX SAMPLE MEAN MIN
Dim=40 ins1 138.43±1.09 138.23±0.62→ 138.41±0.94→ 131.50±0.61↓ 115.90±2.43↓
ins2 185.63±3.86 181.70±1.16↓ 185.45±2.45→ 173.00±0.69↓ 158.10±2.10↓
ins3 265.70±2.24 267.43±2.38↑ 264.35±1.18↓ 258.75±0.80↓ 243.43±1.84↓
Dim=60 ins1 466.30±1.59 472.17±2.66↑ 466.98±1.46→ 459.38±1.07↓ 441.67±4.57↓
ins2 441.47±1.98 444.67±2.36↑ 441.20±1.16→ 435.40±0.73↓ 417.43±3.69↓
ins3 623.77±3.15 627.93±2.74↑ 624.27±2.00→ 613.58±0.80↓ 598.97±2.48↓
Dim=80 ins1 1067.53±4.39 1077.80±1.62↑ 1066.25±2.87→ 1057.57±1.10↓ 1033.50±4.22↓
ins2 708.80±5.54 713.27±4.07↑ 708.30±2.82→ 694.79±1.38↓ 675.33±4.29↓
ins3 1050.10±4.72 1064.77±4.86↑ 1049.59±3.56→ 1040.42±1.37↓ 1010.27±5.60↓
Dim=100 ins1 1383.23±6.64 1380.93±4.49→ 1382.11±5.20→ 1361.50±1.55↓ 1329.40±5.96↓
ins2 1114.13±7.01 1115.03±5.28→ 1113.81±5.12→ 1092.66±1.82↓ 1048.53±16.30↓
ins3 1422.03±5.65 1446.90±7.44↑ 1423.82±4.48→ 1420.46±1.49↓ 1388.37±7.16↓
W-D-L 1-3-8 1-11-0 12-0-0 12-0-0
Table 22. Comparative Performance of Expert Selection Strategies on the MC Problem "↑, ↓, →" represents that the corresponding strategy is significantly better, worse, or not significantly different than the MEGO, respectively.
Problem Instance MEGO MAX SAMPLE MEAN MIN
Dim=40 ins1 13.14±0.09 13.18±0.11→ 13.13±0.07→ 12.58±0.10↓ 10.38±0.99↓
ins2 7.47±0.11 7.44±0.10→ 7.44±0.08→ 6.99±0.04↓ 6.45±0.15↓
ins3 5.91±0.03 5.88±0.07↓ 5.90±0.02↓ 5.59±0.02↓ 5.16±0.11↓
Dim=60 ins1 7.42±0.08 7.55±0.08↑ 7.43±0.07→ 7.19±0.03↓ 6.68±0.13↓
ins2 12.97±0.07 12.98±0.06→ 12.96±0.04→ 12.68±0.04↓ 11.72±0.50↓
ins3 8.81±0.09 8.94±0.05↑ 8.76±0.05↓ 8.62±0.03↓ 8.16±0.13↓
Dim=80 ins1 25.92±0.66 26.84±0.50↑ 25.72±0.52→ 23.30±0.22↓ 18.68±1.10↓
ins2 19.22±0.06 19.16±0.07↓ 19.18±0.05↓ 18.84±0.03↓ 18.16±0.43↓
ins3 23.09±0.11 23.22±0.11↑ 23.11±0.09→ 22.49±0.14↓ 18.43±1.34↓
Dim=100 ins1 36.08±1.09 38.34±0.40↑ 36.34±0.53→ 33.09±0.35↓ 27.42±2.36↓
ins2 18.37±0.05 18.44±0.05↑ 18.37±0.04→ 18.23±0.02↓ 17.88±0.11↓
ins3 15.29±0.06 15.36±0.01↑ 15.28±0.05→ 15.07±0.02↓ 14.63±0.11↓
W-D-L 2-3-7 3-9-0 12-0-0 12-0-0
Table 23. Comparative Performance of Expert Selection Strategies on the KP Problem "↑, ↓, →" represents that the corresponding strategy is significantly better, worse, or not significantly different than the MEGO, respectively.
Problem Instance MEGO MAX SAMPLE MEAN MIN
Dim=40 ins1 30853.00±574.56 31482.30±444.39↑ 30919.37±369.48→ 29155.88±118.00↓ 25392.37±1172.58↓
ins2 9607.90±226.70 10318.67±404.00↑ 9700.72±100.88↑ 9241.11±47.31↓ 8074.47±350.89↓
ins3 20980.47±649.65 22438.57±411.74↑ 20999.54±415.19→ 20223.49±132.82↓ 17039.57±763.12↓
Dim=60 ins1 41377.20±566.66 40461.13±548.90↓ 41299.70±548.30→ 37833.08±249.60↓ 32013.80±777.93↓
ins2 15869.67±334.65 15874.80±33.71↑ 15849.54±225.94→ 14993.89±82.22↓ 12910.67±370.24↓
ins3 21906.00±474.12 22123.67±302.30↑ 21627.20±231.31↓ 20319.40±119.37↓ 17652.27±512.44↓
Dim=80 ins1 37958.10±627.32 39200.50±473.13↑ 37984.36±375.24→ 36287.61±155.85↓ 32447.93±895.56↓
ins2 42017.37±335.69 41976.50±207.68→ 41961.31±281.80→ 40249.77±168.64↓ 35841.70±2290.94↓
ins3 34970.57±384.71 35889.37±356.42↑ 34903.06±334.73→ 33319.74±158.18↓ 30138.20±649.21↓
Dim=100 ins1 49924.53±189.62 50589.23±219.52↑ 49927.39±170.94→ 49066.97±109.86↓ 45824.23±1449.81↓
ins2 34598.37±628.39 38340.97±728.83↑ 35012.55±394.32↑ 35057.01±204.88↑ 31694.27±609.80↓
ins3 38270.53±349.64 39739.87±609.75↑ 38240.96±254.45→ 37171.64±117.46↓ 34206.00±531.95↓
W-D-L 1-1-10 1-9-2 11-0-1 12-0-0
Table 24. Comparative Performance of Expert Selection Strategies on the AS Problem "↑, ↓, →" represents that the corresponding strategy is significantly better, worse, or not significantly different than the MEGO, respectively.
Problem Instance MEGO MAX SAMPLE MEAN MIN
Dim=40 ins1 32.97±0.33 32.97±0.27→ 32.88±0.26→ 30.96±0.20↓ 25.07±1.69↓
ins2 29.99±0.10 29.90±0.08↓ 30.00±0.08→ 28.76±0.16↓ 23.21±2.40↓
ins3 35.18±0.45 35.37±0.34→ 35.07±0.32→ 33.46±0.14↓ 31.30±0.66↓
Dim=60 ins1 56.02±0.67 56.73±0.81↑ 55.79±0.40↓ 53.84±0.28↓ 49.80±2.18↓
ins2 41.62±0.76 44.00±1.21↑ 42.28±0.37↑ 40.34±0.26↓ 37.34±0.95↓
ins3 49.15±0.16 48.67±0.37↓ 49.16±0.11→ 46.48±0.17↓ 40.24±2.59↓
Dim=80 ins1 83.31±0.94 84.01±0.67↑ 83.16±0.78→ 79.92±0.57↓ 66.56±3.93↓
ins2 36.67±1.21 38.92±0.72↑ 36.46±0.32↑ 35.51±0.26↓ 31.76±0.86↓
ins3 35.29±0.39 36.50±0.44↑ 35.25±0.23→ 34.85±0.13↓ 33.36±0.36↓
Dim=100 ins1 43.99±0.53 44.18±0.46→ 43.95±0.47→ 41.63±0.28↓ 37.20±1.34↓
ins2 61.85±0.25 61.69±0.46↓ 61.79±0.21→ 59.81±0.17↓ 56.24±2.70↓
ins3 103.57±0.90 106.40±0.79↑ 103.39±0.84→ 101.09±0.42↓ 93.91±2.42↓
W-D-L 3-3-6 1-9-2 12-0-0 12-0-0
Table 25. Comparative Performance of Expert Selection Strategies on the CIM Problem "↑, ↓, →" represents that the corresponding strategy is significantly better, worse, or not significantly different than the MEGO, respectively.
Problem Instance MEGO MAX SAMPLE MEAN MIN
Dim=40 ins1 -5582.13±12.34 -5576.00±0.00→ -5576.62±0.96↓ -5667.26±6.92↓ -6264.00±0.00↓
ins2 -6848.00±0.00 -6848.00±0.00→ -6850.69±1.17↓ -6996.09±19.69↓ -7453.87±46.05↓
ins3 -5672.00±0.00 -5672.00±0.00→ -5672.10±0.27↓ -6016.24±48.30↓ -7496.27±682.51↓
Dim=60 ins1 -6367.47±2.00 -6367.73±1.44→ -6371.67±4.19↓ -6428.80±8.51↓ -6621.07±149.97↓
ins2 -6264.53±2.87 -6264.00±0.00→ -6264.19±0.50↓ -6355.87±26.70↓ -6897.87±377.92↓
ins3 -9587.20±9.14 -9584.80±7.55→ -9585.47±3.50→ -9723.64±66.56↓ -11784.00±1523.08↓
Dim=80 ins1 -9210.40±47.61 -9149.87±8.75↑ -9189.60±10.47→ -9265.23±26.95↓ -9712.00±665.96↓
ins2 -6186.93±27.28 -6155.73±17.74↑ -6171.74±6.83↑ -6279.74±16.90↓ -6581.33±271.25↓
ins3 -5252.27±17.00 -5261.87±16.12↓ -5243.46±6.10→ -5600.49±58.87↓ -6689.87±458.82↓
Dim=100 ins1 -61025.33±167.94 -60726.13±67.37↑ -61114.60±92.51↓ -61753.36±93.29↓ -64821.87±754.64↓
ins2 -4297.60±13.29 -4295.47±17.27→ -4318.57±14.43↓ -4466.67±24.41↓ -5090.13±357.45↓
ins3 -5565.33±18.16 -5534.13±9.39↑ -5569.89±10.40→ -5712.57±28.20↓ -6585.87±283.88↓
W-D-L 1-7-4 7-4-1 12-0-0 12-0-0
Table 26. Comparative Performance of Expert Selection Strategies on the CA Problem "↑, ↓, →" represents that the corresponding strategy is significantly better, worse, or not significantly different than the MEGO, respectively.

App. C.2Performance Comparison in Source Space vs. Latent Space

We compare the performance of our proposed method when searching in two distinct spaces: the source problem solution space and a learned latent space. The two compared strategies are defined as follows:

  • Source Space: The MEGO method is applied to search directly in the source problem solution space, where 2,000,000 solutions are randomly sampled and evaluated.

  • Latent Space: The search is performed directly in the latent space of a pretrained VAE. Initially, 1,024 random latent points are sampled and decoded into solutions. The objective function is defined as min \(-y^\prime\), and gradient descent is run for 1,954 steps, resulting in a total of 2,000,896 solution evaluations.

All comparative results are summarized in Table 27-32. Each strategy was run independently 30 times per problem instance. The table reports the mean and standard deviation of the obtained performance. To assess statistical significance, the Wilcoxon rank-sum test (with a significance level of 0.05) was conducted between the results of the two strategies for each instance, and the outcomes are annotated accordingly in the table.

Problem Instance Source Space Latent Space
Dim=40 ins1 30.93±1.00 32.63±0.71↑
ins2 31.53±1.02 30.87±1.09↓
ins3 31.40±1.31 30.30±1.16↓
Dim=60 ins1 44.43±1.31 40.63±0.87↓
ins2 42.53±1.38 39.27±1.15↓
ins3 43.53±1.31 40.10±1.27↓
Dim=80 ins1 54.10±2.61 50.53±2.32↓
ins2 55.00±1.51 54.23±1.54→
ins3 56.67±1.89 52.67±1.49↓
Dim=100 ins1 67.80±3.26 61.40±2.36↓
ins2 66.03±2.30 62.77±0.67↓
ins3 64.33±1.37 62.13±1.91↓
W-D-L 10-1-1
Table 27. Comparative Performance of Different Search Space for MEGO on the OM Problem "↑, ↓, →" represents that the Latent Space is significantly better, worse, or not significantly different than the Source Space, respectively.
Problem Instance Source Space Latent Space
Dim=40 ins1 138.20±1.08 138.47±1.20→
ins2 186.00±3.80 188.00±4.27→
ins3 264.60±2.14 264.90±2.41→
Dim=60 ins1 464.97±2.44 461.17±4.10↓
ins2 441.30±1.81 442.43±3.38→
ins3 622.87±2.51 622.20±3.12↓
Dim=80 ins1 1067.97±3.90 1068.20±4.35→
ins2 710.57±7.29 704.27±6.07↓
ins3 1045.20±5.01 1041.30±6.02↓
Dim=100 ins1 1379.70±5.97 1371.40±8.01↓
ins2 1108.73±5.15 1107.37±7.09→
ins3 1424.13±6.58 1421.87±5.38→
W-D-L 5-7-0
Table 28. Comparative Performance of Different Search Space for MEGO on the MC Problem "↑, ↓, →" represents that the Latent Space is significantly better, worse, or not significantly different than the Source Space, respectively.
Problem Instance Source Space Latent Space
Dim=40 ins1 13.11±0.08 12.92±0.16↓
ins2 7.48±0.10 7.42±0.16↓
ins3 5.90±0.05 5.73±0.10↓
Dim=60 ins1 7.39±0.08 7.34±0.04↓
ins2 12.96±0.06 12.90±0.07↓
ins3 8.71±0.09 8.68±0.07↓
Dim=80 ins1 25.90±0.94 23.64±1.13↓
ins2 19.18±0.07 19.09±0.08↓
ins3 23.16±0.11 23.07±0.14↓
Dim=100 ins1 36.42±0.88 36.23±1.14→
ins2 18.36±0.03 18.35±0.06→
ins3 15.27±0.04 15.19±0.06↓
W-D-L 10-2-0
Table 29. Comparative Performance of Different Search Space for MEGO on the KP Problem "↑, ↓, →" represents that the Latent Space is significantly better, worse, or not significantly different than the Source Space, respectively.
Problem Instance Source Space Latent Space
Dim=40 ins1 30992.93±532.20 30458.60±397.02↓
ins2 9745.73±220.71 9446.10±278.16↓
ins3 21265.60±850.30 19130.20±584.08↓
Dim=60 ins1 40968.03±432.25 38448.90±993.37↓
ins2 15914.53±293.09 15713.23±448.60↓
ins3 21832.03±465.00 21010.53±127.74↓
Dim=80 ins1 38340.23±698.99 37004.30±1320.68↓
ins2 41911.77±299.68 41540.17±432.21↓
ins3 34882.03±435.98 33295.30±751.07↓
Dim=100 ins1 49929.23±227.46 49405.23±177.34↓
ins2 34673.20±834.20 34551.93±505.71→
ins3 38359.80±485.44 39045.13±704.90↑
W-D-L 10-1-1
Table 30. Comparative Performance of Different Search Space for MEGO on the AS Problem "↑, ↓, →" represents that the Latent Space is significantly better, worse, or not significantly different than the Source Space, respectively.
Problem Instance Source Space Latent Space
Dim=40 ins1 32.97±0.36 32.29±0.36↓
ins2 29.96±0.09 29.30±0.35↓
ins3 34.85±0.32 34.23±0.30↓
Dim=60 ins1 55.83±0.71 54.79±0.82↓
ins2 41.62±0.76 42.45±1.36↑
ins3 49.10±0.12 48.83±0.40↓
Dim=80 ins1 83.27±1.01 80.90±1.81↓
ins2 36.04±0.38 35.58±1.06→
ins3 35.20±0.36 34.78±0.66↓
Dim=100 ins1 44.36±0.82 42.94±0.73↓
ins2 61.92±0.32 61.25±0.47↓
ins3 103.35±0.85 100.69±1.13↓
W-D-L 10-1-1
Table 31. Comparative Performance of Different Search Space for MEGO on the CIM Problem "↑, ↓, →" represents that the Latent Space is significantly better, worse, or not significantly different than the Source Space, respectively.
Problem Instance Source Space Latent Space
Dim=40 ins1 -5575.73±1.44 -5597.60±18.49↓
ins2 -6848.00±0.00 -6849.87±4.92→
ins3 -5672.00±0.00 -5675.20±15.81→
Dim=60 ins1 -6368.80±4.31 -6397.33±10.80↓
ins2 -6265.07±3.99 -6264.00±0.00→
ins3 -9580.53±7.36 -9608.27±18.87↓
Dim=80 ins1 -9165.33±26.64 -9177.33±22.16↓
ins2 -6204.27±14.57 -6265.60±53.76↓
ins3 -5242.93±14.23 -5298.13±32.46↓
Dim=100 ins1 -61057.87±101.17 -61284.00±96.57↓
ins2 -4355.20±41.39 -4462.40±122.56↓
ins3 -5589.33±11.75 -5582.93±35.04→
W-D-L 8-4-0
Table 32. Comparative Performance of Different Search Space for MEGO on the CA Problem "↑, ↓, →" represents that the Latent Space is significantly better, worse, or not significantly different than the Source Space, respectively.

App. C.3Ablation Study on the Solution Mapping Process

We compare the performance of the MEGO framework under two configurations to assess the contribution of its core solution mapping process. The two compared settings are defined as follows:

  • Mapping: The standard MEGO procedure.

  • No Mapping: An ablated version where the fine-tuning and solution mapping steps are omitted. After experts are selected, new solutions are sampled directly in the source problem's solution space. These solutions are then truncated or zero-padded to match the target problem's dimension. The top- \(k\) solutions are selected, which are ranked by their performance on the expert models, are finally evaluated on the actual target problem instance.

All comparative results are presented in Table 34-36. Each configuration was executed for 30 independent runs on every problem instance. The table reports the mean and standard deviation of the performance. To determine statistical significance, the Wilcoxon rank-sum test (at a 0.05 significance level) was conducted between the results of the two configurations for each instance, and the outcomes are indicated within the table.

Problem Instance Mapping No Mapping
Dim=40 ins1 138.20±1.08 135.77±1.45↓
ins2 186.00±3.80 178.60±2.06↓
ins3 264.60±2.14 263.87±2.47→
Dim=60 ins1 464.97±2.44 458.60±3.00↓
ins2 441.30±1.81 437.57±2.49↓
ins3 622.87±2.51 616.37±2.98↓
Dim=80 ins1 1067.97±3.90 1042.50±3.93↓
ins2 710.57±7.29 683.37±5.13↓
ins3 1045.20±5.01 1038.03±5.34↓
Dim=100 ins1 1379.70±5.97 1346.53±7.05↓
ins2 1108.73±5.15 1009.57±15.53↓
ins3 1424.13±6.58 1238.70±41.32↓
W-D-L 11-1-0
Table 33. Comparative Performance of Mapping of Not in MEGO on the MC Problem "↑, ↓, →" represents that the No Mapping Result is significantly better, worse, or not significantly different than the Mapping Result, respectively.
Problem Instance Mapping No Mapping
Dim=40 ins1 30.93±1.00 26.90±1.83↓
ins2 31.53±1.02 29.40±1.14↓
ins3 31.40±1.31 27.90±1.11↓
Dim=60 ins1 44.43±1.31 38.30±0.90↓
ins2 42.53±1.38 37.67±1.11↓
ins3 43.53±1.31 37.57±1.02↓
Dim=80 ins1 54.10±2.61 43.00±1.10↓
ins2 55.00±1.51 47.40±1.38↓
ins3 56.67±1.89 52.37±1.20↓
Dim=100 ins1 67.80±3.26 52.70±1.29↓
ins2 66.03±2.30 62.70±1.51↓
ins3 64.33±1.37 63.10±1.14↓
W-D-L 12-0-0
Table 34. Comparative Performance of Mapping of Not in MEGO on the OM Problem "↑, ↓, →" represents that the No Mapping Result is significantly better, worse, or not significantly different than the Mapping Result, respectively.
Problem Instance Mapping No Mapping
Dim=40 ins1 32.97±0.36 31.15±0.93↓
ins2 29.96±0.09 29.83±0.10↓
ins3 34.85±0.32 33.82±0.52↓
Dim=60 ins1 55.83±0.71 50.10±0.95↓
ins2 41.62±0.76 39.08±0.77↓
ins3 49.10±0.12 43.67±0.82↓
Dim=80 ins1 83.27±1.01 56.89±1.70↓
ins2 36.04±0.38 27.30±1.30↓
ins3 35.20±0.36 32.85±0.65↓
Dim=100 ins1 44.36±0.82 41.46±0.55↓
ins2 61.92±0.32 39.11±0.97↓
ins3 103.35±0.85 65.32±1.62↓
W-D-L 12-0-0
Table 35. Comparative Performance of Mapping of Not in MEGO on the CIM Problem "↑, ↓, →" represents that the No Mapping Result is significantly better, worse, or not significantly different than the Mapping Result, respectively.
Problem Instance Mapping No Mapping
Dim=40 ins1 -5575.73±1.44 -5580.27±10.88→
ins2 -6848.00±0.00 -6854.13±9.39↓
ins3 -5672.00±0.00 -5672.00±0.00→
Dim=60 ins1 -6368.80±4.31 -6522.13±11.49↓
ins2 -6265.07±3.99 -6314.13±5.44↓
ins3 -9580.53±7.36 -9620.53±21.33↓
Dim=80 ins1 -9165.33±26.64 -12887.47±33.05↓
ins2 -6204.27±14.57 -6179.20±43.31↑
ins3 -5242.93±14.23 -5528.80±133.14↓
Dim=100 ins1 -61057.87±101.17 -66536.00±0.00↓
ins2 -4355.20±41.39 -5939.20±19.33↓
ins3 -5589.33±11.75 -5987.73±6.77↓
W-D-L 9-2-1
Table 36. Comparative Performance of Mapping of Not in MEGO on the CA Problem "↑, ↓, →" represents that the No Mapping Result is significantly better, worse, or not significantly different than the Mapping Result, respectively.
Problem Instance Mapping No Mapping
Dim=40 ins1 30992.93±532.20 29233.20±575.12↓
ins2 9745.73±220.71 9374.97±407.48↓
ins3 21265.60±850.30 20593.90±686.01↓
Dim=60 ins1 40968.03±432.25 32584.50±885.95↓
ins2 15914.53±293.09 15149.37±269.51↓
ins3 21832.03±465.00 19855.93±522.65↓
Dim=80 ins1 38340.23±698.99 29163.37±1490.43↓
ins2 41911.77±299.68 33200.30±833.80↓
ins3 34882.03±435.98 30520.87±527.08↓
Dim=100 ins1 49929.23±227.46 37319.30±725.90↓
ins2 34673.20±834.20 18924.40±915.72↓
ins3 38359.80±485.44 35121.73±670.46↓
W-D-L 12-0-0
Table 37. Comparative Performance of Mapping of Not in MEGO on the AS Problem "↑, ↓, →" represents that the No Mapping Result is significantly better, worse, or not significantly different than the Mapping Result, respectively.
Problem Instance Mapping No Mapping
Dim=40 ins1 13.11±0.08 13.09±0.16→
ins2 7.48±0.10 7.18±0.12↓
ins3 5.90±0.05 5.67±0.07↓
Dim=60 ins1 7.39±0.08 7.29±0.06↓
ins2 12.96±0.06 12.75±0.05↓
ins3 8.71±0.09 8.55±0.08↓
Dim=80 ins1 25.90±0.94 16.81±0.66↓
ins2 19.18±0.07 17.65±0.57↓
ins3 23.16±0.11 17.71±0.56↓
Dim=100 ins1 36.42±0.88 17.82±0.75↓
ins2 18.36±0.03 16.49±0.66↓
ins3 15.27±0.04 15.14±0.08↓
W-D-L 11-1-0
Table 38. Comparative Performance of Mapping of Not in MEGO on the KP Problem "↑, ↓, →" represents that the No Mapping Result is significantly better, worse, or not significantly different than the Mapping Result, respectively.

App. DFurther Discussion on Non-Arbitrary Regularities and an Additional Experiment on Arbitrary Random Binary Functions

App. D.1Non-Arbitrary Regularities Across Problem Classes

In the main text, we argue that transfer in MEGO is plausible because practical binary optimization problems often exhibit some coarse-grained reusable structure (regularities) in their solution-quality landscapes. Here we further elaborate on what such structure may look like in the present experiments.

First, variable importance is often highly heterogeneous: some binary decisions are much more influential than others. In generalized OM, the problem provides a clear bit-level signal, because matching certain positions of the hidden reference vector directly improves the objective value. In KP, different items have very different value/weight trade-offs, so their usefulness is far from uniform. In CA, compiler flags also differ greatly in impact: a small number of flags can be highly influential, while many others have weak or even harmful effects. In CIM and AS, different nodes or anchors likewise have very different marginal utilities. Thus, good solutions are typically not formed by treating all variables as equally important.

Second, the effect of one binary decision often depends strongly on the others, rather than being simply additive. In MC, whether selecting a vertex is useful depends on how it relates to the other selected and unselected vertices. In KP, whether an item is worth selecting depends not only on its own value, but also on the remaining budget after other items have been chosen. In CA, compiler flags often interact strongly, so the effect of enabling one flag depends on which others are enabled. In CIM, two seed nodes may either overlap heavily in influence or complement each other. In AS, two anchors may cover highly overlapping subsets of problems or provide complementary coverage. Therefore, the quality contribution of a single bit often cannot be understood in isolation.

Third, good solutions often correspond to selecting a limited compatible subset rather than turning on bits indiscriminately. This is explicit in KP, constrained MC, CIM, and AS, all of which involve size or budget constraints. Although CA has no explicit cardinality constraint, it empirically also exhibits the pattern that only a relatively small compatible subset of flags is useful, and indiscriminately enabling many flags does not continue to improve performance. In this sense, good solutions are sparse but coordinated subsets of decisions.

These regularities are more naturally described at the level of coarse structural tendencies in the solution-quality landscape, rather than as explicit recurring 0-1 patterns that can be directly interpreted. Accordingly, what MEGO appears to exploit is a transferable bias toward certain kinds of structured solution landscapes, such as non-uniform variable importance, interaction-sensitive decisions, and sparse but compatible decision subsets.

App. D.2Additional Experiment on Arbitrary Random Binary Functions

We additionally conducted an experiment in which the target problem instance is an arbitrary random binary function. For each binary solution, we convert its 0-1 string into a hash value using the BLAKE2b function, interpret the hash value as an integer random seed, initialize a pseudo-random number generator with this seed, and define the objective value as the first random number generated from it. Thus, each solution deterministically corresponds to one pseudo-random objective value, while nearby solutions need not bear any meaningful structural relation to each other. Note this experiment is not intended to model a practical application problem. Rather, it serves as a boundary-case test in which the target objective lacks reusable structure that can be shared with the available expert pool.

We compare MEGO with GA, HC, BO, and an additional RANDOM baseline. The RANDOM baseline samples candidate solutions uniformly at random. For a fair comparison, all methods are run with the same #FEs as MEGO. Each method is repeated for 30 independent runs, and the mean and standard deviation of the best objective values are reported.

Method Mean STD Wilcoxon Sign-Rank Test (vs. MEGO)
MEGO 0.988660 0.005585
GA 0.991193 0.007097 no significant difference
HC 0.991391 0.009887 no significant difference
BO 0.981913 0.015662 no significant difference
RANDOM 0.992004 0.007142 MEGO is worse
Table 39. Performance comparison on an arbitrary random binary function. All methods are repeated for 30 independent runs. Mean and STD report the best objective values obtained over these runs, where larger values are better. The last column reports the Wilcoxon rank-sum test against MEGO at the 0.05 significance level.

As shown in Table 39, MEGO is not significantly better than GA, HC, or BO in this experiment, and is even significantly worse than RANDOM. This result is consistent with the interpretation in the main manuscript: when reusable structure is absent, transfer in MEGO is no longer meaningful and negative transfer may occur.