UniCanvas: A Diffusion-base Unified Model for Text-in-Image Joint Generation

TL;DR

UniCanvas employs diffusion models on a shared pixel canvas for joint text-image generation, significantly enhancing multi-step multimodal reasoning.

cs.CV 🔴 Advanced 2026-06-03 22 views
Zeyuan Yang Hao-Wei Chen Xueyang Yu Yuncong Yang Haoyu Zhen Ziqiao Ma Maohao Shen Chuang Gan
multimodal generation diffusion models text-in-image unified architecture multi-step reasoning

Key Findings

Methodology

UniCanvas utilizes a diffusion-based unified framework, embedding both text and images into a common pixel canvas. It operates in two stages: first, semantic writing of text onto the canvas; second, scene updating based on the enriched canvas. The training employs flow matching to learn transformations and CLIP-based regularization to ensure semantic alignment and text readability. The model refines the canvas iteratively through the reverse diffusion process, enabling seamless multimodal interaction without external VLMs or discrete text tokens. This end-to-end approach allows for continuous multi-step reasoning and content synthesis within a single architecture.

Key Results

  • On the VSP spatial planning benchmark, UniCanvas achieves an average success rate of 77%, surpassing BAGEL (55%) and GPT-4o (46%), especially excelling in long-horizon multi-step reasoning tasks.
  • In RLBench robotic manipulation, the generated action sequences are more coherent and accurate, with error rates reduced by 20% compared to Nano-Banana.
  • In terms of text readability and semantic consistency, the model's CLIP regularization improves optical text recognition by over 20%, with BLEU and ROUGE scores significantly higher than baselines.

Significance

This work advances the field by integrating continuous multimodal reasoning directly in pixel space, breaking the traditional separation of understanding and generation. It addresses long-standing challenges in maintaining spatial and semantic coherence over multiple steps, crucial for applications like autonomous robots and virtual scene understanding. The unified diffusion approach offers a promising direction for scalable, end-to-end multimodal systems capable of complex reasoning, marking a significant step toward truly intelligent visual-language models.

Technical Contribution

UniCanvas introduces a novel pure diffusion architecture operating on a shared pixel canvas, eliminating the need for external VLMs or symbolic tokens. The two-stage process separates reasoning and synthesis but shares a single backbone, enabling multi-step reasoning with continuous state updates. The integration of flow matching and CLIP-based regularization ensures semantic fidelity and text legibility. This design fundamentally differs from prior models that rely on separate modules or autoregressive token decoding, offering a unified, end-to-end solution for multimodal content generation and reasoning.

Novelty

This research is the first to apply diffusion models for joint text and image generation directly in pixel space, enabling optical writing of semantic content and scene updates within a single unified framework. Unlike previous approaches that treat text and image generation separately, UniCanvas performs multi-step reasoning and content synthesis simultaneously, establishing a new paradigm for end-to-end multimodal modeling.

Limitations

  • The model struggles with very complex scenes where semantic drift and text blurring occur, mainly due to error accumulation in the reverse diffusion process.
  • Training requires large-scale annotated datasets and high computational resources, limiting accessibility for some applications.
  • Generalization to highly diverse or unseen scenarios remains limited, necessitating further research into more robust multi-scale and reasoning mechanisms.

Future Work

Future directions include integrating multi-scale reasoning modules, exploring reinforcement learning for content consistency, and developing more efficient training strategies. Extending the framework to handle more complex, real-world scenarios and reducing computational costs will be key to practical deployment.

AI Executive Summary

The rapid development of multimodal content generation has revealed a fundamental challenge: how to seamlessly integrate understanding and synthesis of text and images within a single, unified system. Traditional models often treat these tasks separately, leading to disjointed reasoning and limited coherence. Diffusion models, known for producing photorealistic visuals, have recently gained prominence, but their application to joint text-image generation has been limited by the difficulty of embedding textual semantics directly into pixel-level representations.

UniCanvas addresses this gap by proposing a novel diffusion-based architecture that operates entirely within a shared pixel canvas. This approach enables the model to 'write' semantic text directly onto images and iteratively update scene states, supporting multi-step reasoning and content synthesis in a unified manner. The core innovation lies in the two-stage process: first, the model performs semantic reasoning by 'drawing' text as optical patterns, and second, it updates the scene based on instructions, all within the same diffusion backbone. The training leverages flow matching to learn transformations and employs CLIP regularization to maintain semantic fidelity and text readability.

Experimental results demonstrate that UniCanvas significantly outperforms existing models in complex tasks such as spatial planning and robotic manipulation, achieving success rates of 77% on VSP and reducing action errors by 20% on RLBench. The model's ability to maintain spatial and semantic coherence over multiple steps marks a breakthrough in continuous multimodal reasoning. Despite these advances, challenges remain in handling highly complex scenes and reducing training costs. Future work will focus on improving scalability, efficiency, and generalization, aiming to bring this technology closer to real-world applications such as autonomous robots, virtual assistants, and interactive AI systems.

Deep Analysis

Background

多模态生成技术经历了从符号化到深度学习的演变。早期依赖规则和模板,后续引入卷积神经网络(CNN)和Transformer架构,显著提升理解与表达能力。近年来,扩散模型如DDPM和Score-based Models在图像生成中表现出色,代表算法如Stable Diffusion和Denoising Diffusion Probabilistic Models(DDPM)。视觉-语言模型(VLM)如CLIP实现跨模态语义对齐,推动了文本指导的图像生成。尽管如此,现有模型多在单一任务中表现良好,难以实现多步、多模态的连续推理,成为研究瓶颈。

Core Problem

当前多模态生成模型多采用分离的文本解码和图像合成架构,导致语义一致性和空间连续性不足。在多步推理场景中,模型难以保持状态一致,容易出现漂移和信息丢失。传统方法依赖外部VLM或离散文本表示,限制了端到端连续推理能力。解决这一问题需要在像素空间实现统一推理与生成机制,确保多模态内容在时间和空间上的连续性。

Innovation

UniCanvas的创新点在于:1)在共享像素画布上使用纯扩散架构实现文本与图像的联合生成,无需外部VLM或离散文本;2)引入两个阶段——语义“书写”和场景“更新”——实现多步推理与内容合成的分离与融合;3)结合流匹配和CLIP正则化,确保语义一致性和文本可读性。这些创新使模型在连续多步任务中保持内容的空间和语义连贯,突破了传统模型的限制。

Methodology

  • �� 输入:初始图像和指令,编码为潜在空间。
  • �� 阶段一:利用流匹配学习在像素画布上“书写”文本,编码语义信息。
  • �� 阶段二:根据丰富的画布状态,更新场景图像,完成场景推理。
  • �� 训练中:引入CLIP对齐正则,确保文本在图像中的可读性和语义一致。
  • �� 反向扩散过程:逐步细化画布,实现多模态内容的连续生成。
  • �� 训练目标:最小化流匹配损失和CLIP对齐损失,优化模型参数。

Experiments

在VSP空间规划和RLBench机器人任务上进行评估,使用合成的训练集和真实场景测试。模型与多种基线(如BAGEL、Nano-Banana)比较,指标包括成功率、文本可读性和动作准确性。超参数包括扩散步骤数、CLIP正则系数等。还进行了消融实验验证流匹配和CLIP正则的贡献。

Results

UniCanvas在空间规划任务中,成功率达77%,优于BAGEL的55%,在机器人任务中动作连贯性提升明显,误差降低20%。文本可读性指标提升20%以上,语义一致性显著增强。模型在多步推理中表现出优越的连续性和稳定性,验证了其在复杂场景中的应用潜力。

Applications

模型可应用于机器人自主导航、虚拟环境交互、复杂场景理解等领域,支持多步指令执行和场景推理。只需输入场景图像和任务指令,即可实现连续推理和场景更新,极大提升智能系统的自主能力。

Limitations & Outlook

模型在极端复杂场景下仍存在语义漂移和文本模糊的问题,训练成本较高,依赖大量标注数据。未来需优化推理效率,增强泛化能力,适应更复杂的应用环境。

Plain Language Accessible to non-experts

想象你在用一支神奇的笔画画,不仅可以画出漂亮的图片,还能在画上写字。以前,画画和写字需要用不同的笔和方法,现在这个新技术让它们变成一体。它就像你用一支万能笔,先在画布上写出故事里的字,再根据字画出场景,然后再用同一支笔把场景变得更完整。这个过程可以反复多次,就像你在逐步完善一幅画。这样,机器人也能像你一样,边画边写,理解故事,做出漂亮的场景。虽然还会在特别复杂的画面中出错,但这个方法让机器变得更聪明,能自己画画和写故事了。

ELI14 Explained like you're 14

想象你在用一支神奇的笔画画,不仅可以画出漂亮的图片,还能在画上写字。以前,画画和写字需要用不同的笔和方法,现在这个新技术让它们变成一体。它就像你用一支万能笔,先在画布上写出故事里的字,再根据字画出场景,然后再用同一支笔把场景变得更完整。这个过程可以反复多次,就像你在逐步完善一幅画。这样,机器人也能像你一样,边画边写,理解故事,做出漂亮的场景。虽然还会在特别复杂的画面中出错,但这个方法让机器变得更聪明,能自己画画和写故事了。

Glossary

Diffusion Model (扩散模型)

一种通过逐步去噪生成高质量内容的生成模型,广泛应用于图像合成。

UniCanvas采用扩散模型实现多模态内容的连续生成。

Flow Matching (流匹配)

学习潜在空间中连续变换的技术,用于内容的逐步变化。

训练模型在像素画布上“写字”和“更新”场景。

CLIP (Contrastive Language-Image Pretraining)

跨模态预训练模型,用于对齐文本和图像的语义空间。

确保画布上的文本与语义一致,提高可读性。

Pixel Canvas (像素画布)

模型用来共同表达和更新文本与图像的共享像素空间。

UniCanvas在此基础上实现多模态联合生成。

Multi-step Reasoning (多步推理)

模型在连续多次操作中逐步更新状态,进行复杂推理。

模型在空间规划和机器人任务中表现优越。

Open Questions Unanswered questions from this research

  • 1 如何进一步提升模型在极端复杂场景中的语义保持能力仍未解决,需结合更强的推理机制和多尺度建模。
  • 2 模型训练成本较高,未来需探索更高效的训练策略和模型压缩技术。

Applications

Immediate Applications

机器人导航

支持机器人在复杂环境中通过连续视觉推理执行多步骤任务,提高自主操作能力。

Long-term Vision

虚拟环境自主交互

未来可实现虚拟世界中智能体的自主理解、推理和创造,推动虚拟现实和增强现实的发展。

Abstract

Recent years have seen remarkable progress in unified vision-language models handling both multimodal understanding and generation within a single architecture. While autoregressive VLMs can reason across modalities, they fail to generate high-quality images. In contrast, diffusion models produce photorealistic visuals yet struggle to generate coherent text, making it challenging to develop a single unified model that can seamlessly handle both visual and text generation. Recent advances suggest that language can be effectively embedded within visual representations, allowing models to reason about textual semantics directly from images. To this end, we propose UniCanvas, a first attempt that unifies diffusion models to generate interleaved multimodal contents through text-in-image generation. Diffusion models naturally capture transformations on a shared pixel canvas, which can be viewed as world models of visual change. Instead of producing discrete text tokens, the model learns to represent language as visual patterns inside images, leveraging its inherent multimodal embedding space. This design allows the model to "draw" text naturally within a single pixel canvas during image synthesis, achieving seamless multimodal generation. Experiments demonstrate that UniCanvas improves performance over previous unified models, positioning text-in-image generation with diffusion models as a promising unified multimodal generation paradigm.

cs.CV