Packing Analysis: Packing Is More Appropriate for Large Models or Datasets in Supervised Fine-tuning

Packing, initially utilized in the pre-training phase, is an optimization technique designed to maximize hardware resource efficiency by combining different training sequences to fit the model's maximum input length.Although it has demonstrated effectiveness during pretraining, there remains a lack of comprehensive analysis for the supervised fine-tuning (SFT) stage on the following points: (1) whether packing can effectively enhance training efficiency while maintaining performance, (2) the suitable size of the model and dataset for fine-tuning with the packing method, and (3) whether packing unrelated or related training samples might cause the model to either excessively disregard or over-rely on the context.In this paper, we perform extensive comparisons between SFT methods using padding and packing, covering SFT datasets ranging from 69K to 1.2M and models from 8B to 70B.This provides the first comprehensive analysis of the advantages and limitations of packing versus padding, as well as practical considerations for implementing packing in various training scenarios.Our analysis covers various benchmarks, including knowledge, reasoning, and coding, as well as GPT-based evaluations, time efficiency, and other fine-tuning parameters.We also open-source our code for fine-tuning and evaluation and provide checkpoints finetuned on datasets of different sizes, aiming to advance future research on packing methods.

Authors

Publication Details

Published
2025-01-01
DOI
https://doi.org/10.18653/v1/2025.findings-acl.256
Citations
2
Primary Topic
Optimization and Packing Problems
Type
article
Field-Weighted Citation Impact
2.48
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Packing Analysis: Packing Is More Appropriate for Large Models or Datasets in Supervised Fine-tuning

Guoyin Wang, Eduard Hovy, J Y Li, Chen Guo et al.
2 citations
Optimization and Packing Problems
2.48
article

Packing Analysis: Packing Is More Appropriate for Large Models or Datasets in Supervised Fine-tuning

Guoyin Wang, Eduard Hovy, J Y Li, Chen Guo, Yizhong Wang, Shuhe Wang
article en
2 citations

Abstract

Packing, initially utilized in the pre-training phase, is an optimization technique designed to maximize hardware resource efficiency by combining different training sequences to fit the model's maximum input length.Although it has demonstrated effectiveness during pretraining, there remains a lack of comprehensive analysis for the supervised fine-tuning (SFT) stage on the following points: (1) whether packing can effectively enhance training efficiency while maintaining performance, (2) the suitable size of the model and dataset for fine-tuning with the packing method, and (3) whether packing unrelated or related training samples might cause the model to either excessively disregard or over-rely on the context.In this paper, we perform extensive comparisons between SFT methods using padding and packing, covering SFT datasets ranging from 69K to 1.2M and models from 8B to 70B.This provides the first comprehensive analysis of the advantages and limitations of packing versus padding, as well as practical considerations for implementing packing in various training scenarios.Our analysis covers various benchmarks, including knowledge, reasoning, and coding, as well as GPT-based evaluations, time efficiency, and other fine-tuning parameters.We also open-source our code for fine-tuning and evaluation and provide checkpoints finetuned on datasets of different sizes, aiming to advance future research on packing methods.

Openalex Percentile: Top 10%
Optimization and Packing Problems
2.48
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Packing Analysis: Packing Is More Appropriate for Large Models or Datasets in Supervised Fine-tuning — Guoyin Wang, Eduard Hovy, et al. · (2025) | TGRS Research Map | TGRS