HyperAIHyperAI

Command Palette

Search for a command to run...

Beers: 事前学習済み視覚言語モデルにおけるピクセル空間生成の解放

Yiqian Zhang Xiangzhao Hao Yi Song Yichen Zhang Zhenyu Zhang Shijie Wang Jiaxu Miao Shuohuan Wang Jun Yu Junchi Yan

概要

事前学習済み視覚言語モデル(VLM)は視覚理解において顕著な能力を示してきたが、統一マルチモーダルモデル(UMM)内でこれらの確立された基盤を画像生成へと拡張することは依然として困難である。独立した拡散バックボーンや補助的なVAE表現に依存するのではなく、本論文では、事前学習済みVLMのネイティブな視覚エンコーダと言語バックボーンを直接保持し、理解・生成・編集にわたってマルチモーダル計算を完全に共有するエンドツーエンドのUMMであるBeersを提案する。直接的なRGB予測の課題に対処するため、ゲート付き詳細残差経路に次元ボトルネックを導入し、ピクセル予測ヘッドに3つのTransformerブロックを付加する。さらに、事前学習中にマスク画像再構成を組み込み、指示ベースの編集に関する継続的な共同学習を行うことで、段階的な学習パラダイムを構築する。これによりタスク間の競合を緩和し、理解から生成への円滑な移行を可能にし、マルチターン画像編集へのゼロショット汎化を実現する。広範な実験により、Beersは同規模のUMMの中で最先端の生成性能を達成しつつ、VLMの理解能力をほぼ完全に保持することを示す。

One-sentence Summary

ERNIE Team, Baidu Inc., HDU, SJTU, CASIA, and HITSZ propose Beers, an end-to-end unified multimodal model that preserves a pretrained vision-language model's native visual encoder and language backbone, adds a Dimension Bottleneck in the gated detail-residual pathway and three Transformer blocks for pixel prediction, and employs progressive Masked Image Reconstruction with instruction-based editing co-training to achieve state-of-the-art generation and zero-shot multi-turn editing while retaining understanding.

Key Contributions

  • The paper introduces Beers, an end-to-end unified multimodal model that preserves a pretrained VLM's native visual encoder and language backbone, sharing multimodal computation across understanding, generation, and editing instead of relying on a separate diffusion backbone or auxiliary VAE representation.
  • The method incorporates a Dimension Bottleneck in the gated detail-residual pathway and adds three Transformer blocks in the pixel prediction head to support direct RGB prediction, along with a progressive training scheme combining Masked Image Reconstruction pretraining and instruction-based editing co-training, which enables zero-shot multi-turn image editing and smoother task transfer.
  • Experiments demonstrate state-of-the-art generation performance among unified multimodal models of comparable scale while nearly fully retaining the pretrained VLM's understanding capabilities.

Introduction

Unified multimodal models aim to combine visual understanding and image generation, which is valuable for reusing pretrained visual-language knowledge and for tasks where object counting and spatial relations matter in both directions. However, prior architectures often introduce substantial additional machinery, such as VLM-conditioned diffusion generators, separate visual encoding pathways, or task-specific parameters, making unification costly and harder to scale from existing VLMs. Recent work indicates that a pretrained VLM's visual encoder already yields language-aligned representations that can support generation with only lightweight components. The authors therefore treat generation as an extension of visual understanding and study how a pretrained VLM can learn to express the visual relationships it already recognizes in pixels while preserving its reasoning capabilities.

Method

The authors propose Beers, a unified multimodal model designed for visual understanding, image generation, and editing. The overall architecture leverages a shared visual and language backbone initialized from a pretrained vision-language model, augmented with a specialized pixel prediction head for generative tasks.

The shared backbone processes both clean images for understanding and noisy targets for generation and editing. During the understanding phase, the vision encoder patchifies the input image, and the language backbone processes the resulting visual tokens alongside text tokens using causal attention to autoregressively decode responses. For generation and editing, the vision encoder processes the current noisy target at each denoising step. The input sequence incorporates a timestep embedding, text conditions, and any reference-image tokens. Attention within the target image is bidirectional, and the backbone passes the target-token hidden states to the pixel prediction head.

The pixel prediction head is structured to handle high-resolution output efficiently. Given an image with patch size ppp, spatial unshuffling by a factor mmm reduces the grid to (h/m)×(w/m)(h/m) \times (w/m)(h/m)×(w/m). A Low-Resolution Head processes this grid using four Transformer blocks, projecting each token to m2×1024m^2 \times 1024m2×1024 channels. Spatial rearrangement restores the h×wh \times wh×w grid with 1024 channels per patch. Following fusion with a detail residual, a High-Resolution Head applies six Transformer blocks and projects each patch to 3p23p^23p2 RGB values. Both heads utilize pre-normalization Transformer blocks with RMSNorm, query-key normalization, and SwiGLU feed-forward layers, omitting Adaptive Layer Normalization. Instead, time conditioning is applied through attention by prepending a projected timestep embedding as a token to each image sequence.

To preserve fine-grained details, the authors introduce a Bottleneck-Gated Detail Residual mechanism called HiGate. Shallow patch embeddings are extracted from the noisy target before positional information is added, forming a high branch. A dimension bottleneck restricts the information flow through this branch. The high-branch residual is fused with features from the Low-Resolution Head using a scalar gate predicted from the low-resolution features. Let li∈R1024\mathbf{l}_i \in \mathbb{R}^{1024}li​∈R1024 denote the rearranged low-resolution feature at patch iii and ei\mathbf{e}_iei​ the corresponding shallow embedding. The residual ai\mathbf{a}_iai​ and fused feature zi\mathbf{z}_izi​ are computed as:

ai=Wupϕ(WdownLN⁡(ei))\mathbf{a}_i = W_{\mathrm{up}} \phi(W_{\mathrm{down}} \operatorname{LN}(\mathbf{e}_i))ai​=Wup​ϕ(Wdown​LN(ei​)) zi=LN⁡(li+g(li)LN⁡(ai))\mathbf{z}_i = \operatorname{LN}(\mathbf{l}_i + g(\mathbf{l}_i) \operatorname{LN}(\mathbf{a}_i))zi​=LN(li​+g(li​)LN(ai​))

The projections WdownW_{\mathrm{down}}Wdown​ and WupW_{\mathrm{up}}Wup​ reduce and restore the channel dimension, with SiLU activation ϕ\phiϕ between them. The gate ggg consists of two linear layers with an intervening SiLU, and its final layer is zero-initialized to ensure the detail residual starts at zero.

Finally, an RGB-Patch Refinement module applies three Transformer blocks to jointly refine the output patches before unpatchification. This allows each patch to utilize context from the full grid to reduce blocking artifacts. The refinement blocks operate without a time token, and their attention output and feed-forward down projections are zero-initialized to start as an identity map.

For training, the authors employ pixel-space flow matching. A noisy target is constructed by interpolating between a clean image x0\mathbf{x}_0x0​ and Gaussian noise ϵ∼N(0,I)\boldsymbol{\epsilon} \sim \mathcal{N}(\mathbf{0}, \mathbf{I})ϵ∼N(0,I):

xσ=(1−σ)x0+σsNϵ\mathbf{x}_{\sigma} = (1 - \sigma) \mathbf{x}_0 + \sigma s_N \boldsymbol{\epsilon}xσ​=(1−σ)x0​+σsN​ϵ

where σ\sigmaσ is the noise level sampled from a Shifted Logit-Normal distribution, and the scaling factor sN=min⁡(N256,4)s_N = \min\left(\sqrt{\frac{N}{256}}, 4\right)sN​=min(256N​​,4) adjusts noise magnitude based on the number of ViT patches NNN. The model predicts the clean image x^0=fθ(xσ,c,σ)\hat{\mathbf{x}}_0 = f_{\theta}(\mathbf{x}_{\sigma}, \mathbf{c}, \sigma)x^0​=fθ​(xσ​,c,σ) using an x-prediction and v-loss objective:

Lgen=E[MSE(x^0,x0)max⁡(σ,0.05)2]\mathcal{L}_{\mathrm{gen}} = \mathbb{E} \left[ \frac{\mathrm{MSE}(\hat{\mathbf{x}}_0, \mathbf{x}_0)}{\max(\sigma, 0.05)^2} \right]Lgen​=E[max(σ,0.05)2MSE(x^0​,x0​)​]

During joint training, an autoregressive cross-entropy loss is used for understanding. The losses are normalized independently and summed with equal weights: L=Lund+Lgen\mathcal{L} = \mathcal{L}_{\mathrm{und}} + \mathcal{L}_{\mathrm{gen}}L=Lund​+Lgen​. To support Classifier-Free Guidance, text conditioning is randomly dropped with a probability of 0.1 during generation and editing.

The training process follows a progressive five-stage schedule to unify multimodal capabilities.

In Stage 1, the pretrained VLM backbone is frozen while the remaining parameters are trained using text-to-image generation and masked image reconstruction tasks on low-resolution data. Stage 2 transitions to end-to-end training, jointly optimizing generation tasks alongside image understanding and text-only tasks to maintain language capabilities. Stage 3 replaces masked reconstruction with single-turn instruction-based editing, increasing the generation resolution and decaying the learning rate. Stage 4 scales up task complexity and output resolution by incorporating high-resolution images, multi-turn editing samples, and high-quality synthetic data. Finally, Stage 5 applies supervised fine-tuning on a curated subset of generation data to refine image quality, instruction adherence, and output consistency.

Experiment

The experiments evaluate Beers, a model initialized from Qwen3-VL-4B-Instruct with an additional pixel prediction head, on visual understanding, text-to-image generation, and instruction-based editing across a five-stage training procedure. Main results assess whether the model retains visual understanding after joint training and how well it performs individual and combined editing operations. Ablations show that masked image-to-image training recovers understanding lost when generation training is added, and that RGB-patch refinement improves text rendering. Further analysis finds that pixel-space training favors text rendering while latent-space training favors prompt alignment, and that zero-shot multi-turn editing emerges before explicit multi-turn supervision, supporting the conclusion that a lightweight prediction head together with image-conditioned training lets a VLM generate pixels while retaining understanding.

The training recipe organizes Beers training into five progressive stages, from an initial warm-up that updates only new modules to full-model fine-tuning. Learning rates generally decrease across stages, and the final supervised fine-tuning stage uses a short warm-up with cosine decay to a very low minimum rate. Only new modules are trainable in the first stage, while all parameters are updated in the four subsequent stages. Peak learning rates decline from 1e-3 in warm-up to 2e-5 in the final capability expansion and SFT stages. The visual encoder learning rate is progressively reduced, starting with no updates and ending at 1e-6 or lower. Most stages use 2000 warm-up steps, but the final SFT stage uses only 200 warm-up steps and cosine decay over 8K steps.

The Qwen3-VL Instruct reference scores higher than all unified multimodal models on every reported benchmark, indicating a clear advantage over jointly trained unified models. Among unified models, no single model dominates: InternVL-U leads on the most benchmarks, while Janus-Pro and Cheers lead on specific tasks. The results point to different trade-offs in visual reasoning, perception, and text recognition. The Qwen3-VL Instruct reference outperforms every unified model on all listed understanding benchmarks, with especially large gaps on visual reasoning tasks. InternVL-U records the most top scores among unified models, while Janus-Pro leads on MMBench and HallusionBench and Cheers leads on RealWorldQA.

The comparison shows a clear performance gap between generation-only image models and the unified multimodal model in the table. Among generation-only models, Qwen-Image tends to score highest on overall quality, aesthetics, alignment, creativity, and prompt-image alignment, while GLM-Image and HiDream-O1 are competitive on realism and long-text rendering. The unified model, InternVL-U, falls substantially behind across all reported image-quality and text-alignment metrics. InternVL-U, the only unified multimodal model listed, records lower scores than every generation-only model across all quality, aesthetic, alignment, realism, creativity, overall, OneIG, and LongText metrics. Qwen-Image leads the generation-only models in overall image quality and prompt-image alignment on both Chinese and English benchmarks. HiDream-O1 is competitive with GLM-Image on long-text rendering and leads on English long-text prompts among the generation-only models. GLM-Image has the best realism score among generation-only models, but its overall image quality is slightly behind Qwen-Image.

Editing-only models achieve the strongest reported results on both ImgEdit-Bench and GEdit-Bench, with Qwen-Image-Edit-2511 slightly ahead of LongCat-Image-Edit on overall metrics. Unified multimodal models trail the editing-only baselines, although TUNA-2 is closer on ImgEdit-Bench while InternVL-U shows larger gaps. The largest deficits for unified models appear on extraction and hybrid edit operations. Editing-only models lead overall on both benchmarks, while unified multimodal models rank behind. Unified models show their weakest reported performance on extraction and hybrid edits, with large gaps to editing-only models.

After 10k training steps, combining visual understanding with text-to-image generation reduces performance on all six visual understanding benchmarks relative to understanding-only training. Adding masked image-to-image training recovers the lost performance, improving every benchmark over the two-task setup. The resulting mean score slightly exceeds the understanding-only baseline, although one benchmark remains slightly below it. Joint text-to-image training alongside understanding lowers every evaluated understanding benchmark compared with understanding-only training, with the mean dropping from 0.604 to 0.529. Adding masked image-to-image training improves all six benchmark scores over the two-task setup, with HallusionBench showing the largest gain, and the mean rises to 0.615.

The training recipe progresses through five stages, from updating only new modules to full-model fine-tuning, with generally decreasing learning rates and a short final supervised fine-tuning schedule. Benchmark comparisons show that the Qwen3-VL Instruct reference outperforms all unified multimodal models on understanding tasks, while unified models trail generation-only and editing-only baselines on image quality, text alignment, and editing, especially for extraction and hybrid edits. Ablations indicate that adding text-to-image generation to visual understanding lowers understanding performance, but incorporating masked image-to-image training recovers the loss and slightly surpasses the understanding-only baseline.


AIでAIを構築

アイデアからローンチまで — 無料のAIコーディング支援、すぐに使える環境、最高のGPU価格でAI開発を加速。

AI コーディング補助
すぐに使える GPU
最適な料金体系

HyperAI Newsletters

最新情報を購読する
北京時間 毎週月曜日の午前9時 に、その週の最新情報をメールでお届けします
メール配信サービスは MailChimp によって提供されています