arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.04464cs.CLcs.AIcs.LGmath.OC
收藏

利用大型语言模型解决罕见MIP挑战

Leveraging Large Language Models for Solving Rare MIP Challenges

University of Hong Kong(香港大学)

Teng Wang, Wing-Yin Yu, Ruifeng She, Wenhan Yang, Taijie Chen, Jianping Zhang

AI总结:

本文提出一种递归动态温度与思维链结合的方法,使大型语言模型在罕见MIP问题上生成可行解,并通过加速剪枝补充传统求解器,提升整体效率。

摘要:

混合整数规划(MIP)已广泛应用于需要在严格时间限制内处理复杂实例的数学求解器领域。然而,随着问题规模的增加,模型构建的复杂性和寻找可行解的难度显著上升。相比之下,端到端模型(如大型语言模型(LLMs))的建模成本因其模式识别能力而基本不受问题规模影响。虽然未经微调的LLMs(如GPT-4)能够处理一些传统的中等规模MIP问题,但在面对罕见或高度专业化的MIP场景时却表现困难。对LLMs进行微调可以为中等规模的MIP实例生成一些可行解,但当受到低且恒定的温度约束时,这些模型通常无法探索多样化的解,从而限制了其性能。在本文中,我们提出并评估了一种与思维链方法相结合的递归动态温度方法。我们的研究结果表明,从高温开始并逐渐降低温度,相比其他动态温度策略能够产生更好的可行解。此外,通过将LLM生成的结果与Gurobi的结果进行比较,我们证明LLM能够生成补充传统求解器的解,通过加速剪枝过程并提高整体效率。

英文摘要:

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.

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

↑