This paper introduces Neurocache, an approach to extend the effective context size of large language models (LLMs) using an external vector cache to store its past states. Like recent vector retrieval approaches, Neurocache uses an efficient k-nearest-neighbor (kNN) algorithm to retrieve relevant past states and incorporate them into the attention process. Neurocache improves upon previous methods by (1) storing compressed states, which reduces cache size; (2) performing a single retrieval operation per token which increases inference speed; and (3) extending the retrieval window to neighboring states, which improves both language modeling and downstream task accuracy. Our experiments show the effectiveness of Neurocache both for models trained from scratch and for pre-trained models such as Llama2-7B and Mistral-7B when enhanced with the cache mechanism. We also compare Neurocache with text retrieval methods and show improvements in single-document question-answering and few-shot learning tasks. We made the source code available under: https://github.com/alisafaya/neurocache
Lightweight Retrieval-Augmented Generation and Large Language Model-Based Modeling for Scalable Patient-Trial Matching
Department of Artificial Intelligence and Informatics, Mayo Clinic(人工智能与信息学系,梅奥诊所);Computer Science Department, University of Tulsa(图兰大学计算机科学系);Mayo Clinic Comprehensive Cancer Center, Mayo Clinic(梅奥诊所综合癌症中心,梅奥诊所);Division of Community Pediatric and Adolescent Medicine, Department of Pediatrics, Mayo Clinic(社区儿科与青少年医学分会,儿科部,梅奥诊所);Department of Neurology, Mayo Clinic(神经病学部,梅奥诊所);Department of Radiation Oncology, Mayo Clinic(放射肿瘤学部,梅奥诊所);Department of Quantitative Health Sciences, Mayo Clinic(定量健康科学部,梅奥诊所)
Knowledge Graph Enhanced Memory-Augmented Retrieval for Long Context Modeling
University of New South Wales(新南威尔士大学);Hong Kong University of Science and Technology (Guangzhou)(香港科学与技术大学(广州));University of Southampton(南安普顿大学);Technology Innovation Institute(技术创新研究所);Mohamed Bin Zayed University of Artificial Intelligence(穆罕默德·本·扎耶德人工智能大学)
Human Mobility Modeling with Household Coordination Activities under Limited Information via Retrieval-Augmented LLMs
UCLA Mobility Lab, Department of Civil and Environmental Engineering, University of California, Los Angeles, Los Angeles, USA(加州大学洛杉矶分校移动实验室,土木与环境工程系,加州大学洛杉矶分校,洛杉矶,美国);Civil and Environmental Engineering Department, University of Louisville, Louisville, Kentucky, USA(路易斯维尔大学土木与环境工程系,路易斯维尔,肯塔基州,美国);Novateur Research Solutions, Ashburn, VA, USA(Novateur研究解决方案,弗吉尼亚州阿什本,美国)
Enhancing Speech-to-Speech Dialogue Modeling with End-to-End Retrieval-Augmented Generation
MoE Key Lab of Artificial Intelligence(人工智能增强实验室);Jiangsu Key Lab of Language Computing(江苏语言计算重点实验室);X-LANCE Lab(X-LANCE实验室);School of Computer Science, Shanghai Jiao Tong University(上海交通大学计算机科学学院);Shanghai Innovation Institute(上海创新研究院);Shanghai Aviation Electric Co., Ltd(上海航空电器有限公司)
Ubiquitous Knowledge Processing Lab (UKP Lab)(普适知识处理实验室(UKP实验室));Department of Computer Science(计算机科学系);Hessian Center for AI (hessian.AI)(黑森人工智能中心(hessian.AI));Technical University of Darmstadt(达姆施塔特工业大学);cohere(Cohere公司)
Tencent HY Team(腾讯混元团队);ShanghaiTech University(上海科技大学);The Hong Kong University of Science and Technology(香港科技大学);University of California, San Diego(加州大学圣地亚哥分校)
Response-G1: Explicit Scene Graph Modeling for Proactive Streaming Video Understanding
Northwestern Polytechnical University(北华大学);Tsinghua University(清华大学);The Hong Kong University of Science and Technology(香港科技大学);Harbin Engineering University(哈尔滨工程大学)
CoT-MAE v2: Contextual Masked Auto-Encoder with Multi-view Modeling for Passage Retrieval
Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所);School of Cyber Security, University of Chinese Academy of Sciences(中国科学院大学网络空间安全学院);Kuaishou Technology(快手科技)
本文提出了一个核心实体显着性模型(KESM),提高文本理解和检索更好地估计实体显着性(重要性)的文件。KESM通过知识丰富的分布式表示来表示实体,通过核来建模实体和词之间的交互,并结合核得分来估计实体显著性。整个模型使用实体显著性标签进行端到端学习。显着性模型还提高了ad hoc搜索的准确性,通过对候选文档中查询实体的显着性进行建模来提供有效的排名功能。我们在两个实体显著性语料库和两个TREC ad hoc搜索数据集上的实验证明了KESM在基于频率和基于特征的方法上的有效性。我们还提供了一些例子,展示了KESM如何将其从实体显着性学习到的文本理解能力传达给搜索。
S2Dialog: Multimodal Dialogue Retrieval with Semantic and Acoustic-Style Modeling
College of Computer Science, Inner Mongolia University(内蒙古大学计算机学院);University of Electronic Science and Technology of China, Shenzhen Campus(电子科技大学深圳校区)
Unstructured Knowledge Access in Task-oriented Dialog Modeling using Language Inference, Knowledge Retrieval and Knowledge-Integrative Response Generation
The Chinese University of Hong Kong(香港中文大学);Centre for Perceptual and Interactive Intelligence(感知与交互智能中心)
Improving Retrieval Modeling Using Cross Convolution Networks And Multi Frequency Word Embedding
Department of Computer Science, CUNY Graduate Center, USA(纽约市立大学研究生中心计算机科学系,美国);Department of Mathematics and Computer Science, York College (CUNY), USA(纽约市立大学约克学院数学与计算机科学系,美国);Department of Electrical Engineering, Columbia University, USA(哥伦比亚大学电气工程系,美国);OATH Inc, USA(OATH公司,美国)