2024-11-19 · 专家 · 多模态 · 机器学习

BlueLM-V-3B: Algorithm and System Co-Design for Multimodal Large Language Models on Mobile Devices

本文提出了一种名为BlueLM-V-3B的算法和系统协同设计方法,针对移动设备上的多模态大型语言模型(MLLMs)的高效部署,实现了小型化、快速响应和强性能。

更新于 2024-11-19。作者:Xudong Lu、Yinghao Chen、Cheng Chen、Hui Tan、Boheng Chen、Yina Xie、Rui Hu、Guanxin Tan、Renshou Wu、Yan Hu、Yi Zeng、Lei Wu、Liuyang Bian、Zhaoxiong Wang、Long Liu、Yanzhou Yang、Han Xiao、Aojun Zhou、Yafei Wen、Xiaoxin Chen、Shuai Ren、Hongsheng Li。

中文摘要

多模态大型语言模型(MLLMs)的兴起和日益普及,在提升日常生活的各个方面具有显著潜力,从改善沟通到促进学习和解决问题。作为日常生活中的必备伙伴,手机是部署MLLMs最有效、最便捷的平台,使其能够无缝集成到日常任务中。然而,由于内存大小和计算能力的限制,在手机上部署MLLMs面临着挑战,这使得在没有大量优化的情况下实现流畅和实时处理变得困难。在本论文中,我们提出了BlueLM-V-3B,这是一种针对移动平台高效部署MLLMs的算法和系统协同设计方法。具体来说,我们重新设计了主流MLLMs采用的动态分辨率方案,并实施了硬件感知的部署系统优化,以优化手机上的模型推理。BlueLM-V-3B具有以下关键亮点:(1)体积小巧:BlueLM-V-3B拥有2.7B参数的语言模型和400M参数的视觉编码器。(2)速度快捷:BlueLM-V-3B在MediaTek Dimensity 9300处理器上,采用4位LLM权重量化,实现了24.4 token/s的生成速度。(3)性能强大:BlueLM-V-3B在参数量不超过4B的模型中,OpenCompass基准测试的平均得分达到了66.1,超过了多个参数量更大的模型(例如MiniCPM-V-2.6、InternVL2-8B)。

英文摘要

The emergence and growing popularity of multimodal large language models (MLLMs) have significant potential to enhance various aspects of daily life, from improving communication to facilitating learning and problem-solving. Mobile phones, as essential daily companions, represent the most effective and accessible deployment platform for MLLMs, enabling seamless integration into everyday tasks. However, deploying MLLMs on mobile phones presents challenges due to limitations in memory size and computational capability, making it difficult to achieve smooth and real-time processing without extensive optimization. In this paper, we present BlueLM-V-3B, an algorithm and system co-design approach specifically tailored for the efficient deployment of MLLMs on mobile platforms. To be specific, we redesign the dynamic resolution scheme adopted by mainstream MLLMs and implement system optimization for hardware-aware deployment to optimize model inference on mobile phones. BlueLM-V-3B boasts the following key highlights: (1) Small Size: BlueLM-V-3B features a language model with 2.7B parameters and a vision encoder with 400M parameters. (2) Fast Speed: BlueLM-V-3B achieves a generation speed of 24.4 token/s on the MediaTek Dimensity 9300 processor with 4-bit LLM weight quantization. (3) Strong Performance: BlueLM-V-3B has attained the highest average score of 66.1 on the OpenCompass benchmark among models with leq 4B parameters and surpassed a series of models with much larger parameter sizes (e.g., MiniCPM-V-2.6, InternVL2-8B).

解读

一句话总结

本文提出了一种名为BlueLM-V-3B的算法和系统协同设计方法,针对移动设备上的多模态大型语言模型(MLLMs)的高效部署,实现了小型化、快速响应和强性能。

问题1:这篇论文想要解决什么具体问题?

• 问题背景:移动设备上部署MLLMs面临内存和计算能力的限制,难以实现平滑和实时处理。 • 现有方案不足:现有方案在移动设备上的部署效率低下,模型大小和计算速度成为瓶颈。 • 研究目标:提出一种算法和系统协同设计方法,实现MLLMs在移动设备上的高效部署。

问题2:论文的核心创新点是什么?

• 技术创新:提出了放松的宽高比匹配方法和批量图像编码,优化了动态图像分辨率方案。 • 方法改进:设计了系统优化,包括硬件感知部署、分块计算和混合精度部署。 • 优势:相比现有方法,BlueLM-V-3B在模型性能和部署效率方面均有显著提升。

问题3:实验结果如何验证了方法的有效性?

• 关键实验:在OpenCompass基准测试中,BlueLM-V-3B取得了最高的平均得分(66.1),并超过了参数量更大的模型。 • 性能提升:在MediaTek Dimensity 9300处理器上,BlueLM-V-3B的生成速度达到24.4 token/s。 • 对比结果:与MiniCPM-V-2.6和InternVL2-8B等模型相比,BlueLM-V-3B在性能上具有明显优势。

问题4:这个研究的实际应用价值是什么?

• 应用场景:适用于移动设备上的多模态交互、学习辅助和问题解决等场景。 • 实施建议:结合实际应用场景,进行模型优化和系统适配。 • 局限与展望:未来可进一步优化模型的可扩展性和性能,探索更先进的算法。

来源

机器可读索引:llms.txt