Phi-4-Mini 技术报告:通过混合 LoRA 实现紧凑而强大的多模态语言模型

Phi-4-Mini Technical Report: Compact yet Powerful Multimodal Language Models via Mixture-of-LoRAs

Sebastien Bubeck Sebastien Bubeck · Microsoft · 2025-03-03 · arXiv:2503.01743 ↗ · 被引 484

打开互动全文版(逐段中英对照 + 图/公式 + 论文问答)→

摘要 · Abstract

我们介绍了 Phi-4-Mini 和 Phi-4-Multimodal,这是紧凑但功能强大的语言和多模态模型。Phi-4-Mini 是一个 38 亿参数的语言模型,在高质量网络和合成数据上训练,显著优于近期同尺寸开源模型,并在需要复杂推理的数学和编码任务上达到两倍尺寸模型的性能。这一成就得益于精心策划的合成数据配方,强调高质量的数学和编码数据集。与其前身 Phi-3.5-Mini 相比,Phi-4-Mini 扩展了词汇量至 20 万 token,以更好地支持多语言应用,并采用分组查询注意力以实现更高效的长序列生成。Phi-4-Multimodal 是一个多模态模型,将文本、视觉和语音/音频输入模态集成到单一模型中。其新颖的模态扩展方法利用 LoRA 适配器和模态特定路由器,允许结合多种模态的多种推理模式而互不干扰。例如,它目前在 OpenASR 排行榜上排名第一,尽管语音/音频模态的 LoRA 组件仅有 4.6 亿参数。Phi-4-Multimodal 支持(视觉+语言)、(视觉+语音)和(语音/音频)输入场景,在广泛任务上优于更大的视觉语言和语音语言模型。此外,我们实验进一步训练 Phi-4-Mini 以增强其推理能力。尽管其紧凑的 38 亿参数规模,该实验版本在推理性能上达到或超越显著更大的模型,包括 DeepSeek-R1-Distill-Qwen-7B 和 DeepSeek-R1-Distill-Llama-8B。

We introduce Phi-4-Mini and Phi-4-Multimodal, compact yet highly capable language and multimodal models. Phi-4-Mini is a 3.8-billion-parameter language model trained on high-quality web and synthetic data, significantly outperforming recent open-source models of similar size and matching the performance of models twice its size on math and coding tasks requiring complex reasoning. This achievement is driven by a carefully curated synthetic data recipe emphasizing high-quality math and coding datasets. Compared to its predecessor, Phi-3.5-Mini, Phi-4-Mini features an expanded vocabulary size of 200K tokens to better support multilingual applications, as well as group query attention for more efficient long-sequence generation. Phi-4-Multimodal is a multimodal model that integrates text, vision, and speech/audio input modalities into a single model. Its novel modality extension approach leverages LoRA adapters and modality-specific routers to allow multiple inference modes combining various modalities without interference. For example, it now ranks first in the OpenASR leaderboard to date, although the LoRA component of the speech/audio modality has just 460 million parameters. Phi-4-Multimodal supports scenarios involving (vision + language), (vision + speech), and (speech/audio) inputs, outperforming larger vision-language and speech-language models on a wide range of tasks. Additionally, we experiment to further train Phi-4-Mini to enhance its reasoning capabilities. Despite its compact 3.8-billion-parameter size, this experimental version achieves reasoning performance on par with or surpassing significantly larger models, including DeepSeek-R1-Distill-Qwen-7B and DeepSeek-R1-Distill-Llama-8B.

核心贡献 · Key contributions

局限 · Limitations

论文章节 · Sections(共 16)

阅读逐段中英对照全文 →