ERNIE 5.0 Technical Report

AK's Picks LLM RLHF MoE Other LLM Multimodal Intelligence Vision-Language Pre-training FGCMA Other MMI
本报告介绍了ERNIE 5.0——一种原生自回归的基础模型,专为统一的多模态理解与生成而设计,支持文本、图像、视频和音频等多种模态。所有模态均基于统一的“下一组词元预测”(next-group-of-tokens prediction)目标,从零开始联合训练;该目标依托于一种超稀疏的“混合专家”(MoE)架构,并采用与模态无关的专家路由机制。为应对大规模部署中面临的多样化资源约束(如内存、算力与延迟限制)等实际挑战,ERNIE 5.0引入了一种全新的弹性训练范式:在单次预训练过程中,模型同步学习一个具备不同深度、专家容量及路由稀疏度的子模型族,从而可在内存受限或时延敏感的实际场景中,灵活权衡模型性能、参数规模与推理延迟之间的关系。此外,我们系统性地解决了将强化学习规模化应用于统一基础模型所面临的关键难题,确保其在超稀疏MoE架构及复杂多模态环境下,仍能实现高效、稳定的后训练优化。大量实验表明,ERNIE 5.0在各类模态任务上均展现出强劲且均衡的综合性能。据我们所知,在目前已公开披露的模型中,ERNIE 5.0是首个达到生产级规模、参数量达万亿级别、同时支持多模态理解与生成的统一自回归模型。为进一步推动相关研究,我们不仅提供了该统一模型中模态无关专家路由机制的详细可视化分析,还开展了全面的弹性训练实证研究,旨在为学术界与工业界提供深刻洞见与坚实参考。
In this report, we introduce ERNIE 5.0, a natively autoregressive foundation model desinged for unified multimodal understanding and generation across text, image, video, and audio. All modalities are trained from scratch under a unified next-group-of-tokens prediction objective, based on an ultra-sparse mixture-of-experts (MoE) architecture with modality-agnostic expert routing. To address practical challenges in large-scale deployment under diverse resource constraints, ERNIE 5.0 adopts a novel elastic training paradigm. Within a single pre-training run, the model learns a family of sub-models with varying depths, expert capacities, and routing sparsity, enabling flexible trade-offs among performance, model size, and inference latency in memory- or time-constrained scenarios. Moreover, we systematically address the challenges of scaling reinforcement learning to unified foundation models, thereby guaranteeing efficient and stable post-training under ultra-sparse MoE architectures and diverse multimodal settings. Extensive experiments demonstrate that ERNIE 5.0 achieves strong and balanced performance across multiple modalities. To the best of our knowledge, among publicly disclosed models, ERNIE 5.0 represents the first production-scale realization of a trillion-parameter unified autoregressive model that supports both multimodal understanding and generation. To facilitate further research, we present detailed visualizations of modality-agnostic expert routing in the unified model, alongside comprehensive empirical analysis of elastic training, aiming to offer profound insights to the community.
许愿