arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2509.16865cs.AI
收藏

大语言模型作为端到端组合优化求解器

Large Language Models as End-to-end Combinatorial Optimization Solvers

Eindhoven University of Technology(埃因霍温理工大学);Singapore Management University(新加坡管理学院)

Xia Jiang, Yaoxin Wu, Minshuo Li, Zhiguang Cao, Yingqian Zhang

AI总结:

针对传统组合优化求解依赖特定算法、现有LLM方法通用性受限的问题,提出两阶段训练框架使LLMs直接从自然语言描述生成解决方案,调优7B模型在7个NP难问题上最优性差距1.03-8.20%,优于现有方法。

摘要:

组合优化(CO)问题是物流和制造等决策场景的核心,传统上使用需要大量领域专业知识的问题特定算法来解决。虽然大语言模型(LLMs)在自动化CO问题求解方面显示出潜力,但现有方法依赖代码生成或求解器调用等中间步骤,限制了其通用性和可访问性。本文介绍了一个新颖框架,通过将自然语言问题描述直接映射到解决方案,使LLMs成为端到端CO求解器。我们提出两阶段训练策略:监督微调(SFT)向LLMs传授领域特定求解器的解决方案生成模式,而可行性和最优性感知强化学习(FOARL)过程明确缓解约束违反并改进解决方案质量。对七个NP难CO问题的评估表明,我们的方法通过调优7B参数LLM实现了高可行性率,并将平均最优性差距缩小到1.03-8.20%,优于通用LLMs(如GPT-4o)、推理模型(如DeepSeek-R1)和领域特定启发式算法。我们的方法建立了统一的基于语言的CO管道,无需针对不同问题进行大量代码执行或手动架构调整,在保持相对可行性保证的同时,为传统求解器设计提供了通用且语言驱动的替代方案。

英文摘要:

Combinatorial optimization (CO) problems, central to decision-making scenarios like logistics and manufacturing, are traditionally solved using problem-specific algorithms requiring significant domain expertise. While large language models (LLMs) have shown promise in automating CO problem solving, existing approaches rely on intermediate steps such as code generation or solver invocation, limiting their generality and accessibility. This paper introduces a novel framework that empowers LLMs to serve as end-to-end CO solvers by directly mapping natural language problem descriptions to solutions. We propose a two-stage training strategy: supervised fine-tuning (SFT) imparts LLMs with solution generation patterns from domain-specific solvers, while a feasibility-and-optimality-aware reinforcement learning (FOARL) process explicitly mitigates constraint violations and refines solution quality. Evaluation across seven NP-hard CO problems shows that our method achieves a high feasibility rate and reduces the average optimality gap to 1.03-8.20% by tuning a 7B-parameter LLM, surpassing both general-purpose LLMs (e.g., GPT-4o), reasoning models (e.g., DeepSeek-R1), and domain-specific heuristics. Our method establishes a unified language-based pipeline for CO without extensive code execution or manual architectural adjustments for different problems, offering a general and language-driven alternative to traditional solver design while maintaining relative feasibility guarantees.

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

↑