arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2603.03180cs.SEcs.AIcs.CL
收藏

具有依赖闭合的类型感知检索增强生成用于可执行工业优化建模

Type-Aware Retrieval-Augmented Generation with Dependency Closure for Solver-Executable Industrial Optimization Modeling

School of Petroleum, China University of Petroleum (Beijing) at Karamay(中国石油大学(北京)克拉玛依校区石油学院)

Y. Zhong, R. Huang, M. Wang, Z. Guo, YC. Li, M. Yu, Z. Jin

AI总结:

本文提出一种类型感知检索增强生成方法,通过强制依赖闭合确保工业优化建模的可执行性,有效解决大型语言模型在复杂工程优化中的执行难题。

摘要:

自动化工业优化建模需要可靠地将自然语言需求翻译成求解器可执行的代码。然而,大型语言模型常常由于缺少声明、类型不一致和不完整的依赖上下文而生成不可编译的模型。我们提出了一种类型感知的检索增强生成(RAG)方法,通过强制建模实体类型和最小依赖闭合来确保可执行性。与现有RAG方法不同,我们的方法通过解析异构源,如学术论文和求解器代码,构建一个领域特定的类型知识库,将其转换为带类型的单元,并在知识图中编码其数学依赖性。给定一个自然语言指令,它执行混合检索并计算最小依赖闭合上下文,即求解器可执行代码所需的最小带类型符号集合,通过图中的依赖传播进行计算。我们在两个约束密集的工业案例上验证了该方法:电池生产的需求响应优化和灵活作业车间调度。在第一个案例中,我们的方法生成了一个可执行模型,整合了需求响应激励和负载减少约束,实现了削峰同时保持盈利能力;传统RAG基线方法失败。在第二个案例中,它一致地生成可编译的模型,达到已知的最优解,展示了强大的跨领域泛化能力;基线方法完全失败。消融研究确认,强制类型感知依赖闭合对于避免结构幻觉和确保可执行性至关重要,解决了部署大型语言模型在复杂工程优化任务中的关键障碍。

英文摘要:

Automated industrial optimization modeling requires reliable translation of natural-language requirements into solver-executable code. However, large language models often generate non-compilable models due to missing declarations, type inconsistencies, and incomplete dependency contexts. We propose a type-aware retrieval-augmented generation (RAG) method that enforces modeling entity types and minimal dependency closure to ensure executability. Unlike existing RAG approaches that index unstructured text, our method constructs a domain-specific typed knowledge base by parsing heterogeneous sources, such as academic papers and solver code, into typed units and encoding their mathematical dependencies in a knowledge graph. Given a natural-language instruction, it performs hybrid retrieval and computes a minimal dependency-closed context, the smallest set of typed symbols required for solver-executable code, via dependency propagation over the graph. We validate the method on two constraint-intensive industrial cases: demand response optimization in battery production and flexible job shop scheduling. In the first case, our method generates an executable model incorporating demand-response incentives and load-reduction constraints, achieving peak shaving while preserving profitability; conventional RAG baselines fail. In the second case, it consistently produces compilable models that reach known optimal solutions, demonstrating robust cross-domain generalization; baselines fail entirely. Ablation studies confirm that enforcing type-aware dependency closure is essential for avoiding structural hallucinations and ensuring executability, addressing a critical barrier to deploying large language models in complex engineering optimization tasks.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑