[论文解读] MiniCPM-V: A GPT-4V Level MLLM on Your Phone
MiniCPM-V 是一系列在端侧实现高效的多模态大模型,能够在移动设备上达到 GPT-4V 级别的性能,具备强 OCR、高分辨率图像感知、多语言支持,以及较低的幻觉率。
The recent surge of Multimodal Large Language Models (MLLMs) has fundamentally reshaped the landscape of AI research and industry, shedding light on a promising path toward the next AI milestone. However, significant challenges remain preventing MLLMs from being practical in real-world applications. The most notable challenge comes from the huge cost of running an MLLM with a massive number of parameters and extensive computation. As a result, most MLLMs need to be deployed on high-performing cloud servers, which greatly limits their application scopes such as mobile, offline, energy-sensitive, and privacy-protective scenarios. In this work, we present MiniCPM-V, a series of efficient MLLMs deployable on end-side devices. By integrating the latest MLLM techniques in architecture, pretraining and alignment, the latest MiniCPM-Llama3-V 2.5 has several notable features: (1) Strong performance, outperforming GPT-4V-1106, Gemini Pro and Claude 3 on OpenCompass, a comprehensive evaluation over 11 popular benchmarks, (2) strong OCR capability and 1.8M pixel high-resolution image perception at any aspect ratio, (3) trustworthy behavior with low hallucination rates, (4) multilingual support for 30+ languages, and (5) efficient deployment on mobile phones. More importantly, MiniCPM-V can be viewed as a representative example of a promising trend: The model sizes for achieving usable (e.g., GPT-4V) level performance are rapidly decreasing, along with the fast growth of end-side computation capacity. This jointly shows that GPT-4V level MLLMs deployed on end devices are becoming increasingly possible, unlocking a wider spectrum of real-world AI applications in the near future.
研究动机与目标
- 在端侧设备上推动并实现 GPT-4V 级别的多模态能力,以促进现实世界的 AI 应用。
- 设计一个在性能与设备约束之间取得平衡的高效 MLLM 架构与训练方案。
- 在移动级硬件上展示高分辨率视觉编码、OCR 能力和多语言泛化能力。
- 展示端侧部署策略,包括量化、内存优化和 NPU 加速。
提出的方法
- 使用具有 SigLIP SoViT 基的视觉编码器和用于令牌压缩的压缩层的自适应视觉编码流水线。
- 通过一个单层跨注意力模块,使用较少的查询,对视觉令牌进行压缩。
- 通过三阶段预训练(压缩预热、分辨率扩展、自适应编码)进行训练,随后执行 SFT 和 RLAIF-V 对齐。
- 通过利用强大的多语言 LLM 架构作为枢纽并进行定向多语言 SFT,实现多语言泛化。
- 应用 RLAIF-V 通过开源反馈和直接偏好优化(DPO)来降低幻觉。
- 通过量化、内存与编译优化、参数调整及 NPU 加速,研究端侧部署。
实验结果
研究问题
- RQ1MiniCPM-V 是否能够在端侧设备上跨多种基准达到 GPT-4V 级别的性能?
- RQ2哪些架构与训练选择能够在移动硬件上实现高分辨率 OCR 和鲁棒的多模态理解?
- RQ3多语言监督如何影响英语与中文以外语言的多模态能力?
- RQ4哪些部署策略能够在手机上最好地平衡延迟、内存使用和能源效率?
- RQ5RLAIF-V 是否能提高端侧 MLLMs 的可信度并减少幻觉?
主要发现
- MiniCPM-Llama3-V 2.5 在 OpenCompass 基准上超过 GPT-4V-1106、Gemini Pro 和 Claude 3。
- 它在任意纵横比下都表现出强大的 OCR 能力和 1.8M-pixel 级的高分辨率图像感知。
- RLAIF-V 对齐在 Object HalBench 上的幻觉率低于基线参照。
- 多语言监督微调在超过 30 种语言上实现可用性能,且训练 footprint 相对较小。
- 端侧部署通过量化和优化在手机和笔记本电脑上实现可行的延迟和吞吐量,NPU 加速进一步提升视觉编码时间。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。