Command Palette
Search for a command to run...
Beers: 사전 학습된 비전-언어 모델에서 픽셀 공간 생성을 여는 방법
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 예측의 문제를 해결하기 위해 게이트 상세-잔차 경로에 차원 병목을 도입하고 픽셀 예측 헤드에 세 개의 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 p, spatial unshuffling by a factor m reduces the grid to (h/m)×(w/m). A Low-Resolution Head processes this grid using four Transformer blocks, projecting each token to m2×1024 channels. Spatial rearrangement restores the h×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 3p2 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 denote the rearranged low-resolution feature at patch i and ei the corresponding shallow embedding. The residual ai and fused feature zi are computed as:
ai=Wupϕ(WdownLN(ei)) zi=LN(li+g(li)LN(ai))The projections Wdown and Wup reduce and restore the channel dimension, with SiLU activation ϕ between them. The gate g 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 and Gaussian noise ϵ∼N(0,I):
xσ=(1−σ)x0+σsNϵwhere σ is the noise level sampled from a Shifted Logit-Normal distribution, and the scaling factor sN=min(256N,4) adjusts noise magnitude based on the number of ViT patches N. The model predicts the clean image x^0=fθ(xσ,c,σ) using an x-prediction and v-loss objective:
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. 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.