TL;DR
The paper introduces R2SAEA, a novel framework that transforms large language models (LLMs) into specialized, zero-shot relation surrogates for expensive optimization problems. By framing surrogate modeling as an in-context pairwise reasoning task and fine-tuning a compact LLM using reinforcement learning (GRPO), the authors eliminate the costly "train-predict" loop of traditional surrogates while outperforming both classic algorithms and frontier models like GPT-4o.
What Problem Does This Paper Address?
In engineering and scientific discovery, many tasks are Expensive Optimization Problems (EOPs)—black-box problems where evaluating a single solution requires time-consuming physical experiments or high-fidelity simulations. To save on these costly evaluations, researchers use Surrogate-Assisted Evolutionary Algorithms (SAEAs), which train cheap machine learning models (surrogates) to screen and rank candidate solutions.
However, traditional surrogates suffer from a major bottleneck: as the evolutionary population evolves and shifts, the surrogate must be frequently retrained online to stay accurate. This continuous retraining imposes massive computational overhead. While general-purpose LLMs could theoretically act as surrogates via prompting, deploying massive frontier models directly inside an evolutionary loop is prohibitively slow and expensive, while smaller models lack the nuanced reasoning required to compare subtle differences between solutions.
Methods
The authors propose the Reinforcement-trained relation-based LLM surrogate assisted evolutionary algorithm (R2SAEA). Instead of predicting absolute objective values (regression), the LLM is tasked with predicting pairwise superiority (whether solution A is better than solution B), which aligns naturally with the comparison-driven nature of evolutionary selection.
The core methodology consists of three pillars:
- Anchor-Based Iterative Context Construction: A naive pairwise comparison of a population scales quadratically, $O((n+q)^2)$, quickly exploding the LLM's token limit. R2SAEA fixes one context solution as an "anchor" per prompt, reducing the complexity to a linear $O(n+q)$ scale.
- Voting-Based Aggregation: The pairwise relations predicted by the LLM are compiled into a relation matrix and aggregated via a voting scheme into absolute quality scores to rank and select the best offspring.
- GRPO Reinforcement Learning Pipeline: To avoid the high cost of frontier models, the authors fine-tune a compact open-source model (Qwen2.5-7B-Instruct) using Group Relative Policy Optimization (GRPO). The model is trained on historical evolutionary trajectories with rule-based rewards that enforce format compliance, pairwise accuracy, and output diversity.
Datasets
- Training Corpus: Built by running a standard genetic algorithm on classic single-objective benchmark suites including LZG, CEC2008, and CEC2010, capturing diverse optimization states across 8,640 instruction pairs.
- Evaluation Benchmarks: Evaluated on single-objective suites (LZG, YLL) and multi-objective benchmark suites (DTLZ, WFG, MaF) to test cross-task generalization.
Key Insights and Ideas
- Relations Over Regression: Evolutionary algorithms don't actually need to know how much better a solution is, only if it is better. Relational reasoning is a much more robust and natural fit for LLM in-context learning than predicting exact numerical values.
- Zero-Shot Inference Replaces Retraining: Because the LLM learns to reason about relationships contextually from the prompt, R2SAEA operates entirely in an inference-only manner during optimization. This completely bypasses the traditional per-generation retraining loop.
- Domain-Specific RL Beats Frontier Giants: Once specialized via GRPO, a compact 7B model significantly outperforms massive closed-source models like GPT-4o and Claude 4, which often yield near-zero rank correlations on raw numerical coordinate data without task-specific tuning.
- The Power of Local Normalization: Normalizing decision vectors prompt-by-prompt (locally) rather than across the entire dataset (globally) amplifies relative differences and prevents the model from relying on absolute scale cues, leading to vastly superior generalization.
Key Results
- State-of-the-Art Optimization: R2SAEA achieved the top mean rank (2.69) across 45 single-objective test instances, outperforming strong SAEA baselines like SACOSO, EGO, and DRSO under a strict budget of 300 evaluations.
- Fast Convergence: As shown in the benchmark trajectories, R2SAEA converges to high-quality solutions much faster and more reliably than general LLM prompting methods (LSEA).
- Cross-Task Generalization: Despite being trained purely on single-objective trajectories, the model generalized remarkably well to multi-objective problems (DTLZ), ranking first overall against specialized multi-objective SAEAs.
- Edge Deployment Ready: By quantizing a smaller 3B variant of the fine-tuned model to 4-bit precision, the authors successfully deployed the surrogate on an embedded edge device (NVIDIA Jetson Orin NX), achieving a usable throughput of 201.53 total tokens per second.
Limitations and Future Work
While highly effective, R2SAEA faces challenges when scaling to very high-dimensional optimization problems, as long decision vectors quickly consume the token budget within the prompt context. The authors note that future work will focus on context compression strategies, exploring more efficient model architectures tailored specifically for numerical relational reasoning, and tighter hardware-level integration for real-time edge optimization.
Summary updated