2025-06-10 · 专家 · 机器学习 · 自然语言处理

MiniCPM4: Ultra-Efficient LLMs on End Devices

MiniCPM4 是一种专为端设备设计的超高效大型语言模型,通过在模型架构、训练数据、训练算法和推理系统四个关键维度上进行系统创新,实现了高效的计算和推理。

更新于 2025-06-10。作者:MiniCPM Team、Chaojun Xiao、Yuxuan Li、Xu Han、Yuzhuo Bai、Jie Cai、Haotian Chen、Wentong Chen、Xin Cong、Ganqu Cui、Ning Ding、Shengdan Fan、Yewei Fang、Zixuan Fu、Wenyu Guan、Yitong Guan、Junshao Guo、Yufeng Han、Bingxiang He、Yuxiang Huang、Cunliang Kong、Qiuzuo Li、Siyuan Li、Wenhao Li、Yanghao Li、Yishan Li、Zhen Li、Dan Liu、Biyuan Lin、Yankai Lin、Xiang Long、Quanyu Lu、Yaxi Lu、Peiyan Luo、Hongya Lyu、Litu Ou、Yinxu Pan、Zekai Qu、Qundong Shi、Zijun Song、Jiayuan Su、Zhou Su、Ao Sun、Xianghui Sun、Peijun Tang、Fangzheng Wang、Feng Wang、Shuo Wang、Yudong Wang、Yesai Wu、Zhenyu Xiao、Jie Xie、Zihao Xie、Yukun Yan、Jiarui Yuan、Kaihuo Zhang、Lei Zhang、Linyue Zhang、Xueren Zhang、Yudi Zhang、Hengyu Zhao、Weilin Zhao、Weilun Zhao、Yuanqian Zhao、Zhi Zheng、Ge Zhou、Jie Zhou、Wei Zhou、Zihan Zhou、Zixuan Zhou、Zhiyuan Liu、Guoyang Zeng、Chao Jia、Dahai Li、Maosong Sun。

中文摘要

本文介绍了MiniCPM4,这是一种专为端侧设备设计的高效大型语言模型(LLM)。我们通过在四个关键维度上的系统创新实现了这一效率:模型架构、训练数据、训练算法和推理系统。具体来说,在模型架构方面,我们提出了InfLLM v2,这是一种可训练的稀疏注意力机制,它能加速长上下文处理的前填充和解码阶段。在训练数据方面,我们提出了UltraClean,这是一种高效准确的预训练数据过滤和生成策略,以及UltraChat v2,一个全面的监督微调数据集。这些数据集使得仅使用8万亿个训练令牌就能达到令人满意的模型性能。在训练算法方面,我们提出了ModelTunnel v2,用于高效的预训练策略搜索,并通过引入分块回滚来实现负载均衡的强化学习和数据高效的三元LLM,BitCPM,从而改进了现有的后训练方法。在推理系统方面,我们提出了CPM.cu,它集成了稀疏注意力、模型量化和推测采样,以实现高效的预填充和解码。为了满足多样化的端侧需求,MiniCPM4提供了两种版本,分别拥有50亿和80亿参数。充分的评估结果表明,MiniCPM4在多个基准测试中优于类似规模的开源模型,突出了其效率和有效性。值得注意的是,当处理长序列时,MiniCPM4-8B在速度上比Qwen3-8B有显著提升。通过进一步的适配,MiniCPM4成功应用于多种应用,包括基于模型上下文协议的可靠调查生成和工具使用,明显展示了其广泛的应用性。

英文摘要

This paper introduces MiniCPM4, a highly efficient large language model (LLM) designed explicitly for end-side devices. We achieve this efficiency through systematic innovation in four key dimensions: model architecture, training data, training algorithms, and inference systems. Specifically, in terms of model architecture, we propose InfLLM v2, a trainable sparse attention mechanism that accelerates both prefilling and decoding phases for long-context processing. Regarding training data, we propose UltraClean, an efficient and accurate pre-training data filtering and generation strategy, and UltraChat v2, a comprehensive supervised fine-tuning dataset. These datasets enable satisfactory model performance to be achieved using just 8 trillion training tokens. Regarding training algorithms, we propose ModelTunnel v2 for efficient pre-training strategy search, and improve existing post-training methods by introducing chunk-wise rollout for load-balanced reinforcement learning and data-efficient tenary LLM, BitCPM. Regarding inference systems, we propose CPM.cu that integrates sparse attention, model quantization, and speculative sampling to achieve efficient prefilling and decoding. To meet diverse on-device requirements, MiniCPM4 is available in two versions, with 0.5B and 8B parameters, respectively. Sufficient evaluation results show that MiniCPM4 outperforms open-source models of similar size across multiple benchmarks, highlighting both its efficiency and effectiveness. Notably, MiniCPM4-8B demonstrates significant speed improvements over Qwen3-8B when processing long sequences. Through further adaptation, MiniCPM4 successfully powers diverse applications, including trustworthy survey generation and tool use with model context protocol, clearly showcasing its broad usability.

解读

一句话总结

MiniCPM4 是一种专为端设备设计的超高效大型语言模型,通过在模型架构、训练数据、训练算法和推理系统四个关键维度上进行系统创新,实现了高效的计算和推理。

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

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

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

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

来源

机器可读索引:llms.txt