Authors: Pavel Vasilev, Daniil Tikhonov
Mentor: Gleb Molodtsov
Project: Yandex School of Data Analysis (YSDA)
Unified multimodal models often struggle because different tasks (e.g., text understanding vs. image generation) require fundamentally different “knowledge” and processing patterns. When all this knowledge is mixed in a single dense Feed-Forward Network (FFN), the model tries to satisfy all objectives simultaneously, often leading to suboptimal performance or “forgetting.”
Our Hypothesis:
By replacing dense FFNs with Mixture of Experts (MoE) layers, the model can autonomously “route” tokens to specialized experts. We hypothesized the model would separate knowledge based on:
We experimented with the Show-o architecture (1.3B parameters), which unifies Autoregressive (text) and Masked Diffusion (image) modeling.
Base Model: Show-o Unified Transformer (Xie et al., 2024)
We used a GShard Gate with Top-2 selection. To encourage specialization, we employed:
We observed a distinct separation of experts handling text and image tokens. The visualizations below show the gating probability distributions for different layers.
Separation of experts for text and image tokens.
We compared the Fréchet Inception Distance (FID) of our MoE model against the baseline.
While the FID score increased (indicating lower quality), the model successfully learned to route tokens, proving the concept of autonomous specialization.
We attempted to initialize experts by calculating the importance of neurons (Taylor Scores) for text and image tasks.
Extracting experts from segments based on importance scores.
Result: This initialization method improved the MMU Score from 62% to 65%.
We hypothesized that the model would separate tokens based on their source dataset (Data Domain), creating specialized “domain experts.” To encourage this, we even introduced a Learnable Bias ($b_i(t)$) to the router, which we gradually annealed.
Outcome: Despite our efforts, the model failed to separate tokens by data domain. The gating distribution remained mixed across different datasets, suggesting that domain-level specialization is not as “natural” for the model as modality-level specialization (Text vs. Image).
Gating distribution shows no clear separation by data domain.
We encountered significant challenges with the quality of the training data, which likely impacted the model’s ability to learn fine-grained specializations. Issues included:
Examples of data quality issues encountered during research.
We explored two approaches to scaling and specializing unified models:
Future Plans:
Powered by Jekyll and Minimal Light theme.