Saved in:
Bibliographic Details
Main Authors: Zhu, Tong, Dong, Daize, Qu, Xiaoye, Ruan, Jiacheng, Chen, Wenliang, Cheng, Yu
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2406.11256
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909225294233600
author Zhu, Tong
Dong, Daize
Qu, Xiaoye
Ruan, Jiacheng
Chen, Wenliang
Cheng, Yu
author_facet Zhu, Tong
Dong, Daize
Qu, Xiaoye
Ruan, Jiacheng
Chen, Wenliang
Cheng, Yu
contents Mixture-of-Experts (MoE) models have shown remarkable capability in instruction tuning, especially when the number of tasks scales. However, previous methods simply merge all training tasks (e.g. creative writing, coding, and mathematics) and apply fixed sampling weights, without considering the importance of different tasks as the model training state changes. In this way, the most helpful data cannot be effectively distinguished, leading to suboptimal model performance. To reduce the potential redundancies of datasets, we make the first attempt and propose a novel dynamic data mixture for MoE instruction tuning. Specifically, inspired by MoE's token routing preference, we build dataset-level representations and then capture the subtle differences among datasets. Finally, we propose to dynamically adjust the sampling weight of datasets by their inter-redundancies, thus maximizing global performance under a limited training budget. The experimental results on two MoE models demonstrate the effectiveness of our approach on both downstream knowledge \& reasoning tasks and open-ended queries. Code and models are available at https://github.com/Spico197/MoE-SFT .
format Preprint
id arxiv_https___arxiv_org_abs_2406_11256
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Dynamic Data Mixing Maximizes Instruction Tuning for Mixture-of-Experts
Zhu, Tong
Dong, Daize
Qu, Xiaoye
Ruan, Jiacheng
Chen, Wenliang
Cheng, Yu
Computation and Language
Mixture-of-Experts (MoE) models have shown remarkable capability in instruction tuning, especially when the number of tasks scales. However, previous methods simply merge all training tasks (e.g. creative writing, coding, and mathematics) and apply fixed sampling weights, without considering the importance of different tasks as the model training state changes. In this way, the most helpful data cannot be effectively distinguished, leading to suboptimal model performance. To reduce the potential redundancies of datasets, we make the first attempt and propose a novel dynamic data mixture for MoE instruction tuning. Specifically, inspired by MoE's token routing preference, we build dataset-level representations and then capture the subtle differences among datasets. Finally, we propose to dynamically adjust the sampling weight of datasets by their inter-redundancies, thus maximizing global performance under a limited training budget. The experimental results on two MoE models demonstrate the effectiveness of our approach on both downstream knowledge \& reasoning tasks and open-ended queries. Code and models are available at https://github.com/Spico197/MoE-SFT .
title Dynamic Data Mixing Maximizes Instruction Tuning for Mixture-of-Experts
topic Computation and Language
url https://arxiv.org/abs/2406.11256