arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2405.17402cs.CL
收藏

THREAD:通过递归生成进行更深层次的思考

THREAD: Thinking Deeper with Recursive Spawning

MIT Computer Science and Artificial Intelligence Lab(MIT计算机科学与人工智能实验室)

Philip Schroeder, Nathaniel Morgan, Hongyin Luo, James Glass

AI总结:

THREAD通过递归生成子线程动态分解复杂任务,在多个基准上以GPT-4和GPT-3.5达到最先进性能,并显著提升小模型表现。

摘要:

大型语言模型(LLM)在各种场景中展现了令人印象深刻的能力,但随着上下文长度和复杂性的增加,它们仍然面临挑战。为了解决这个问题,我们提出了递归动态思考(ThReaD)。THREAD将模型生成视为一个执行线程,根据上下文,该线程可以运行至完成或动态生成新线程。通过生成,线程可以将工作(例如,思考、检索信息)卸载给子线程,子线程仅返回父线程完成其工作所需的令牌。实际上,这使模型能够根据需要调整用于生成令牌的中间工作量。我们在LLM任务求解和问答设置中应用THREAD,其中动态线程允许模型将给定任务或问题递归分解为逐渐更简单的子问题,这些子问题可以由单独的子线程解决。我们使用少样本学习方法实现的THREAD,在智能体任务和数据基础问答的多个基准上进行了测试。THREAD在GPT-4和GPT-3.5上实现了这些基准的最先进性能,包括ALFWorld、TextCraft和WebShop,以及两个新基准DataCommons QA和MIMIC-III ICU QA。此外,THREAD在较小模型(包括Llama-3-8b和CodeLlama-7b)上比现有框架高出10%到50%的绝对百分点。

英文摘要:

Large language models (LLMs) have shown impressive capabilities across diverse settings, but still struggle as the length and complexity of the context increases. To address this challenge, we propose Thinking Recursively and Dynamically (ThReaD). THREAD frames model generation as a thread of execution that, based on the context, can run to completion or dynamically spawn new threads. By spawning, threads can offload work (e.g., thinking, retrieving information) to child threads, which only return tokens needed for the parent thread to do its work. In effect, this enables the model to adapt, as needed, the amount of intermediate work used to produce tokens. We apply THREAD in the settings of LLM task solving and question answering, where the dynamic threading allows the model to recursively decompose the given task or question into progressively simpler sub-problems that can be solved by separate child threads. We test THREAD, implemented using a few-shot learning approach, on diverse benchmarks for agent tasks and data-grounded question answering. THREAD achieves state-of-the-art performance with GPT-4 and GPT-3.5 on these benchmarks, including ALFWorld, TextCraft, and WebShop, along with two new benchmarks, DataCommons QA and MIMIC-III ICU QA. In addition, THREAD outperforms existing frameworks by 10% to 50% absolute points with smaller models, including Llama-3-8b and CodeLlama-7b.

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

↑