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

Hawkeye:通过模型协作实现高效推理

Hawkeye:Efficient Reasoning with Model Collaboration

Mohamed bin Zayed University of Artificial Intelligence (MBZUAI)(莫扎伊德·本·泽亚德人工智能大学);University of California, Los Angeles(加州大学洛杉矶分校);Stanford University(斯坦福大学);Independent Researcher(独立研究者)

Jianshu She, Zhuohao Li, Zhemin Huang, Qi Li, Peiran Xu, Haonan Li, Qirong Ho

AI总结:

针对思维链推理中 token 冗余和计算成本高的问题,本文提出 HAWKEYE 框架,通过大模型生成简洁 CoT 指令指导小模型回答,在仅使用 35% CoT 的情况下保持回答质量,并实现最高 3.4 倍加速和 60% 成本降低。

摘要:

思维链(Chain-of-Thought,CoT)推理已在提升大语言模型(LLMs)推理能力方面展现出显著效果。然而,其效率仍然是一个挑战,因为会生成过多的中间推理 token,这些 token 引入了语义冗余和过于详细的推理步骤。此外,计算开销和延迟也是重要问题,因为成本会随着输出 token 数量(包括这些中间步骤)的增加而上升。在这项工作中,我们观察到大多数 CoT token 是不必要的,仅保留其中一小部分就足以生成高质量的回答。受此启发,我们提出了 HAWKEYE,这是一个新颖的后训练与推理框架,其中大模型生成简洁的 CoT 指令来指导较小模型进行回答生成。HAWKEYE 量化 CoT 推理中的冗余,并通过强化学习蒸馏高密度信息。通过利用这些简洁的 CoT,HAWKEYE 能够在显著减少 token 使用量和计算成本的同时扩展回答。我们的评估表明,HAWKEYE 仅使用完整 CoT 的 35% 即可达到可比的回答质量,同时在清晰度、连贯性和简洁性方面提升约 10%。此外,在复杂数学任务上,HAWKEYE 可将端到端推理加速最多 3.4 倍,同时将推理成本降低最多 60%。HAWKEYE 将开源,模型也将很快可用。

英文摘要:

Chain-of-Thought (CoT) reasoning has demonstrated remarkable effectiveness in enhancing the reasoning abilities of large language models (LLMs). However, its efficiency remains a challenge due to the generation of excessive intermediate reasoning tokens, which introduce semantic redundancy and overly detailed reasoning steps. Moreover, computational expense and latency are significant concerns, as the cost scales with the number of output tokens, including those intermediate steps. In this work, we observe that most CoT tokens are unnecessary, and retaining only a small portion of them is sufficient for producing high-quality responses. Inspired by this, we propose HAWKEYE, a novel post-training and inference framework where a large model produces concise CoT instructions to guide a smaller model in response generation. HAWKEYE quantifies redundancy in CoT reasoning and distills high-density information via reinforcement learning. By leveraging these concise CoTs, HAWKEYE is able to expand responses while reducing token usage and computational cost significantly. Our evaluation shows that HAWKEYE can achieve comparable response quality using only 35% of the full CoTs, while improving clarity, coherence, and conciseness by approximately 10%. Furthermore, HAWKEYE can accelerate end-to-end reasoning by up to 3.4x on complex math tasks while reducing inference cost by up to 60%. HAWKEYE will be open-sourced and the models will be available soon.

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

↑