Papers
Topics
Authors
Recent
Search
2000 character limit reached

UniMAGE: Unified Imaginative Audio-Video Generation

Updated 5 January 2026
  • UniMAGE is a unified model that integrates script drafting and key-shot design by routing text and image tokens through specialized expert transformers.
  • It employs a 'first interleaving, then disentangling' training paradigm to separately optimize narrative reasoning and visual generation for better multimodal outcomes.
  • The model achieves state-of-the-art performance with measurable improvements, including enhanced character identity similarity and prompt adherence compared to previous methods.

UniMAGE is a unified director model for imaginative audio-video generation, integrating the traditionally disjoint processes of script drafting and key-shot design into a single framework. By leveraging the Mixture-of-Transformers (MoT) architecture, UniMAGE routes text and image tokens to specialized “expert” transformer branches, bridging user prompts to long-context, multi-shot film scripts and visually consistent keyframe images. The model introduces a “first interleaving, then disentangling” training paradigm and achieves state-of-the-art performance on open-source benchmarks for narrative coherence and visual quality (Zhang et al., 29 Dec 2025).

1. Architecture and Token Routing

UniMAGE is constructed atop the Mixture-of-Transformers (MoT) backbone derived from Bagel, employing E=2E = 2 expert sub-transformers per layer:

  • Understanding Expert: Text-oriented, responsible for script reasoning.
  • Generation Expert: Image-oriented, responsible for keyframe synthesis.

A lightweight router computes the gating distribution r(x)r(x) for each token (or block), modulating the expert contributions via

MoT(x)=i=1Eri(x)Experti(x),i=1Eri(x)=1,\mathrm{MoT}(x) = \sum_{i=1}^{E} r_i(x)\,\mathrm{Expert}_i(x), \quad \sum_{i=1}^E r_i(x)=1,

where ri(x)r_i(x) is the scalar gating probability and Experti(x)\mathrm{Expert}_i(x) is the output from expert ii.

All token types—text tokens yty_t (shared BPE vocabulary), ViT tokens vjv_j (reference frames, frozen SigLIP2 ViT), and VAE tokens zkz_k (latents from FLUX-based VAE)—are projected to a shared hidden size dd, mixed via multimodal self-attention, and routed accordingly.

2. Script and Data Representation

Scripts are linearized into sequences encapsulating user prompts, character/environment/frame identities, frame and video text annotations, and interleaved keyframe latents. A typical sequence is

r(x)r(x)0

where r(x)r(x)1 is the prompt, r(x)r(x)2 are text annotations, and r(x)r(x)3 are VAE latents. Embeddings for all tokens are unified for multimodal processing.

In-Context ID Prompting is implemented by interspersing identity tokens among image tokens, facilitating character/scene consistency throughout the narrative.

3. Training Paradigm: Interleaving then Disentangling

The UniMAGE training regime is organized into two sequential stages:

3.1 Interleaved Concept Learning (ICL)

  • Joint training over multi-shot scripts r(x)r(x)4 (where r(x)r(x)5 is text, r(x)r(x)6 is keyframe latents).
  • Unified autoregressive objective: r(x)r(x)7 where r(x)r(x)8 denotes the position preceding the r(x)r(x)9th image block.
  • Both MoT(x)=i=1Eri(x)Experti(x),i=1Eri(x)=1,\mathrm{MoT}(x) = \sum_{i=1}^{E} r_i(x)\,\mathrm{Expert}_i(x), \quad \sum_{i=1}^E r_i(x)=1,0 (understanding) and MoT(x)=i=1Eri(x)Experti(x),i=1Eri(x)=1,\mathrm{MoT}(x) = \sum_{i=1}^{E} r_i(x)\,\mathrm{Expert}_i(x), \quad \sum_{i=1}^E r_i(x)=1,1 (generation) receive gradient updates.

3.2 Disentangled Expert Learning (DEL)

  • Script-only (pure text) samples update MoT(x)=i=1Eri(x)Experti(x),i=1Eri(x)=1,\mathrm{MoT}(x) = \sum_{i=1}^{E} r_i(x)\,\mathrm{Expert}_i(x), \quad \sum_{i=1}^E r_i(x)=1,2; text+image pairs update MoT(x)=i=1Eri(x)Experti(x),i=1Eri(x)=1,\mathrm{MoT}(x) = \sum_{i=1}^{E} r_i(x)\,\mathrm{Expert}_i(x), \quad \sum_{i=1}^E r_i(x)=1,3 with stop-gradient on MoT(x)=i=1Eri(x)Experti(x),i=1Eri(x)=1,\mathrm{MoT}(x) = \sum_{i=1}^{E} r_i(x)\,\mathrm{Expert}_i(x), \quad \sum_{i=1}^E r_i(x)=1,4.
  • Objectives:

    • MoT(x)=i=1Eri(x)Experti(x),i=1Eri(x)=1,\mathrm{MoT}(x) = \sum_{i=1}^{E} r_i(x)\,\mathrm{Expert}_i(x), \quad \sum_{i=1}^E r_i(x)=1,5
    • MoT(x)=i=1Eri(x)Experti(x),i=1Eri(x)=1,\mathrm{MoT}(x) = \sum_{i=1}^{E} r_i(x)\,\mathrm{Expert}_i(x), \quad \sum_{i=1}^E r_i(x)=1,6 (MSE over drift fields)
    • Joint optimization:

    MoT(x)=i=1Eri(x)Experti(x),i=1Eri(x)=1,\mathrm{MoT}(x) = \sum_{i=1}^{E} r_i(x)\,\mathrm{Expert}_i(x), \quad \sum_{i=1}^E r_i(x)=1,7

    with MoT(x)=i=1Eri(x)Experti(x),i=1Eri(x)=1,\mathrm{MoT}(x) = \sum_{i=1}^{E} r_i(x)\,\mathrm{Expert}_i(x), \quad \sum_{i=1}^E r_i(x)=1,8.

  • Pre-Context Script Splitting augments text-only phase: scripts are randomly partitioned, and the understanding expert learns narrative continuation from prefixed context.

4. Optimization and Losses

Optimization employs AdamW with learning rate MoT(x)=i=1Eri(x)Experti(x),i=1Eri(x)=1,\mathrm{MoT}(x) = \sum_{i=1}^{E} r_i(x)\,\mathrm{Expert}_i(x), \quad \sum_{i=1}^E r_i(x)=1,9 and a total of ri(x)r_i(x)0 training steps. Primary losses include:

  • Next Token Prediction:

ri(x)r_i(x)1

ri(x)r_i(x)2

  • Expert-Load Balancing (Optional):

ri(x)r_i(x)3

The total stage-wise loss adds balancing terms as needed.

5. Inference Workflow

The inference pipeline follows these steps:

  1. Given user prompt ri(x)r_i(x)4, the Understanding Expert (ri(x)r_i(x)5) generates the full script autoregressively: ri(x)r_i(x)6.
  2. Optionally, an extension or continuation is requested via designated tokens.
  3. Script ri(x)r_i(x)7 is segmented into ri(x)r_i(x)8 shots.
  4. For each shot ri(x)r_i(x)9, the Generation Expert (Experti(x)\mathrm{Expert}_i(x)0) samples VAE keyframe latents Experti(x)\mathrm{Expert}_i(x)1, conditioned on corresponding text.
  5. Latents Experti(x)\mathrm{Expert}_i(x)2 are decoded into images.
  6. Resulting script and images Experti(x)\mathrm{Expert}_i(x)3 are forwarded to downstream audio-video generators (e.g., Veo3), along with extracted dialogue and sound tokens.

High-level pseudocode formally describes both training and inference routines, specifying dataset partitions and parameter initialization.

6. Datasets and Evaluation Metrics

Three principal datasets underpin the training stages:

  • ICL: 450K multi-shot text–image scripts.
  • DEL (text expert): 250K pure text scripts.
  • DEL (image expert): 250K single-shot text–image pairs.

UniMAGE is evaluated on ViStoryBench using metrics: | Metric | Description | Reported UniMAGE SOTA | |-----------------------------|--------------------------------------------------|-----------------------| | Style Similarity (CSD) | Consistency of visual style | - | | Character ID Similarity (CIDS) | Character identity preservation | 59.2 (vs. 57.0) | | Prompt Adherence (Alignment)| Fidelity to user instructions | 80.8 (vs. 62.5) | | OCCM | On-stage character count matching | 88.07 (vs. 87.0) | | Image Quality (Inception) | Standard image quality measure | - | | Aesthetics | Human-rated visual appeal | ≈4.55 (vs. 5.76) |

A human study with 50 participants ranks UniMAGE highest for narrative logic (GSB=0.72), character consistency, and overall quality (Zhang et al., 29 Dec 2025).

7. Significance and Implementation Context

UniMAGE demonstrates the technical feasibility of unifying imaginative reasoning and visual generation in a single scalable framework, substantially improving character consistency and narrative logic in script-to-video pipelines. The architecture, grounded in expertly routed multimodal attention with explicit expert specializations, enables direct re-implementation using Bagel/MoT codebases, provided access to the well-described datasets and hyperparameters. This suggests broad applicability for automated film production and creative multimedia authoring, especially in contexts requiring long-context story coherence and complex visual composition (Zhang et al., 29 Dec 2025).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to UniMAGE.