[Paper Review] Phi-4-Mini Technical Report: Compact yet Powerful Multimodal Language Models via Mixture-of-LoRAs
Phi-4-Mini and Phi-4-Multimodal present compact, high-performance language and multimodal models trained with a mixture-of-LoRAs approach, achieving strong language, code, and multimodal capabilities while keeping the base LM frozen.
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.
Motivation & Objective
- Demonstrate that a compact 3.8B-parameter language model can achieve strong reasoning, math, and coding performance through high-quality data and targeted training.
- Introduce Phi-4-Multimodal, a unified multimodal model that supports multiple modality combinations without degrading the base language model.
- Show that a mixture-of-LoRAs can enable multimodal capabilities while preserving language-only performance and achieve competitive benchmarks across vision, speech, and vision-speech tasks.
Proposed method
- Train Phi-4-Mini with a high-quality, reasoning-rich data mix including curated code datasets and Phi-4 synthetic data.
- Freeze the language backbone and apply modality-specific LoRA adapters for vision and speech/audio to enable multimodal capabilities.
- Use a four-stage vision training pipeline (projector alignment, joint vision training, generative vision-language SFT, multi-frame training) to extend context and capabilities.
- In speech/audio, pre-train with ASR-aligned data, then post-train with curated SFT data to unlock instruction-following in speech/audio modalities.
- Adopt a three-stage reasoning training pipeline: pre-train on ~60B CoT tokens from frontier LLMs, fine-tune on ~200K high-quality CoT samples, and roll-out DPO with ~300K preference samples.
Experimental results
Research questions
- RQ1Can a compact 3.8B-parameter model achieve comparable reasoning and math/coding performance to larger models with high-quality synthetic and curated data?
- RQ2Does a mixture-of-LoRAs enable unified multimodal inference (text, vision, speech) without degrading the language model’s pure-text performance?
- RQ3How does Phi-4-Multimodal perform on vision-language, vision-speech, and speech-language tasks relative to larger or fully fine-tuned models?
Key findings
- Phi-4-Mini (3.8B) achieves strong math and coding reasoning, matching larger models on selected tasks.
- Phi-4-Multimodal provides unified multimodal capabilities by integrating modality-specific LoRAs while keeping the base LM frozen, outperforming cross-attention designs in several benchmarks.
- Phi-4-Multimodal ranks first on the OpenASR leaderboard as of the reported date, with a speech component of 460M LoRA parameters for speech.
- The model delivers state-of-the-art performance for its size on vision-language benchmarks and substantially better performance on vision-speech benchmarks than larger counterparts.
- The speech/audio capabilities include first open-sourced speech summarization and competitive ASR/AST results, often surpassing specialized models (e.g., WhisperV3, SeamlessM4T) in several tasks.
- Reasoning-enhanced Phi-4-Mini demonstrates capabilities on par with or exceeding larger state-of-the-art reasoning systems.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.