paper-with-me

Papers

Skrull: Towards Efficient Long Context Fine-tuning through Dynamic Data Scheduling

2025-05-26 · Hongtao Xu, Wenting Shen, Yuanxin Wei, Ang Wang, Guo Runfan, Tianxing Wang, Yong Li, Mingzhen Li, Weile Jia

Long-context supervised fine-tuning (Long-SFT) plays a vital role in enhancing the performance of large language models (LLMs) on long-context tasks. To smoothly adapt LLMs to long-context scenarios, this process typically entails training on mixed datasets containing both long and short sequences. However, this heterogeneous sequence length distribution poses significant challenges for existing training systems, as they fail to simultaneously achieve high training efficiency for both long and short sequences, resulting in sub-optimal end-to-end system performance in Long-SFT. In this paper, we present a novel perspective on data scheduling to address the challenges posed by the heterogeneous data distributions in Long-SFT. We propose Skrull, a dynamic data scheduler specifically designed for efficient long-SFT. Through dynamic data scheduling, Skrull balances the computation requirements of long and short sequences, improving overall training efficiency. Furthermore, we formulate the scheduling process as a joint optimization problem and thoroughly analyze the trade-offs involved. Based on those analysis, Skrull employs a lightweight scheduling algorithm to achieve near-zero cost online scheduling in Long-SFT. Finally, we implement Skrull upon DeepSpeed, a state-of-the-art distributed training system for LLMs. Experimental results demonstrate that Skrull outperforms DeepSpeed by 3.76x on average (up to 7.54x) in real-world long-SFT scenarios.

📄 PDF Abstract BibTeX arXiv:2505.19609

Code (0)

등록된 구현이 없습니다.

Tasks

Scheduling

Similar Papers 제목 키워드 기반

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

2024-12-18 · Yansheng Mao, Jiaqi Li, Fanxu Meng, Jing Xiong 외

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 enhance…

In-Context LearningLong-Context Understanding

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

2025-02-20 · Yansheng Mao, Yufei Xu, Jiaqi Li, Fanxu Meng 외

Long context understanding remains challenging for large language models due to their limited context windows. This paper presents Long Input Fine-Tuning (LIFT), a novel framework for long-context modeling that can impro…

In-Context LearningLong-Context UnderstandingMemorization

LongRoPE: Extending LLM Context Window Beyond 2 Million Tokens

2024-02-21 · Yiran Ding, Li Lyna Zhang, Chengruidong Zhang, Yuanyuan Xu 외

Large context window is a desirable feature in large language models (LLMs). However, due to high fine-tuning costs, scarcity of long texts, and catastrophic values introduced by new token positions, current extended con…

8k

LLoCO: Learning Long Contexts Offline

2024-04-11 · Sijun Tan, Xiuyu Li, Shishir Patil, Ziyang Wu 외

Processing long contexts remains a challenge for large language models (LLMs) due to the quadratic computational and memory overhead of the self-attention mechanism and the substantial KV cache sizes during generation. W…

4kIn-Context LearningQuestion Answering

ETT: Expanding the Long Context Understanding Capability of LLMs at Test-Time

2025-07-08 · Kiarash Zahirnia, Zahra Golpayegani, Walid Ahmed, Yang Liu arxiv

Transformer-based Language Models' computation and memory overhead increase quadratically as a function of sequence length. The quadratic cost poses challenges when employing LLMs for processing long sequences. In this w…