LIFT: Improving Long Context Understanding Through Long Input Fine-Tuning

Yansheng Mao, Jiaqi Li, Fanxu Meng, Jing Xiong, Zilong Zheng +1 more
12/18/2024
cs.CLcs.AI

No official code found. Best implementation: GraphPKU/LIFT (16 stars, last commit 2025-03-14).

Abstract

Long context understanding remains challenging for large language models due to their limited context windows. This paper introduces Long Input Fine-Tuning (LIFT) for long context modeling, a novel framework that enhances LLM performance on long-context tasks by adapting model parameters to the context at test time. LIFT enables efficient processing of lengthy inputs without the computational burden of offline long-context adaptation, and can improve the long-context capabilities of arbitrary short-context models. The framework is further enhanced by integrating in-context learning and pre-LIFT supervised fine-tuning. The combination of in-context learning and LIFT enables short-context models like Llama 3 to handle arbitrarily long contexts and consistently improves their performance on popular long-context benchmarks like LooGLE and LongBench. We also provide a comprehensive analysis of the strengths and limitations of LIFT on long context understanding, offering valuable directions for future research.

View on arXivView PDF

Code Implementations(1)

GraphPKU/LIFTCommunity73%

The official implementation of LIFT: Improving Long Context Understanding of Large Language Models through Long Input Fine-Tuning

160Shell, PythonMar 1, 20251 years ago

Similar Papers

Cite this paper

@article{mao2024lift,
  title  = {LIFT: Improving Long Context Understanding Through Long Input Fine-Tuning},
  author = {Yansheng Mao and Jiaqi Li and Fanxu Meng and Jing Xiong and Zilong Zheng and Muhan Zhang},
  year   = {2024},
  eprint = {2412.13626},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.13626v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2412.13626.svg)](https://codeofpaper.com/paper/2412.13626)

Discussion