Embedding models play a pivot role in modern NLP applications such as IR and RAG. While the context limit of LLMs has been pushed beyond 1 million tokens, embedding models are still confined to a narrow context window not exceeding 8k tokens, refrained from application scenarios requiring long inputs such as legal contracts. This paper explores context window extension of existing embedding models, pushing the limit to 32k without requiring additional training. First, we examine the performance of current embedding models for long context retrieval on our newly constructed LongEmbed benchmark. LongEmbed comprises two synthetic tasks and four carefully chosen real-world tasks, featuring documents of varying length and dispersed target information. Benchmarking results underscore huge room for improvement in these models. Based on this, comprehensive experiments show that training-free context window extension strategies like position interpolation can effectively extend the context window of existing embedding models by several folds, regardless of their original context being 512 or beyond 4k. Furthermore, for models employing absolute position encoding (APE), we show the possibility of further fine-tuning to harvest notable performance gains while strictly preserving original behavior for short inputs. For models using rotary position embedding (RoPE), significant enhancements are observed when employing RoPE-specific methods, such as NTK and SelfExtend, indicating RoPE's superiority over APE for context window extension. To facilitate future research, we release E5-Base-4k and E5-RoPE-Base, along with the LongEmbed benchmark.
Extending AI for Research to the Humanities: A Multi-Agent Framework for Evidence-Grounded Scholarship
Department of Information Management(信息管理系);Research Center for Digital Humanities(数字人文研究中心);School of Foreign Languages(外国语言学院);Institute for Artificial Intelligence(人工智能研究院)
Lost in a Single Vector: Improving Long-Document Retrieval with Chunk Evidence Aggregation
Chongqing University(重庆大学);State Key Laboratory of AI Safety(人工智能安全国家重点实验室);Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所);University of California, Merced(加州大学默塞德分校);University of Queensland(昆士兰大学);University of Chinese Academy of Sciences(中国科学院大学)
Surviving the Router: Optimizing Skill Injections for Retrieval and Execution
Max Planck Institute for Intelligent Systems(马克斯·普朗克智能系统研究所);Tel Aviv University(特拉维夫大学);Sapienza University of Rome(罗马第一大学);University of Cagliari(卡利亚里大学);ELLIS Institute Tübingen(图宾根ELLIS研究所)
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(穆罕默德·本·扎耶德人工智能大学)
Satisfactory Medical Consultation based on Terminology-Enhanced Information Retrieval and Emotional In-Context Learning
School of Mechanical Science and Engineering, Huazhong University of Science and Technology(华中科技大学机械科学与工程学院);School of Computer Science, University of Warwick(华威大学计算机学院);School of Software and Microelectronics, Peking University(北京大学软件与微电子学院);MRC Weatherall Institute of Molecular Medicine, University of Oxford(牛津大学MRC Weatherall分子医学研究所)
Dwell in the Beginning: How Language Models Embed Long Documents for Dense Retrieval
Language Technologies Institute, Carnegie Mellon University(卡内基梅隆大学语言技术研究所);Instituto Superior Técnico and INESC-ID, University of Lisbon(里斯本大学高级技术学院与INESC-ID研究所);NOVA LINCS, NOVA School of Science and Technology(NOVA科技大学NOVA LINCS研究所)