UniSpark:探索用于多模态理解与生成的混合注意力

·

研究论文 · 2026/11/13

我们提出UniSpark-9B,一个统一的多模态模型,研究用于视觉理解和生成的混合注意力机制。基于混合Transformer专家骨干网络,每个分支约9B参数,UniSpark结合了用于显式令牌交互的全注意力和用于紧凑上下文传播的GatedDeltaNet线性注意力。自回归文本预测和视觉流匹配共同支持视觉问答、文本到图像生成、指令引导编辑和交错文本-图像预测。在交错生成中,噪声视觉目标与后续预测隔离,而干净的视觉表示为后续输出提供上下文。分块协议通过全注意力层中的注意力掩码和线性注意力层中的循环状态保留规则来强制执行这种区分。所选训练源包含159.7M生成样本、213.4M理解样本和624.8K交错序列。四阶段课程联合训练多模态理解和视觉生成,提高答案准确性和指令遵循能力,同时将图像合成扩展到2K。UniSpark在MME-S上得分为2470.3,在GenEval上得分为0.83。定性示例进一步展示了其在交错图像生成、视频合成和视频编辑方面的能力。总之,这些结果表明混合注意力为统一多模态理解和生成提供了有效的骨干。

该研究提出了一种基于混合注意力的统一多模态模型,在理解和生成任务上均取得优秀性能,为多模态模型设计提供了新思路。

We present UniSpark-9B, a unified multimodal model that investigates hybrid attention for visual understanding and generation. Built on a Mixture-of-Transformer-Experts backbone with approximately 9B parameters in each branch, UniSpark combines full attention for explicit token interactions with GatedDeltaNet linear attention for compact context propagation. Autoregressive text prediction and visual flow matching jointly support visual question answering, text-to-image generation, instruction-guided editing, and interleaved text-image prediction. In interleaved generation, noisy visual targets are isolated from subsequent predictions, while clean visual representations provide context for later outputs. A blockwise protocol enforces this distinction through attention masks in full-attention layers and recurrent-state retention rules in linear-attention layers. The selected training sources contain 159.7M generation samples, 213.4M understanding samples, and 624.8K interleaved sequences. A four-stage curriculum jointly trains multimodal understanding and visual generation, refining answer accuracy and instruction following while extending image synthesis to 2K. UniSpark scores 2470.3 on MME-S and 0.83 on GenEval. Qualitative examples further illustrate its capabilities in interleaved image generation, video synthesis, and video editing. Together, these results demonstrate that hybrid attention provides an effective backbone for unified multimodal understanding and generation.

阅读原文

参与讨论