利用大型语言模型探索组合问题求解:以GPT-3.5 Turbo求解旅行商问题为例
Exploring Combinatorial Problem Solving with Large Language Models: A Case Study on the Travelling Salesman Problem Using GPT-3.5 Turbo
AI总结:
本文以GPT-3.5 Turbo为例,探索大型语言模型求解旅行商问题的潜力,通过零样本、少样本、思维链及微调和自集成方法提升求解性能与泛化能力。
摘要:
大型语言模型(LLMs)是基于文本输入生成文本的深度学习模型。尽管研究者已将这些模型用于代码生成和通用推理等更复杂任务,但鲜有工作探索LLMs如何应用于组合问题。本研究考察了LLMs求解旅行商问题(TSP)的潜力。我们利用GPT-3.5 Turbo进行了实验,采用多种方法,包括零样本上下文学习、少样本上下文学习和思维链(CoT)。随后,我们对GPT-3.5 Turbo进行微调以求解特定问题规模,并使用一组不同实例规模进行测试。微调后的模型在与训练实例规模相同的问题上表现出有前景的性能,并能良好地泛化到更大规模问题。此外,为在不增加额外训练成本的情况下提升微调模型的性能,我们采用自集成方法来提高解的质量。
英文摘要:
Large Language Models (LLMs) are deep learning models designed to generate text based on textual input. Although researchers have been developing these models for more complex tasks such as code generation and general reasoning, few efforts have explored how LLMs can be applied to combinatorial problems. In this research, we investigate the potential of LLMs to solve the Travelling Salesman Problem (TSP). Utilizing GPT-3.5 Turbo, we conducted experiments employing various approaches, including zero-shot in-context learning, few-shot in-context learning, and chain-of-thoughts (CoT). Consequently, we fine-tuned GPT-3.5 Turbo to solve a specific problem size and tested it using a set of various instance sizes. The fine-tuned models demonstrated promising performance on problems identical in size to the training instances and generalized well to larger problems. Furthermore, to improve the performance of the fine-tuned model without incurring additional training costs, we adopted a self-ensemble approach to improve the quality of the solutions.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。