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

BTR:用于高效检索增强语言模型的二值令牌表示

BTR: Binary Token Representations for Efficient Retrieval Augmented Language Models

Paul G. Allen School of Computer Science & Engineering(保罗·G·艾伦计算机科学与工程学院);University of Washington(华盛顿大学)

Qingqing Cao, Sewon Min, Yizhong Wang, Hannaneh Hajishirzi

AI总结:

本文提出二值令牌表示(BTR),用1位向量预计算段落令牌,结合校准与压缩技术,在保持95%以上任务性能的同时将检索增强语言模型推理加速4倍、存储减少100倍以上。

摘要:

检索增强解决了大型语言模型中的许多关键问题,如幻觉、信息陈旧和隐私泄露。然而,由于需要处理大量检索到的文本,运行检索增强语言模型(LMs)速度缓慢且难以扩展。我们引入了二值令牌表示(BTR),它使用1位向量来预计算段落中的每个令牌,从而显著减少推理过程中的计算量。尽管可能存在精度损失,我们新的校准技术和训练目标恢复了性能。结合离线和运行时压缩,对维基百科中30亿个令牌进行编码仅需127GB的磁盘空间。我们的实验表明,在五个知识密集型NLP任务上,BTR将最先进的推理速度提升了高达4倍,并将存储减少了超过100倍,同时保持了超过95%的任务性能。

英文摘要:

Retrieval augmentation addresses many critical problems in large language models such as hallucination, staleness, and privacy leaks. However, running retrieval-augmented language models (LMs) is slow and difficult to scale due to processing large amounts of retrieved text. We introduce binary token representations (BTR), which use 1-bit vectors to precompute every token in passages, significantly reducing computation during inference. Despite the potential loss of accuracy, our new calibration techniques and training objectives restore performance. Combined with offline and runtime compression, this only requires 127GB of disk space for encoding 3 billion tokens in Wikipedia. Our experiments show that on five knowledge-intensive NLP tasks, BTR accelerates state-of-the-art inference by up to 4x and reduces storage by over 100x while maintaining over 95% task performance.

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

↑