TL;DR
The authors introduce SHA-PF (Search Hardness-Aware Problem Formulation), a framework that leverages Large Language Models (LLMs) to automatically convert natural-language engineering requirements into highly efficient mathematical optimization problems. By analyzing initial simulation data to identify "hard-to-reach but promising" design spaces, SHA-PF guides an evolutionary LLM loop to shape optimization landscapes that dramatically reduce the number of expensive high-fidelity simulations needed to find optimal designs.
What Problem Does This Paper Address?
In engineering design (such as airfoil or microelectronic layout), finding a configuration that satisfies complex performance requirements typically relies on expensive, time-consuming computer simulations. While researchers have developed advanced optimization algorithms to minimize the number of required simulations, they almost always assume that the mathematical formulation of the problem—the specific objective functions and constraints—is fixed and perfect.
In reality, how a problem is mathematically formulated dictates the "shape" of the search landscape, directly influencing how quickly an optimizer can find a solution. Traditionally, human experts manually design these formulations, a process that is slow and prone to creating complex, hard-to-search landscapes. While LLMs have recently been used to automate problem formulation, existing methods only focus on aligning the math with the user's intent, completely ignoring whether the resulting landscape is actually efficient for an optimizer to navigate.
Methods
SHA-PF bridges this gap by introducing a search hardness-aware objective into an LLM-based evolutionary optimization loop. The framework operates in three main phases:
- Search Hardness Estimation & Anchor Selection: SHA-PF samples a small set of initial designs ($D_{init}$) using a space-filling strategy. An LLM evaluates these initial responses against the design requirements to determine their "satisfaction states." It then calculates a search hardness score for each state based on two factors: rarity (how infrequently the state appears) and progress potential (how many other states it dominates). The rarest, most promising non-dominated state is selected as the anchor state.
- Formulation Search Objective: Candidate formulations are scored based on how effectively they prioritize this anchor state. The objective rewards formulations that rank the hard-to-reach anchor state higher than common, easily discovered states.
- Evolutionary LLM Refinement: Starting with an initial population of LLM-generated formulations, SHA-PF runs an evolutionary loop. It uses specialized operator prompts to instruct the LLM to perform variation tasks: Component recombination, Constraint restructuring, Signal reparameterization, and Semantic exploration. A dedicated "repair LLM" checks the generated code for logical or syntactic errors before evaluation.
Datasets
The authors evaluated SHA-PF on two distinct real-world engineering benchmarks:
- HBV Rainfall-Runoff Calibration: A practical hydrological model calibration problem involving 14 continuous variables and 4 conflicting objectives (e.g., high-flow accuracy, long-term water balance).
- Antenna Design Benchmarks: A suite of five distinct filtering patch antenna design tasks (HAE, CSL, HSL, WHG, and HSE). These tasks feature between 13 and 23 continuous geometric design variables and require high-fidelity electromagnetic simulations via ANSYS HFSS, with average simulation times ranging from 511 to 963 seconds per evaluation.
Key Insights and Ideas
- Initial Data is a Goldmine: Even a small, random sampling of initial evaluations contains sparse but critical clues about which regions of the search space are easy to find and which are difficult but highly rewarding.
- Prioritize the Rare and Promising: Formulations that direct the optimizer toward rare, non-dominated "anchor states" act like a guide pointing toward hidden shortcuts in a maze, preventing the optimizer from wasting budget on easily discoverable areas.
- Formulation Matters More Than the Solver: The paper demonstrates that changing how a problem is formulated can yield massive efficiency gains, even when keeping the underlying optimization algorithm exactly the same.
Key Results
- HBV Calibration: SHA-PF achieved feasibility in just 127 evaluations, outperforming all human-expert and direct LLM baselines. Furthermore, the final solution found by SHA-PF strictly dominated the baselines in the objective space.
- Antenna Design: SHA-PF successfully discovered requirement-satisfying designs across all 5 antenna tasks within the 300-simulation budget. In contrast, most expert-designed and direct LLM baselines completely failed to find a valid solution before exhausting the budget. SHA-PF saved between 110 and 137 simulations compared to successful baselines, translating to 1.5 to 11.2 hours of saved compute time per task.
- Cross-Optimizer Robustness: The formulations discovered by SHA-PF were not tied to a single solver; they consistently improved search efficiency across multiple distinct optimization algorithms (SCBO, DSI, and CEBO).
Limitations and Future Work
- Dependency on Initial Data: SHA-PF relies entirely on the initial dataset ($D_{init}$) to map search hardness. If the initial sampling is too sparse or completely misses promising regions, the anchor selection mechanism degrades. The authors suggest exploring iterative anchor discovery during the optimization process to mitigate this.
- Binary Satisfaction States: The current framework treats requirement satisfaction as a binary (0 or 1) metric. It ignores how close a failed design was to meeting a threshold. Incorporating graded satisfaction or violation magnitudes could significantly refine the search hardness metric in future iterations.
Summary updated