Unlocking Full Efficiency of Token Filtering in Large Language Model Training

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Chai, Di, Li, Pengbo, Zhang, Feiyuan, Jin, Yilun, Tian, Han, Xu, Kaiqiang, Yuan, Binhang, Shen, Dian, Zhang, Junxue, Chen, Kai
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866914407426031616
author Chai, Di
Li, Pengbo
Zhang, Feiyuan
Jin, Yilun
Tian, Han
Xu, Kaiqiang
Yuan, Binhang
Shen, Dian
Zhang, Junxue
Chen, Kai
author_facet Chai, Di
Li, Pengbo
Zhang, Feiyuan
Jin, Yilun
Tian, Han
Xu, Kaiqiang
Yuan, Binhang
Shen, Dian
Zhang, Junxue
Chen, Kai
contents Token filtering has been proposed to enhance the utility of large language models (LLMs) by eliminating inconsequential tokens during training. While usingfewer tokens is expected to reduce computational workloads, existing methods have not yet achieved a real-world efficiency boost. This is primarily due to two factors: (1) existing work has inadequate sparsity for speedup, and (2) token filtering operates within a sparsity range that is non-standard in existing machine learning (ML) libraries and thus cannot be efficiently supported. This paper presents Centrifuge, a system that leverages algorithm and system co-design to unleash the full efficiency of token filtering in LLM training. At the algorithm level, Centrifuge filters activations of inconsequential tokens in the attention backward kernel to amplify the sparsity in backward computation. At the system level, Centrifuge proposes an automatic workflow that transforms sparse GEMM into dimension-reduced dense GEMM for optimized efficiency using standard ML libraries. Evaluations on models with various scales--from 1.1B to 40B--demonstrate that Centrifuge reduces backpropagation time by up to 49.9\% and end-to-end training time by up to 34.7\% when filtering 50\% of tokens. Utility assessments indicate that Centrifuge preserves the utility benefits of token filtering and significantly enhances model performance by up to 26.6\% compared to standard training. Centrifuge is designed for seamless integration into existing LLM training frameworks, enabling systems already utilizing token filtering to accelerate training with just one line of code.
format Preprint
id arxiv_https___arxiv_org_abs_2502_00340
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Unlocking Full Efficiency of Token Filtering in Large Language Model Training
Chai, Di
Li, Pengbo
Zhang, Feiyuan
Jin, Yilun
Tian, Han
Xu, Kaiqiang
Yuan, Binhang
Shen, Dian
Zhang, Junxue
Chen, Kai
Machine Learning
Computation and Language
Distributed, Parallel, and Cluster Computing
Token filtering has been proposed to enhance the utility of large language models (LLMs) by eliminating inconsequential tokens during training. While usingfewer tokens is expected to reduce computational workloads, existing methods have not yet achieved a real-world efficiency boost. This is primarily due to two factors: (1) existing work has inadequate sparsity for speedup, and (2) token filtering operates within a sparsity range that is non-standard in existing machine learning (ML) libraries and thus cannot be efficiently supported. This paper presents Centrifuge, a system that leverages algorithm and system co-design to unleash the full efficiency of token filtering in LLM training. At the algorithm level, Centrifuge filters activations of inconsequential tokens in the attention backward kernel to amplify the sparsity in backward computation. At the system level, Centrifuge proposes an automatic workflow that transforms sparse GEMM into dimension-reduced dense GEMM for optimized efficiency using standard ML libraries. Evaluations on models with various scales--from 1.1B to 40B--demonstrate that Centrifuge reduces backpropagation time by up to 49.9\% and end-to-end training time by up to 34.7\% when filtering 50\% of tokens. Utility assessments indicate that Centrifuge preserves the utility benefits of token filtering and significantly enhances model performance by up to 26.6\% compared to standard training. Centrifuge is designed for seamless integration into existing LLM training frameworks, enabling systems already utilizing token filtering to accelerate training with just one line of code.
title Unlocking Full Efficiency of Token Filtering in Large Language Model Training
topic Machine Learning
Computation and Language
Distributed, Parallel, and Cluster Computing
url https://arxiv.org/abs/2502.00340