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

言语化算法:经典算法就是你所需要的(大部分)

Verbalized Algorithms: Classical Algorithms are All You Need (Mostly)

MIT CSAIL(MIT 计算与人工智能实验室);MIT-IBM Watson AI Lab(MIT-IBM 沃森人工智能实验室);IBM Infrastructure(IBM 基础设施);Marist University(马里斯特大学);UC Irvine(加州大学尔湾分校);IBM Research Cambridge, USA(IBM 英国剑桥研究中心)

Supriya Lall, Christian Farrell, Hari Pathanjaly, Marko Pavic, Sarvesh Chezhian, Masataro Asai

AI总结:

提出言语化算法(VA)范式,将LLM作为可靠的基本操作(如字符串比较)集成到经典算法中,以提升推理的准确性和效率。

摘要:

推理本质上是一个算法任务。然而,当前基于LLM的推理工作依赖于自由生成,其理论保证(可靠性、完备性、复杂性、最优性)仍然知之甚少。我们认为不应将它们视为通用推理器,作为替代,我们提出一种称为“言语化算法”(VA)的范式,它将LLM与各种具有既定保证的算法相结合。VA不依赖LLM解决推理任务的能力,而是通过将任务分解为它们能够可靠回答的简单字符串基本操作来限制其范围。例如,对自然语言字符串列表进行排序可以通过在并行或近似排序算法中使用LLM作为二元比较预言机来实现。我们在数值推理、主题聚类、Wi-Fi接入点优化和多跳问答RAG任务中,通过言语化最大值、排序、聚类和子模最大化,推动了准确率-运行时帕累托前沿。这些结果表明,通过标准算法分析改进基于LLM的推理是一个可行且基础更扎实的研究方向。

英文摘要:

Reasoning is a fundamentally algorithmic task. Yet current work on LLM-based reasoning relies on free-form generation whose theoretical guarantees (soundness, completeness, complexity, optimality) remain poorly understood. We argue that we should not treat them as general-purpose reasoners, and as an alternative, we propose a paradigm we call \emph{verbalized algorithms} (VAs), which combines LLMs and various algorithms with established guarantees. Instead of betting on LLM's ability to solve a reasoning task, VAs limit their scope by decomposing the task down to simple elementary operations on strings that they can answer reliably. For example, sorting a list of natural language strings could be done by using an LLM as a binary comparison oracle in a parallel or approximate sorting algorithm. We push the accuracy-runtime Pareto front with \emph{verbalized maximum}, \emph{sorting}, \emph{clustering}, and \emph{submodular maximization}, for numerical reasoning, topic clustering, Wi-Fi access point optimization, and multi-hop Q\&A RAG task. These results suggest improving LLM-based reasoning through standard algorithmic analysis is a feasible and better grounded research direction.

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

↑