LLM-guided Chemical Process Optimization with a Multi-Agent Approach

Tong Zeng, Srivathsan Badrinarayanan, Janghoon Ock, Cheng-Kai Lai, Amir Barati Farimani

Introduction

Traditional chemical process optimization, aimed at maximizing yield or minimizing costs, typically relies on mathematical solvers like IPOPT. However, these methods require a precisely defined "design space" with strict operating constraints. In many real-world scenarios—such as retrofitting old plants or developing novel processes—these constraints are often unknown or poorly characterized, creating a "constraint definition bottleneck." This paper proposes a multi-agent Large Language Model (LLM) framework that autonomously infers these constraints from text and iteratively optimizes the process.

Methodology: A Multi-Agent Framework

The researchers developed a system using Microsoft's AutoGen framework, leveraging advanced reasoning models like OpenAI’s o3. The workflow operates in two distinct phases:

  1. Autonomous Constraint Generation: A ContextAgent interprets a minimal text description of the process. Utilizing its embedded domain knowledge, it generates realistic upper and lower bounds for critical variables (e.g., temperature and pressure).
  2. Collaborative Optimization: A group of specialized agents navigates the defined design space. A ParameterAgent proposes values, a ValidationAgent checks them against constraints, a SimulationAgent runs rigorous mathematical models via the IDAES framework, and a SuggestionAgent analyzes history to propose improved parameters.
The multi-agent workflow for autonomous constraint generation and collaborative optimization.

Experimental Evaluation

The framework was evaluated on a simulated Hydrodealkylation (HDA) process, which converts toluene to benzene. This complex flowsheet involves multiple units, including reactors, flash tanks, and recycle loops.

Flowsheet of the Hydrodealkylation (HDA) process used for benchmarking.

The system was benchmarked against two standard techniques: IPOPT (gradient-based) and Grid Search (exhaustive baseline).

Key Results and Insights

The multi-agent approach demonstrated significant advantages over traditional methods:

  • Efficiency: The LLM framework achieved a 31-fold reduction in wall-time compared to grid search, completing the optimization in under 20 minutes versus 10.5 hours.
  • Sample Efficiency: For yield optimization, the LLM converged in just 26 iterations, significantly fewer than the 81 required by IPOPT.
  • Performance: The system achieved 94-98% of the global optimum values across various metrics (cost, yield, and yield-to-cost ratio).
  • Interpretability: Unlike "black-box" solvers, the LLM provides engineering reasoning for its choices, such as identifying trade-offs between condenser temperatures and refrigeration costs.

A critical finding was the necessity of reasoning models; standard LLMs like GPT-4o failed to converge, whereas models like o3 successfully managed the multi-step planning and historical trend analysis required.

Conclusion and Future Work

This research demonstrates that LLMs can effectively bridge the gap in chemical process optimization when constraints are missing. While highly successful on the HDA process, future work will focus on validating the framework for reactive and energy systems. Integrating external process databases could further refine constraint generation, potentially leading to hybrid systems that combine LLM reasoning with the precision of conventional mathematical solvers.

Summary updated

BibTeX
@misc{zeng2025llm,
  author = {Tong Zeng and Srivathsan Badrinarayanan and Janghoon Ock and Cheng-Kai Lai and Amir Barati Farimani},
  title = {{LLM-guided Chemical Process Optimization with a Multi-Agent Approach}},
  year = {2025},
  eprint = {2506.20921},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.20921},
}
Figure