UniVL: Unified Vision-Language Embedding for Spatially Grounded Contextual Image Generation

· Source: cs.CV updates on arXiv.org · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Emerging Technologies & Innovation · Depth: Expert, extended

Summary

UniVL introduces "spatially grounded contextual image generation," a new task where textual instructions are rendered directly onto spatial masks within a single visual input, eliminating the need for a standalone text encoder during inference. This framework utilizes a UniVL encoder, adapted from an OCR-pretrained backbone, to fuse visual and semantic intents into a single token sequence. A two-stage pipeline aligns this embedding in VAE space and then conditions a pretrained diffusion model. Evaluated on the UniVL-ImgGen benchmark of 477K mask-annotated images, UniVL achieves superior image quality (FID: 14 to 11, PSNR: 16 to 20) compared to text-prompted baselines. It also significantly boosts efficiency, reducing inference TFLOPs by up to 52% and runtime by up to 44%, while cutting encoder parameters by approximately 92% (4.92B to 401.6M).

Key takeaway

For ML Engineers and AI Scientists building controllable image generation systems, UniVL presents a compelling alternative to traditional dual-encoder setups. By rendering text directly into masks, you can achieve superior spatial-semantic control and drastically cut inference costs, reducing TFLOPs by up to 52% and runtime by 44%. Evaluate integrating this unified visual conditioning approach to streamline your models and enhance per-region generation fidelity without a separate text encoder.

Key insights

UniVL unifies spatial and semantic image generation conditioning by rendering text into masks, eliminating separate text encoders.

Principles

Method

A two-stage pipeline adapts an OCR-pretrained UniVL encoder. Stage 1 aligns its mask-aware fused $f_{\text{VL}}$ embedding with VAE latents. Stage 2 fine-tunes a diffusion model using $f_{\text{VL}}$ as conditioning, augmented with CLIP losses.

In practice

Topics

Best for: Computer Vision Engineer, AI Scientist, Machine Learning Engineer, Research Scientist

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by cs.CV updates on arXiv.org.