Data Engineering for Scaling Language Models to 128K Context
University of Edinburgh(爱丁堡大学);MIT-IBM Watson AI Lab(MIT-IBM沃森人工智能实验室);University of Melbourne(墨尔本大学);Ohio State University(俄亥俄州立大学);University of Washington(华盛顿大学);MIT(麻省理工学院);UIUC(伊利诺伊大学香槟分校)
Yao Fu, Rameswar Panda, Xinyao Niu, Xiang Yue, Hannaneh Hajishirzi, Yoon Kim, Hao Peng
We study the continual pretraining recipe for scaling language models' context lengths to 128K, with a focus on data engineering. We hypothesize that long context modeling, in particular \textit{the ability to utilize information at arbitrary input locations}, is a capability that is mostly already acquired through large-scale pretraining, and that this capability can be readily extended to contexts substantially longer than seen during training~(e.g., 4K to 128K) through lightweight continual pretraining on appropriate data mixture. We investigate the \textit{quantity} and \textit{quality} of the data for continual pretraining: (1) for quantity, we show that 500 million to 5 billion tokens are enough to enable the model to retrieve information anywhere within the 128K context; (2) for quality, our results equally emphasize \textit{domain balance} and \textit{length upsampling}. Concretely, we find that naively upsampling longer data on certain domains like books, a common practice of existing work, gives suboptimal performance, and that a balanced domain mixture is important. We demonstrate that continual pretraining of the full model on 1B-5B tokens of such data is an effective and affordable strategy for scaling the context length of language models to 128K. Our recipe outperforms strong open-source long-context models and closes the gap to frontier models like GPT-4 128K.
ACE-GraphRAG: Agentic Context Engineering for Hierarchical GraphRAG
The Chinese University of Hong Kong(香港中文大学);Wuhan University of Technology(武汉理工大学);The Hong Kong University of Science and Technology(香港科技大学);Huawei Noah’s Ark Lab(华为诺亚方舟实验室)
A Survey of Context Engineering for Large Language Models
Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所);University of California, Merced(加州大学默塞德分校);The University of Queensland(昆士兰大学);Peking University(北京大学);Tsinghua University(清华大学);University of Chinese Academy of Sciences(中国科学院大学)
Satori-SWE: Evolutionary Test-Time Scaling for Sample-Efficient Software Engineering
Singapore University of Technology and Design(新加坡科技设计大学);MIT(麻省理工学院);UMass Amherst(马萨诸塞大学阿默斯特分校);Harvard(哈佛大学);MIT-IBM Watson AI Lab(MIT-IBM沃森人工智能实验室);IBM Research(IBM研究院)
SEAL: Scaling to Emphasize Attention for Long-Context Retrieval
Department of Convergence IT Engineering(融合IT工程系);Department of Computer Science and Engineering(计算机科学与工程系);Graduate School of Artificial Intelligence(人工智能研究生院)
L$^2$M: Mutual Information Scaling Law for Long-Context Language Modeling
NSF AI Institute for Artificial Intelligence and Fundamental Interactions(NSF人工智能与基础相互作用研究院);Massachusetts Institute of Technology(麻省理工学院);Polytechnic University of Catalonia(加泰罗尼亚理工大学);Harvard University(哈佛大学);University of California, Los Angeles(加州大学洛杉矶分校)
Intrinsic Entropy of Context Length Scaling in LLMs
Institute for Interdisciplinary Information Sciences, Tsinghua University(清华大学交叉信息研究院);Carnegie Mellon University(卡内基梅隆大学);CPHOS;University of Washington(华盛顿大学)
DCIS: Efficient Length Extrapolation of LLMs via Divide-and-Conquer Scaling Factor Search
TJUNLP Lab, College of Intelligence and Computing, Tianjin University(天津大学智能计算学院);School of New Media and Communication, Tianjin University(天津大学新媒体与传播学院)
Representing data in words: A context engineering approach
Information Technology Department Uppsala University(乌普萨拉大学信息技术系);Physics Department Stellenbosch University(斯坦福大学物理系);Computer Science Department Addis Ababa University(亚的斯亚贝巴大学计算机科学系);Insa Toulouse(图卢兹大学)