arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2502.14644cs.CL
收藏

LIFT:一种通过长输入微调增强大语言模型长上下文理解的新型框架

LIFT: A Novel Framework for Enhancing Long-Context Understanding of LLMs via Long Input Fine-Tuning

Institute for Artificial Intelligence, Peking University(北京大学人工智能研究院);State Key Laboratory of General Artificial Intelligence, BIGAI(通用人工智能国家重点实验室,北京通用人工智能研究院)

Yansheng Mao, Yufei Xu, Jiaqi Li, Fanxu Meng, Haotong Yang, Zilong Zheng, Xiyuan Wang, Muhan Zhang

AI总结:

LIFT通过动态调整参数提升短上下文LLM的长上下文性能,避免二次复杂度,同时通过合成任务增强长上下文理解能力。

摘要:

长上下文理解仍是大语言模型的挑战,因其上下文窗口有限。本文提出长输入微调(LIFT),一种新型长上下文建模框架,通过动态调整参数增强任意短上下文LLM的长上下文性能。重要的是,LIFT不通过无限扩展上下文窗口来适应更长的输入,而是将长输入存储并吸收进参数中。通过将长输入微调到模型参数中,LIFT允许短上下文LLM在推理时即使所需信息不在上下文中也能回答问题,避免了正常长上下文模型对输入长度的二次复杂度。此外,LIFT不简单地在新长上下文中继续预训练,而是利用精心设计的LLM生成的合成任务来增强长上下文的理解能力,超越单纯的记忆。为适应微调的额外成本,我们设计了一个高度优化的流水线,将8k上下文的Time to First Token(TTFT)减少到10秒以下。我们进一步对LIFT在长上下文理解中的优势和局限性进行了全面分析,讨论了其在大规模现实部署中的可行性,并强调了未来研究的有价值方向。

英文摘要:

Long-context understanding remains challenging for LLMs due to limited context windows. This paper introduces Long Input Fine-Tuning (LIFT), a framework that improves the long-context performance of arbitrary short-context LLMs by dynamically adapting their parameters to each long input. Instead of endlessly extending context windows to fit longer inputs in context, LIFT stores and absorbs the input in parameters. By fine-tuning long inputs into parameters, LIFT enables short-context LLMs to answer questions even when required information is absent from the inference context, avoiding the quadratic input-length complexity of standard long-context models. Rather than simple continued pretraining on new long contexts, LIFT uses carefully designed LLM-generated synthetic tasks to enhance comprehension beyond memorization. To offset fine-tuning overhead, we design a highly optimized pipeline that reduces Time to First Token (TTFT) to under 10 seconds for 8k context. We further analyze LIFT's strengths and limitations, discuss large-scale deployment feasibility, and highlight future research directions. Implementation is open-sourced at https://github.com/MuLabPKU/LIFT.

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

↑