用动态降温策略让大模型更好解罕见的整数规划难题。
Leveraging Large Language Models for Solving Rare MIP Challenges
- 大模型结合思维链与递归降温,提升求解质量。
- 降温策略使解的质量优于其他动态温度方法。
- 适合需要快速探索解空间的复杂优化场景。
混合整数规划(MIP)在需在严格时限内解决复杂实例的领域广泛应用。但随着问题规模增大,模型构建难度和寻找可行解的复杂性显著上升。相比之下,端到端模型(如大语言模型,LLMs)因具备模式识别能力,其建模成本不受问题规模影响。尽管未经微调的LLMs(如GPT-4)可处理部分中等规模的MIP问题,但在罕见或高度专业化的场景下表现不佳。微调虽能为中等规模问题生成可行解,但受限于低且恒定的温度设置,难以探索多样化解。本文提出并评估了一种结合思维链的递归动态温度方法。结果表明,从高温度开始逐步降低,相比其他动态策略能获得更优的可行解。通过与Gurobi的对比,验证了该方法能加速剪枝过程,提升整体求解效率,生成的解可有效补充传统求解器。
原文摘要 · Abstract (English)
Mixed Integer Programming (MIP) has been extensively applied in areas requiring mathematical solvers to address complex instances within tight time constraints. However, as the problem scale increases, the complexity of model formulation and finding feasible solutions escalates significantly. In contrast, the model-building cost for end-to-end models, such as large language models (LLMs), remains largely unaffected by problem scale due to their pattern recognition capabilities. While LLMs, like GPT-4, without fine-tuning, can handle some traditional medium-scale MIP problems, they struggle with uncommon or highly specialized MIP scenarios. Fine-tuning LLMs can yield some feasible solutions for medium-scale MIP instances, but these models typically fail to explore diverse solutions when constrained by a low and constant temperature, limiting their performance. In this paper, we propose and evaluate a recursively dynamic temperature method integrated with a chain-of-thought approach. Our findings show that starting with a high temperature and gradually lowering it leads to better feasible solutions compared to other dynamic temperature strategies. Additionally, by comparing results generated by the LLM with those from Gurobi, we demonstrate that the LLM can produce solutions that complement traditional solvers by accelerating the pruning process and improving overall efficiency.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。