LGAIMay 26, 2025

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

arXiv:2505.19609v12 citationsh-index: 6
Originality Incremental advance
AI Analysis

This addresses a system-level bottleneck for researchers and practitioners training large language models on long-context tasks, offering an incremental improvement in training efficiency.

The paper tackles the challenge of inefficient training in long-context supervised fine-tuning (Long-SFT) due to mixed datasets of long and short sequences, proposing Skrull, a dynamic data scheduler that improves training efficiency by 3.76x on average (up to 7.54x) compared to DeepSpeed.

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.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes