Multimodal Instruction Tuning with Hybrid State Space Models

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Zhou, Jianing, Li, Han, Zhang, Shuai, Xie, Ning, Wang, Ruijie, Nie, Xiaohan, Liu, Sheng, Wang, Lingyun
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909388285935616
author Zhou, Jianing
Li, Han
Zhang, Shuai
Xie, Ning
Wang, Ruijie
Nie, Xiaohan
Liu, Sheng
Wang, Lingyun
author_facet Zhou, Jianing
Li, Han
Zhang, Shuai
Xie, Ning
Wang, Ruijie
Nie, Xiaohan
Liu, Sheng
Wang, Lingyun
contents Handling lengthy context is crucial for enhancing the recognition and understanding capabilities of multimodal large language models (MLLMs) in applications such as processing high-resolution images or high frame rate videos. The rise in image resolution and frame rate substantially increases computational demands due to the increased number of input tokens. This challenge is further exacerbated by the quadratic complexity with respect to sequence length of the self-attention mechanism. Most prior works either pre-train models with long contexts, overlooking the efficiency problem, or attempt to reduce the context length via downsampling (e.g., identify the key image patches or frames) to decrease the context length, which may result in information loss. To circumvent this issue while keeping the remarkable effectiveness of MLLMs, we propose a novel approach using a hybrid transformer-MAMBA model to efficiently handle long contexts in multimodal applications. Our multimodal model can effectively process long context input exceeding 100k tokens, outperforming existing models across various benchmarks. Remarkably, our model enhances inference efficiency for high-resolution images and high-frame-rate videos by about 4 times compared to current models, with efficiency gains increasing as image resolution or video frames rise. Furthermore, our model is the first to be trained on low-resolution images or low-frame-rate videos while being capable of inference on high-resolution images and high-frame-rate videos, offering flexibility for inference in diverse scenarios.
format Preprint
id arxiv_https___arxiv_org_abs_2411_08840
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Multimodal Instruction Tuning with Hybrid State Space Models
Zhou, Jianing
Li, Han
Zhang, Shuai
Xie, Ning
Wang, Ruijie
Nie, Xiaohan
Liu, Sheng
Wang, Lingyun
Computer Vision and Pattern Recognition
Handling lengthy context is crucial for enhancing the recognition and understanding capabilities of multimodal large language models (MLLMs) in applications such as processing high-resolution images or high frame rate videos. The rise in image resolution and frame rate substantially increases computational demands due to the increased number of input tokens. This challenge is further exacerbated by the quadratic complexity with respect to sequence length of the self-attention mechanism. Most prior works either pre-train models with long contexts, overlooking the efficiency problem, or attempt to reduce the context length via downsampling (e.g., identify the key image patches or frames) to decrease the context length, which may result in information loss. To circumvent this issue while keeping the remarkable effectiveness of MLLMs, we propose a novel approach using a hybrid transformer-MAMBA model to efficiently handle long contexts in multimodal applications. Our multimodal model can effectively process long context input exceeding 100k tokens, outperforming existing models across various benchmarks. Remarkably, our model enhances inference efficiency for high-resolution images and high-frame-rate videos by about 4 times compared to current models, with efficiency gains increasing as image resolution or video frames rise. Furthermore, our model is the first to be trained on low-resolution images or low-frame-rate videos while being capable of inference on high-resolution images and high-frame-rate videos, offering flexibility for inference in diverse scenarios.
title Multimodal Instruction Tuning with Hybrid State Space Models
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2411.08840