跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 计算与语言

arXiv:2403.05004 (cs)
[提交于 2024年3月11日]

标题:Can't Remember Details in Long Documents? You Need Some R&R

作者:Devanshu Agrawal, Shang Gao, Martin Gajek
查看论文《Can't Remember Details in Long Documents? You Need Some R&R》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Long-context large language models (LLMs) hold promise for tasks such as question-answering (QA) over long documents, but they tend to miss important information in the middle of context documents (arXiv:2307.03172v3). Here, we introduce $\textit{R&R}$ -- a combination of two novel prompt-based methods called $\textit{reprompting}$ and $\textit{in-context retrieval}$ (ICR) -- to alleviate this effect in document-based QA. In reprompting, we repeat the prompt instructions periodically throughout the context document to remind the LLM of its original task. In ICR, rather than instructing the LLM to answer the question directly, we instruct it to retrieve the top $k$ passage numbers most relevant to the given question, which are then used as an abbreviated context in a second QA prompt. We test R&R with GPT-4 Turbo and Claude-2.1 on documents up to 80k tokens in length and observe a 16-point boost in QA accuracy on average. Our further analysis suggests that R&R improves performance on long document-based QA because it reduces the distance between relevant context and the instructions. Finally, we show that compared to short-context chunkwise methods, R&R enables the use of larger chunks that cost fewer LLM calls and output tokens, while minimizing the drop in accuracy.
评论: 13 pages, 1 figure, 9 tables. For associated code repository see https://github.com/casetext/r-and-r
主题: 计算与语言 (cs.CL); 人工智能 (cs.AI); 信息检索 (cs.IR); 机器学习 (cs.LG)
引用方式: arXiv:2403.05004 [cs.CL]
  (或者 arXiv:2403.05004v1 [cs.CL] 对于此版本)
  https://doi.org/10.48550/arXiv.2403.05004

提交历史

来自:Devanshu Agrawal
[v1] 2024年3月11日 星期一 00:00:00 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.CL
< 上一篇   |   下一篇 >
最新 | 近期 | 2024-03
切换浏览方式为:
cs
cs.AI
cs.IR
cs.LG

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站