atlas

Research map / Large language models / Instruction and fine-tuning

Hierachical Balance Packing: Towards Efficient Supervised Fine-tuning for Long-Context LLM

NeurIPS 2025 · Large language models › Instruction and fine-tuning · approach: Efficient LLM fine-tuning systems · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes Hierarchical Balance Packing (HBP), a multi-level data packing and training pipeline for long-context SFT that balances attention computation and reduces sequence-parallel communication overhead, reporting up to 2.4x training speedup with competitive performance.

Problem

Hybrid long- and short-context SFT causes workload imbalance; standard data packing ignores imbalanced attention computation across devices and wasted sequence-parallel communication on short samples.

Approach

Builds multiple packing groups with distinct packing lengths, each with its own optimal sequence-parallel degree and gradient-checkpointing setting, assigns samples to groups, balances batches by attention complexity, and trains with curriculum learning and a global-average-token loss normalizer.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use HBP instead of ISF packingLLaMA3.1-8B · Tulu3 + LongciteGPU Days: 5.22~(1.0×) -> 3.73~(1.4×)Helped
Use HBP instead of ISF packingQwen2.5-32B · Tulu3 + LongciteGPU Days: 21.3~(1.0×) -> 16.0~(1.33×)Helped
Use HBP instead of ISF packingLLaMA3.1-70B · Tulu3 + LongciteGPU Days: 44.4~(1.0×) -> 31.1~(1.42×)Helped
Use HBP instead of ISF packingDeepSeek-V2 (236B) · Tulu3 + LongciteGPU Days: 57.1~(1.0x) -> 23.8~(2.4×)Helped
Use HBP instead of ISF packingLLaMA3.1-8B · General tasksAVE: 56.0 -> 58.2Helped
Use HBP instead of ISF packingLLaMA3.1-8B · LongBenchscore: 44.0 -> 43.1Hurt
Add hierarchical packing (ablation)LLaMA3.1-8B HBP · Hybrid trainingABR: 0.506 -> 0.288Helped
Add balance batching to hierarchical packing (ablation)LLaMA3.1-8B HBP · Hybrid trainingABR: 0.288 -> 0.002Helped
Add balance batching to hierarchical packing (ablation)LLaMA3.1-8B HBP · Hybrid trainingGPU Days: 4.51~(1.2×) -> 3.73~(1.40×)Helped
Add curriculum learning (ablation)LLaMA3.1-8B HBP · General tasksAVE: 56.6 -> 58.2Helped
Add curriculum learning (ablation)LLaMA3.1-8B HBP · LongBenchscore: 41.6 -> 43.1Helped
Add curriculum learning (ablation)LLaMA3.1-8B ISF · LongBenchscore: 44.0 -> 43.4Hurt

Surprising findings

Limitations

Experimental setup

Datasets: Tulu3 LongCite OpenHermes LongWriter

Benchmarks: MMLU MMLU-Pro CMMLU BBH MATH GPQA GSM8K HellaSwag MathBench HumanEval MBPP IFEval

Metrics: average accuracy on general tasks long-context scores GPU days ABR CR DBR PR

Baselines: LongAlign ISF packing FlexSP random batching sorted batching

Builds on: LongAlign FlexSP DeepSpeed-Ulysses Megatron-LM ISF packing

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy