Threshold Filtering Packing for Supervised Fine-Tuning: Training Related Samples within Packs
Not on the map. Why?
Abstract (arXiv)
Packing for Supervised Fine-Tuning (SFT) in autoregressive models involves concatenating data points of varying lengths until reaching the designed maximum length to facilitate GPU processing. However, randomly concatenating data points can lead to cross-contamination of sequences due to the significant difference in their subject matter. The mainstream approaches in SFT ensure that each token in the attention calculation phase only focuses on tokens within its own short sequence, without providing additional learning signals for the preceding context. To address these challenges, we introduce Threshold Filtering Packing (TFP), a method that selects samples with related context while maintaining sufficient diversity within the same pack. Our experiments show that TFP offers a simple-to-implement and scalable approach that significantly enhances SFT performance, with observed improvements of up to 7% on GSM8K, 4% on HumanEval. Furthermore, results from bias benchmark datasets highlight TFP's promising performance in improving fairness while also boosting prediction accuracy by 15%.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 31 of its 56 references that are in the map. First posted on arXiv 18 Aug 2024.
Builds on
31 of 56 references.
References · 31
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,355
- 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,674
- 2016Equality of Opportunity in Supervised Learningcited by 2,000
- 2022Text Embeddings by Weakly-Supervised Contrastive Pre-trainingcited by 1,216
19 more
- 2023The Flan Collection: Designing Data and Methods for Effective Instruction Tuningcited by 734
- 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 728
- 2023DecodingTrust: A Comprehensive Assessment of Trustworthiness in GPT Modelscited by 505
- 2023MAmmoTH: Building Math Generalist Models through Hybrid Instruction Tuningcited by 483
- 2023What Makes Good Data for Alignment? A Comprehensive Study of Automatic Data Selection in Instruction Tuningcited by 354
- 2023Principle-Driven Self-Alignment of Language Models from Scratch with Minimal Human Supervisioncited by 318
- 2023PandaLM: An Automatic Evaluation Benchmark for LLM Instruction Tuning Optimizationcited by 311
- 2022OPT-IML: Scaling Language Model Instruction Meta Learning through the Lens of Generalizationcited by 235
- 2022LinkBERT: Pretraining Language Models with Document Linkscited by 209
- 2024Large Language Models(LLMs) on Tabular Data: Prediction, Generation, and Understanding -- A Surveycited by 157
- 2024Self-Distillation Bridges Distribution Gap in Language Model Fine-Tuningcited by 90
- 2024API Is Enough: Conformal Prediction for Large Language Models Without Logit-Accesscited by 68
- 2024Clustering and Ranking: Diversity-preserved Instruction Selection through Expert-aligned Quality Estimationcited by 53
- 2024Learning or Self-aligning? Rethinking Instruction Fine-tuningcited by 43
- 2021Dict-BERT: Enhancing Language Model Pre-training with Dictionarycited by 38
- 2022Data-Efficient Finetuning Using Cross-Task Nearest Neighborscited by 26
- 2024Analysing The Impact of Sequence Composition on Language Model Pre-Trainingcited by 22
- 2023Structured Packing in LLM Training Improves Long Context Utilizationcited by 17
- 2023Exploring Format Consistency for Instruction Tuningcited by 14
Built on by
Citing papers per year: 2025: 1.
1 paper.