arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2403.14932cs.CLcs.AI
收藏

面向大语言模型推理的Token计算扩展

Extending Token Computation for LLM Reasoning

Kyushu University(九州大学)

Bingli Liao, Danilo Vasconcellos Vargas

AI总结:

针对大语言模型因注意力分布低效难以应对复杂推理的问题,本文提出在思维链过程中通过模拟早期层注意力模式扩展计算token的方法,显著提升了模型尤其是非STEM领域的推理能力,为LLM设计创新奠定基础。

摘要:

大语言模型(LLM)是推动自然语言处理发展的核心,但由于注意力分布效率低下,往往难以应对复杂推理任务。本文探究了增加计算token对LLM性能的影响,并提出一种在思维链(Chain-of-Thought, CoT)过程中扩展计算token的新方法,该方法基于注意力机制优化实现。我们通过在领域特定的高结构化数据集上微调LLM,分析了各层的注意力模式,识别出由注意力分数异常偏高的非语义token导致的效率问题。为解决这一问题,我们提出一种算法,在下游层模拟早期层的注意力模式,以重新平衡失衡的注意力分布,增强知识抽象能力。研究结果表明,我们的方法不仅有助于更深入理解LLM的内部动态,还显著提升了其推理能力,尤其是在非STEM领域的表现。本研究为LLM设计的进一步创新奠定了基础,旨在打造更强大、更通用且更负责任的模型,以应对广泛的现实应用场景。

英文摘要:

Large Language Models (LLMs) are pivotal in advancing natural language processing but often struggle with complex reasoning tasks due to inefficient attention distributions. In this paper, we explore the effect of increased computed tokens on LLM performance and introduce a novel method for extending computed tokens in the Chain-of-Thought (CoT) process, utilizing attention mechanism optimization. By fine-tuning an LLM on a domain-specific, highly structured dataset, we analyze attention patterns across layers, identifying inefficiencies caused by non-semantic tokens with outlier high attention scores. To address this, we propose an algorithm that emulates early layer attention patterns across downstream layers to re-balance skewed attention distributions and enhance knowledge abstraction. Our findings demonstrate that our approach not only facilitates a deeper understanding of the internal dynamics of LLMs but also significantly improves their reasoning capabilities, particularly in non-STEM domains. Our study lays the groundwork for further innovations in LLM design, aiming to create more powerful, versatile, and responsible models capable of tackling a broad range of real-world applications.

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

↑