Rust in Everything
← Papers

UniSpark: Exploring Hybrid Attention for Multimodal Understanding and Generation

Jiancheng Pan, Yuzheng Liu, Hengyuan Cao, Qiyuan Zhang, Yangyan Li, Biao Gong et al.

2026-11-13▲ 12arXiv 2611.16517v1Hugging Face

AI-generated from the full paper (deepseek-flash). It may contain mistakes; check the original.

TL;DR

UniSpark-9B is a unified multimodal model that combines MoT expert routing with full and GatedDeltaNet linear attention and a blockwise clean-context protocol for understanding, generation, editing, and interleaved prediction.

Problem

Unified models must support multimodal understanding and continuous visual generation, but interleaved continuous generation creates a conflict: noisy denoising targets must not contaminate later predictions, while clean visual outputs must remain available as context. High-resolution and multi-image inputs also increase visual-token workload, motivating hybrid attention. The paper investigates how full and linear attention interact across layers for both causal text prediction and iterative visual denoising.

Method

UniSpark builds on a Mixture-of-Transformer-Experts backbone with understanding and generation branches of approximately 9B parameters each and a Qwen3.5 hybrid-attention backbone. Text and semantic visual features use the understanding expert, while VAE latents use the generation expert; full attention and shared recurrent states exchange information. The model is trained jointly with autoregressive text prediction and visual flow matching. A blockwise information-flow protocol keeps a noisy visual block private from later blocks using full-attention visibility masks and discards its linear-attention recurrent-state and convolution-history updates after local computation on the noisy block. Clean visual representations update public context; training uses teacher forcing from ground-truth images, and inference encodes completed model outputs. Training uses a four-stage curriculum with online packing and later exploratory video adaptation.

Results

  • UniSpark records the highest listed MME-P, MME-S, MMBench, and MMVP scores; compared with BAGEL 7B MoT it gains on MM-Vet and MathVista. §6.2
  • After unified SFT, UniSpark achieves overall GenEval 0.83, with higher single-object, color, and two-object scores than counting, position, and attribute binding. §6.3
  • UniSpark reports DPG-Bench overall 80.54, below BAGEL 85.07 and LLaDA2.0-Uni 87.76, with Entity strongest and Attribute, Relation, and Other lower. §6.3
  • On ImgEdit, UniSpark obtains overall reference score 3.13, strongest in style and object addition and weakest in extraction and hybrid editing; the judge differs from baselines. §6.4
  • Against BAGEL, UniSpark reduces median image-generation latency with reported speedups at shared resolutions, and is faster at 2048x2048 while using more peak memory. §6.7
  • At 1,024 visual tokens, UniSpark decodes at 22.19 tokens/s and finishes in 6.02 seconds, between BAGEL and SenseNova-U1 in decoding throughput and total latency. §6.7

Limitations

  • On MMMU-Val UniSpark scores 56.7, below MetaQuery-XL 58.6, and Qwen3.5-9B scores higher on MM-Vet and MathVista; the paper states strong perception does not imply uniformly better reasoning and differences prevent attributing comparisons solely to hybrid attention.
  • GenEval counting 0.68, position 0.67, and attribute binding 0.73 remain difficult, and DPG-Bench Attribute, Relation, and Other are lower, leaving compositional and relational control as priorities.
  • ImgEdit scores use a different Qwen3-VL judge from published baselines, so they are reference results rather than a direct ranking; extraction and hybrid editing are the lowest categories.
  • At 2048x2048 peak allocated memory is 62.74 GB versus 37.39 GB for SenseNova-U1; the paper states system-level measurements do not isolate the effect of hybrid attention.

Key points

  • UniSpark combines token-type expert routing with full attention and GatedDeltaNet linear attention in a shared backbone. §3.2
  • Text and semantic visual features use the understanding expert, while VAE latents use the generation expert; the experts exchange information through full attention and shared recurrent states. §1
  • A noisy visual block reads its public prefix but is hidden from later blocks; full-attention layers use block visibility masks and linear-attention layers discard private state and convolution-history updates after local computation on a noisy block. §1
  • Clean visual representations update public context; training uses teacher forcing from ground-truth images and inference encodes completed model outputs. §1
  • The backbone is trained jointly with autoregressive text prediction and visual flow matching. §3.3
  • Selected sources contain 159.7M generation samples, 213.4M understanding samples including 10.0M OCR and 4.5M grounding samples, and 624.8K interleaved sequences. §1
  • The four-stage curriculum comprises Joint Multimodal Foundation, Progressive Resolution Scaling, High-Resolution Refinement, and Supervised Capability Refinement, extending visual generation up to 2K. §5
  • Video adaptation is an exploratory post-SFT stage with the understanding branch frozen, sampling video generation, video editing, image generation, and image editing at 5:1:1:0.1. §5.6

Mind map

UniSpark
Hybrid MoT architecture
Understanding expert
Generation expert
Full attention layers
GatedDeltaNet layers
Token-type routing
Interleaved context protocol
Noisy target private
Clean context public
Full-attention masks
Linear state retention rules
Teacher forcing training
Inference encodes outputs
Objectives
Autoregressive text loss
Visual flow matching
Joint weighted loss
Training curriculum
Joint Multimodal Foundation
Progressive Resolution Scaling
High-Resolution Refinement
Supervised Capability Refinement
Video adaptation
Data
159.7M generation samples
213.4M understanding samples
624.8K interleaved sequences
97.90M text-only samples
Online packing
Evaluation
MME-S 2470.3
GenEval 0.83
DPG-Bench 80.54
ImgEdit 3.13
Efficiency trade-offs