arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.13362cs.CVcs.CLcs.LG
收藏

VisualRWKV:探索用于视觉语言模型的循环神经网络

VisualRWKV: Exploring Recurrent Neural Networks for Visual Language Models

College of Computer Science and Software Engineering, Shenzhen University(深圳大学计算机与软件学院);Guangdong Laboratory of Artificial Intelligence and Digital Economy (SZ)(广东省人工智能与数字经济实验室(深圳))

Haowen Hou, Peigen Zeng, Fei Ma, Fei Richard Yu

AI总结:

本研究提出VisualRWKV,首次将线性RNN应用于多模态学习,通过数据依赖递归、三明治提示和2D图像扫描机制增强建模能力,在多基准上性能媲美LLaVA-1.5,且推理速度提升3.98倍,GPU内存节省54%。

摘要:

视觉语言模型(VLMs)随着大型语言模型的近期成功而迅速发展。然而,将高效的线性循环神经网络(RNNs)架构整合到VLMs中的尝试还很少。在本研究中,我们引入了VisualRWKV,这是线性RNN模型在多模态学习任务中的首次应用,利用了预训练的RWKV语言模型。我们提出了数据依赖的递归和三明治提示来增强建模能力,并采用2D图像扫描机制来丰富视觉序列的处理。大量实验表明,VisualRWKV在多个基准测试中与基于Transformer的模型(如LLaVA-1.5)相比取得了有竞争力的性能。与LLaVA-1.5相比,VisualRWKV在达到24K tokens的推理长度时具有3.98倍的速度优势,并可节省54%的GPU内存。为了促进进一步的研究和分析,我们已在以下GitHub仓库公开了检查点和相关代码:见 https://github.com/howard-hou/VisualRWKV。

英文摘要:

Visual Language Models (VLMs) have rapidly progressed with the recent success of large language models. However, there have been few attempts to incorporate efficient linear Recurrent Neural Networks (RNNs) architectures into VLMs. In this study, we introduce VisualRWKV, the first application of a linear RNN model to multimodal learning tasks, leveraging the pre-trained RWKV language model. We propose a data-dependent recurrence and sandwich prompts to enhance our modeling capabilities, along with a 2D image scanning mechanism to enrich the processing of visual sequences. Extensive experiments demonstrate that VisualRWKV achieves competitive performance compared to Transformer-based models like LLaVA-1.5 on various benchmarks. Compared to LLaVA-1.5, VisualRWKV has a speed advantage of 3.98 times and can save 54% of GPU memory when reaching an inference length of 24K tokens. To facilitate further research and analysis, we have made the checkpoints and the associated code publicly accessible at the following GitHub repository: see https://github.com/howard-hou/VisualRWKV.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑