OmniBal: Towards Fast Instruction-Tuning for Vision-Language Models via Omniverse Computation Balance

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Yao, Yongqiang, Tan, Jingru, Zhang, Feizhao, Hu, Jiahao, Niu, Yazhe, Jin, Xin, Li, Bo, Liu, Pengfei, Gong, Ruihao, Lin, Dahua, Xu, Ningyi
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866918158851375104
author Yao, Yongqiang
Tan, Jingru
Zhang, Feizhao
Hu, Jiahao
Niu, Yazhe
Jin, Xin
Li, Bo
Liu, Pengfei
Gong, Ruihao
Lin, Dahua
Xu, Ningyi
author_facet Yao, Yongqiang
Tan, Jingru
Zhang, Feizhao
Hu, Jiahao
Niu, Yazhe
Jin, Xin
Li, Bo
Liu, Pengfei
Gong, Ruihao
Lin, Dahua
Xu, Ningyi
contents Vision-language instruction-tuning models have recently achieved significant performance improvements. In this work, we discover that large-scale 3D parallel training on those models leads to an imbalanced computation load across different devices. The vision and language parts are inherently heterogeneous: their data distribution and model architecture differ significantly, which affects distributed training efficiency. To address this issue, we rebalance the computational load from data, model, and memory perspectives, achieving more balanced computation across devices. Specifically, for the data, instances are grouped into new balanced mini-batches within and across devices. A search-based method is employed for the model to achieve a more balanced partitioning. For memory optimization, we adaptively adjust the re-computation strategy for each partition to utilize the available memory fully. These three perspectives are not independent but are closely connected, forming an omniverse balanced training framework. Extensive experiments are conducted to validate the effectiveness of our method. Compared with the open-source training code of InternVL-Chat, training time is reduced greatly, achieving about 1.8$\times$ speed-up. Our method's efficacy and generalizability are further validated across various models and datasets. Codes will be released at https://github.com/ModelTC/OmniBal.
format Preprint
id arxiv_https___arxiv_org_abs_2407_20761
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle OmniBal: Towards Fast Instruction-Tuning for Vision-Language Models via Omniverse Computation Balance
Yao, Yongqiang
Tan, Jingru
Zhang, Feizhao
Hu, Jiahao
Niu, Yazhe
Jin, Xin
Li, Bo
Liu, Pengfei
Gong, Ruihao
Lin, Dahua
Xu, Ningyi
Artificial Intelligence
Vision-language instruction-tuning models have recently achieved significant performance improvements. In this work, we discover that large-scale 3D parallel training on those models leads to an imbalanced computation load across different devices. The vision and language parts are inherently heterogeneous: their data distribution and model architecture differ significantly, which affects distributed training efficiency. To address this issue, we rebalance the computational load from data, model, and memory perspectives, achieving more balanced computation across devices. Specifically, for the data, instances are grouped into new balanced mini-batches within and across devices. A search-based method is employed for the model to achieve a more balanced partitioning. For memory optimization, we adaptively adjust the re-computation strategy for each partition to utilize the available memory fully. These three perspectives are not independent but are closely connected, forming an omniverse balanced training framework. Extensive experiments are conducted to validate the effectiveness of our method. Compared with the open-source training code of InternVL-Chat, training time is reduced greatly, achieving about 1.8$\times$ speed-up. Our method's efficacy and generalizability are further validated across various models and datasets. Codes will be released at https://github.com/ModelTC/OmniBal.
title OmniBal: Towards Fast Instruction-Tuning for Vision-Language Models via Omniverse Computation Balance
topic Artificial Intelligence
url https://arxiv.org/abs/2407.20761