Generative Reliability-Based Design Optimization Using In-Context Learning Capabilities of Large Language Models

Zhongling Jiang, Shenghan Gao, Qian Tang, Zequn Wang, Yu Liu, Hong-Zhong HuangJournal of Mechanical Design 2025

TL;DR

This paper introduces LLM-RBDO, a novel approach to Reliability-Based Design Optimization (RBDO) that leverages the in-context learning (ICL) capabilities of Large Language Models (LLMs). By combining LLMs with metaheuristic search and Kriging surrogate models, the method efficiently generates high-quality design alternatives that satisfy reliability constraints, offering a promising new direction for complex engineering optimization.

What Problem Does This Paper Address?

Traditional design optimization methods often overlook real-world uncertainties like material variations and operational loads. Reliability-Based Design Optimization (RBDO) aims to address this by ensuring designs meet specific reliability levels under these uncertainties. However, RBDO problems are notoriously computationally expensive, especially when dealing with complex performance functions and numerous random variables. Existing methods, while improving, still face challenges with efficiency and handling the intricate interplay between design variables and reliability constraints. This paper tackles the computational burden and complexity of RBDO by exploring the potential of LLMs, specifically their in-context learning abilities, to act as intelligent design generators within an iterative optimization framework.

Methods

The core of this work is the LLM-RBDO framework, which integrates several key components:

  • Kriging Surrogate Modeling: To overcome the computational cost of repeatedly evaluating performance functions, Kriging models are used to create accurate surrogate models for reliability analysis. This allows for efficient estimation of performance function values and their uncertainties.
  • Monte Carlo Simulation (MCS): MCS is employed in conjunction with the Kriging models to approximate the probability of failure for design alternatives, a crucial step in reliability analysis.
  • Large Language Models (LLMs) with In-Context Learning (ICL): The paper leverages the ICL capabilities of LLMs (specifically Deepseek-V3) to generate new design points. LLMs are prompted with historical optimization data (design points, cost, and penalty values) and guided to produce promising candidates that minimize cost while satisfying reliability constraints. This is a departure from traditional optimization algorithms that rely on explicit mathematical formulations for generating new points.
  • Prompt Engineering: Sophisticated prompts are designed to guide the LLM, assigning it the role of an optimization assistant. These prompts include the objective function, constraints, design variable ranges, and historical performance data to enable the LLM to infer optimization trends and generate relevant design points.
  • Iterative Optimization Loop: The framework operates in an iterative manner. Initial design points are generated, evaluated for cost and reliability, and then used to inform the LLM. The LLM generates new design points, which are then filtered, evaluated, and used to update the historical data for the next iteration. This process continues until convergence criteria are met.
  • Penalty Function: A penalty function is used to represent constraint violations, allowing the LLM to prioritize designs that satisfy reliability requirements.

Datasets

The paper does not explicitly mention training datasets for the LLM. The LLM is used in a zero-shot or few-shot manner, relying on its pre-trained knowledge. The evaluation is performed on three case studies:

  1. Two-Dimensional Mathematical Design Problem: A synthetic problem with two random variables and three performance functions.
  2. High-Dimensional Vehicle Side Crash Design Problem: A more complex, real-world inspired problem with 9 design variables and 2 random parameters, involving 10 performance functions.

Key Insights and Ideas

  • LLMs as Generative Design Agents: The most significant insight is the successful application of LLMs not just for understanding or generating text, but as active participants in the design optimization process, generating novel design points.
  • In-Context Learning for Optimization: The paper demonstrates that LLMs can effectively learn and adapt to the nuances of RBDO problems through in-context learning, without requiring explicit fine-tuning for each new problem.
  • Bridging LLMs and Metaheuristics: The LLM-RBDO framework effectively combines the generative power of LLMs with the iterative search capabilities of metaheuristic algorithms, creating a synergistic approach.
  • Handling Computational Cost: The integration of Kriging surrogate modeling significantly reduces the computational burden associated with traditional RBDO, making the process more efficient.
  • Prompt Engineering as a Key Enabler: The success of the LLM-driven optimization is heavily reliant on well-crafted prompts that provide the LLM with the necessary context and guidance.

Key Results

  • Feasible Solutions: The LLM-RBDO approach successfully identified feasible design solutions that meet the specified reliability constraints in all case studies.
  • Comparable Convergence: In the first case study (2D mathematical problem), LLM-RBDO demonstrated a comparable convergence rate to traditional genetic algorithms (SEGA).
  • Improved Performance in Case Study 1: LLM-RBDO achieved a lower cost function value than SEGA in the first case study, while still satisfying reliability constraints.
  • Challenges in High-Dimensional Problems: In the second, high-dimensional vehicle side crash design problem, LLM-RBDO showed limitations in achieving optimal solutions comparable to traditional methods like FORM and SEGA, converging to near-optimal solutions. This suggests that the dimensionality and complexity of constraints pose a challenge for current LLM capabilities.

Limitations and Future Work

  • High-Dimensionality and Complex Constraints: The paper acknowledges that LLM-RBDO faces challenges with high-dimensional problems and highly complex constraints, leading to near-optimal solutions rather than true optima in the second case study.
  • Hyperparameter Tuning: The authors note that certain hyperparameters of LLM-RBDO were not systematically fine-tuned, suggesting that further optimization could improve performance.
  • LLM Size Sensitivity: The sensitivity of the framework to LLMs of different parameter scales has not been fully explored.
  • Future Work: The authors suggest future research should focus on experiments with various LLM sizes to assess generalization capabilities, further fine-tuning of hyperparameters, and exploring methods to enhance robustness in complex engineering optimization problems. Investigating techniques to overcome the limitations in high-dimensional and complex constraint scenarios is also a key area for future research.

Summary updated

Abstract

Abstract Large language models (LLMs) have demonstrated remarkable in-context learning (ICL) capabilities, enabling flexible utilization of limited historical information to play pivotal roles in reasoning, problem-solving, and complex pattern recognition tasks. Inspired by the successful applications of LLMs in multiple domains, this article proposes a generative design approach by leveraging the ICL capabilities of LLMs with the iterative search mechanisms of metaheuristic algorithms for solving reliability-based design optimization (RBDO) problems. In detail, Kriging surrogate modeling is employed to replace the expensive simulations, and thus Monte Carlo simulation (MCS) can be used to approximate the probability of failure for design alternatives. Then, an RBDO-informed LLM prompt is designed to dynamically provide critical information to the LLMs, which enables the rapid generation of new high-quality design points that satisfy the reliability constraints while improving design efficiency. With the LLMs as a design generator, the RBDO is an iterative process to obtain feasible design solutions with improved performance. With the Deepseek-V3 model, three case studies are used to demonstrate the performance of the proposed approach for solving RBDO problems. The results indicate that the proposed LLM-based generative RBDO approach successfully identifies feasible solutions that meet reliability constraints while achieving a comparable convergence rate compared to traditional genetic algorithms.
BibTeX
@article{jiang2025generative,
  author = {Zhongling Jiang and Shenghan Gao and Qian Tang and Zequn Wang and Yu Liu and Hong-Zhong Huang},
  title = {{Generative Reliability-Based Design Optimization Using In-Context Learning Capabilities of Large Language Models}},
  journal = {Journal of Mechanical Design},
  year = {2025},
  doi = {10.1115/1.4069598},
}
Figure