arXiv:2608.00015cs.AI2026-08

用检索增强生成提升大模型优化建模准确率

Optimization and Constraint Modeling using LLMs with a Retrieval Augmented Generation Process

论文配图:Optimization and Constraint Modeling using LLMs with a Retrieval Augmented Generation Process
图 1 · 摘自论文原文
  • 用合成数据+语义检索增强,引导大模型生成正确优化公式
  • 在三个测试集上准确率从40%~56%提升至72%~56%
  • 无需微调,适合实际场景部署的优化建模工具

优化建模与约束建模需深厚领域知识和形式化语言能力。尽管在物流、医疗和供应链中至关重要,当前大模型在组合场景下常生成结构不一致或不完整的优化公式。本文评估基于精选合成数据集的检索增强生成流程能否显著提升大模型优化建模性能。使用Text2Zinc数据集种子描述及LLM生成的专业角色,构建500个优化问题,以JSON格式定义并关联经验证的Python求解脚本,存入Chroma向量数据库。推理时,通过语义相似性检索相关示例作为上下文指导LangChain LLM代理。在Qwen 3 30B Instruct模型下,于三个基准测试集上表现:NL4OPT准确率从40%升至72%,MAMO Easy从40%升至56%,MAMO Complex从32%升至56%。语义验证的合成示例显著提升解的准确性和结构合理性。该方法结合合成数据生成与检索增强,为避免昂贵微调提供有效替代方案,表明领域专用合成语料与检索增强可作为部署大模型优化工具的实际路径。

原文摘要 · Abstract (English)

Both optimization modeling and constraint modeling are non-trivial problems requiring deep domain expertise and proficiency in modeling formalism languages. Despite their importance across logistics, healthcare, and supply chain management, current large language models regularly produce structurally inconsistent or incomplete optimization formulations, particularly in combinatorial settings. This paper evaluates whether a Retrieval-Augmented Generation pipeline built on a curated synthetic dataset can meaningfully improve LLM optimization modeling performance. A total of 500 optimization problems were synthesized using seed descriptions from the Text2Zinc dataset and professional personas created using an LLM, specified in JSON and associated with validated Python solver scripts. These problems were encoded in a Chroma vector database. For each inference problem, semantically similar problems were retrieved and used as contextual guidance for a LangChain LLM agent. Three benchmark testbeds were used to evaluate the proposed pipeline under the Qwen 3 30B Instruct model. Accuracy rose from 40% to 72% on NL4OPT, 40% to 56% on MAMO Easy, and 32% to 56% on MAMO Complex. The use of semantically validated synthetic examples greatly improves both solution accuracy and structure. The combination of synthetic dataset generation with retrieval augmentation provides an effective alternative to fine-tuning, suggesting that domain-specific synthetic corpora paired with retrieval augmentation can serve as a practical pathway for deploying LLM-based optimization tools in real-world decision-support contexts without costly model retraining.

优化建模检索增强大模型应用合成数据

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。