Abstract
This position paper argues that the next frontier for Black-Box Optimization (BBO) lies in foundational models like Transformers and Large Language Models (LLMs). By treating optimization as a sequence-modeling task, we can move beyond rigid, manually-designed algorithms toward flexible, "world-aware" optimizers that leverage text, code, and historical data to solve complex real-world problems.
The Problem with Traditional BBO
Black-Box Optimization (BBO) is the "engine" behind many modern breakthroughs, from tuning neural network hyperparameters to designing new drugs. In BBO, we attempt to find the best input for a function where the internal mechanics are unknown—we only observe the output feedback.
Traditionally, BBO relies on human-designed "priors"—assumptions about how the function behaves (e.g., assuming it is smooth). However, manually designing these priors is difficult and often fails when moving between different types of tasks. While "learning to optimize" (meta-learning) was proposed as a solution, it has struggled with three main issues:
- Meta-overfitting: Models become too specialized to training tasks and fail on new ones.
- Rigidity: Most optimizers only understand numbers, ignoring rich context like task descriptions or code.
- Scalability: Training a new optimizer for every specific search space is inefficient.
A New Framework: Sequence-Based Foundation Models
As a position paper, the authors provide a roadmap for the field, framing BBO through the lens of sequence-based foundation models. Key components of this framework include representing search spaces as sequences (connecting them to formal grammars) and utilizing a feasibility function to handle complex, valid-only search spaces like Python code.
The core of this approach is the Ask/Eval/Tell loop. In this modern BBO loop, a Foundation Model acts as the "Surrogate," taking in metadata and history to "ask" for the next candidate. This candidate is then "evaluated," and the results are "told" back to the model to update its context for the next iteration.
Key Insights and Ideas
- LLMs as "World-Aware" Optimizers: Unlike a standard Gaussian Process, an LLM "knows" what a "learning rate" is. It brings pre-existing knowledge from its training on textbooks and code to the optimization task.
- In-Context Learning: Transformers can adapt to a new optimization landscape without changing their weights. By simply looking at the history of previous trials in the prompt, they can perform "in-context" Bayesian inference.
- Universal Tokenization: By representing every parameter value as a token, models can handle diverse search spaces (integers, floats, categories) within a single architecture.
- Constraint Handling: LLMs are uniquely suited for "Global" constraints—like ensuring a proposed snippet of code actually compiles—which are notoriously difficult for traditional BBO.
Comparative Results
The paper provides a qualitative comparison of BBO methods, showing a clear evolution. Traditional feature-based methods lack transferability and NLP capabilities. While attention-based models begin to solve scalability, LLMs are the only class of models that currently meet every requirement: in-task adaptability, across-task transfer, search space transfer, length scalability, multi-modality, and built-in NLP. The authors cite recent successes where models like PaLM-2 outperformed traditional methods by leveraging internal reasoning capabilities.
Limitations and Future Work
Several hurdles remain for the community to clear:
- Numeric Tokenization: Most LLM tokenizers are designed for language, not math, often splitting numbers in ways that destroy their magnitude.
- Context Window Limits: Optimization can require thousands of trials, which can exceed the "memory" (context window) of current LLMs.
- The "Black-Box" Irony: To truly leverage LLMs, we must stop treating problems as "black boxes" and start providing the metadata (descriptions, code, intent) that LLMs require.
The paper concludes by envisioning a Universal LLM for Optimization—a model that can take a user's intent, look at past experiments, and propose solutions across text, code, and hardware configurations.
Summary updated