arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.08865cs.CLcs.LG
收藏

大语言模型的上下文回忆能力依赖于提示词

LLM In-Context Recall is Prompt Dependent

VMware(威睿);Broadcom(博通)

Daniel Machlab, Rick Battle

AI总结:

本研究采用大海捞针法测试多种大语言模型的上下文回忆能力,发现其回忆表现依赖提示内容且受训练数据偏差影响,调整架构、训练策略或微调可提升性能,为大语言模型应用开发提供参考。

摘要:

大语言模型(LLM)的普及凸显了开展全面评估以辨明其相对优势、局限性与最佳适用场景的关键意义。其中尤为重要的是评估其准确检索给定提示中所含信息的能力,模型的这一能力会显著影响其利用上下文细节的有效程度,进而影响其在实际应用中的实用效能与可靠性。\n 本研究采用“大海捞针(needle-in-a-haystack)”方法分析了多种大语言模型的上下文回忆表现。该方法将一条事实信息(即“针”)嵌入一段填充文本(即“干草堆”)中,要求模型检索出该信息。我们评估了每个模型在不同干草堆长度、不同针位置下的回忆表现,以识别性能模式。研究表明,大语言模型的回忆能力不仅取决于提示词的内容,还可能因训练数据中的偏差而受损。反之,调整模型架构、训练策略或微调可提升性能。本分析揭示了大语言模型的行为规律,为开发更有效的大语言模型应用提供了方向。

英文摘要:

The proliferation of Large Language Models (LLMs) highlights the critical importance of conducting thorough evaluations to discern their comparative advantages, limitations, and optimal use cases. Particularly important is assessing their capacity to accurately retrieve information included in a given prompt. A model's ability to do this significantly influences how effectively it can utilize contextual details, thus impacting its practical efficacy and dependability in real-world applications. Our research analyzes the in-context recall performance of various LLMs using the needle-in-a-haystack method. In this approach, a factoid (the "needle") is embedded within a block of filler text (the "haystack"), which the model is asked to retrieve. We assess the recall performance of each model across various haystack lengths and with varying needle placements to identify performance patterns. This study demonstrates that an LLM's recall capability is not only contingent upon the prompt's content but also may be compromised by biases in its training data. Conversely, adjustments to model architecture, training strategy, or fine-tuning can improve performance. Our analysis provides insight into LLM behavior, offering direction for the development of more effective applications of LLMs.

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

↑