The Challenge of Permutation Spaces in Bayesian Optimization
Bayesian Optimization (BO) is a highly effective strategy for optimizing expensive, "black-box" functions, such as physical experiments or complex simulations. While BO excels in continuous spaces, it historically struggles with permutations—problems where the objective is to find the optimal ordering of items, such as scheduling, circuit layout, or the Traveling Salesman Problem.
The current state-of-the-art approach for permutations relies on the Mallows kernel, which uses pairwise comparisons. To represent a permutation of $n$ items, it evaluates every possible pair, resulting in $O(n^2)$ features. As $n$ grows, this dense representation becomes massive and redundant. For instance, a problem with 280 items requires over 39,000 features under the Mallows kernel. This "curse of dimensionality" makes standard BO surrogate models, like Gaussian Processes, computationally sluggish and statistically inefficient.
A Novel Shift: Sorting as Featurization
To break this barrier, researchers propose a novel framework that transforms sorting algorithms into scalable kernels. The core insight is that any comparison-based sorting algorithm follows a sequence of binary decisions. By recording the outcome of every comparison made during the sort, you generate a bit-vector that uniquely identifies that specific permutation.
The Merge Kernel
While the classic Mallows kernel can be viewed as a derivative of "Enumeration Sort" (comparing everything to everything), the authors instantiate their new framework using Merge Sort.
Because Merge Sort operates with an $O(n \log n)$ complexity, the resulting feature vector is significantly shorter than the Mallows version while remaining "lossless"—meaning the permutation can be perfectly reconstructed from the bits. To ensure the kernel functions properly, the authors implement a "stabilized" Merge Sort that enforces a fixed comparison path. This guarantees that the feature indices consistently encode the same structural decisions across different permutations. These compact feature vectors are then integrated into a standard Radial Basis Function (RBF) kernel for use within a Gaussian Process.
Key Insights and Performance
The authors evaluated their approach on a mix of classic low-dimensional benchmarks ($n=15$ to $30$), such as the Traveling Salesman Problem (TSP) and Quadratic Assignment (QAP), as well as high-dimensional benchmarks ($n=280$) like the Traveling Thief Problem (TTP).
Information-Theoretic Efficiency
The theoretical minimum number of bits needed to distinguish between $n!$ permutations is $n \log n$. By utilizing Merge Sort, the authors have created the most compact possible lossless representation for a permutation kernel. They also proved that this success is tied to the hierarchical structure of Merge Sort, which captures essential "local" information, rather than just the shortened vector length (a "Random Comparison" baseline performed significantly worse).
Superior Scalability and Results
The dimensionality reduction achieved by the Merge Kernel is drastic.
- Massive Compression: In the 280-dimensional TTP tasks, the Merge Kernel's feature vector was roughly 20 times smaller than the Mallows kernel (2,009 vs. 39,060 features).
- High-Dimensional Dominance: In these large-scale settings, the algorithm using the Merge Kernel (MergeBO) significantly outperformed Mallows-based BO and TuRBO in both final regret (proximity to the optimum) and convergence speed.
- Low-Dimensional Competitiveness: In smaller problems ($n=15$), the Mallows kernel maintains a slight edge due to its "right-invariance" property (distance between orderings doesn't change if items are re-labeled). However, as $n$ approaches 30, the two methods become comparable, and beyond that, the Merge Kernel takes the definitive lead.
Limitations and Future Directions
While highly scalable, the Merge Kernel does have minor limitations. In very low dimensions, it can be slightly slower than Mallows due to the computational overhead of recursive function calls in Python. Additionally, the sacrifice of full right-invariance might be a drawback for specific highly symmetric problems.
Moving forward, the authors suggest exploring other sorting structures, such as Bitonic Sort (sorting networks), which inherently possess fixed comparison paths. They also aim to apply this scalable framework to "Combinatorial Neural Architecture Search," optimizing the order of layers or operations in large neural networks.
Summary updated