XYZNOT

Papers · arXiv 2610.23374

MOSS-Image Technical Report

Published cs.CV arXivPDF

Read with translation and AI

Summary in three lines

  1. 🎯 Open-weight text-to-image models struggle with complex multi-element layouts and dense, sustained bilingual text rendering from concise user prompts.
  2. 🔧 Pretrains a 5B single-stream DiT from scratch using multi-granularity captions and structured bounding-box JSON supervision, paired with an inference-time LLM agent for intent-aware prompt enhancement.
  3. 📈 Achieves state-of-the-art open-weight performance on LongLongTextBench with 96.3 Mean-6 text coverage, and reaches 1698.70 Elo on RealLayoutArena (ranking second overall behind GPT Image 2).

Abstract

Recent closed-source image generation systems can produce diverse visual content from simple compositions to information-dense graphics, yet open-weight text-to-image models still struggle with dense text and intricate layouts. To narrow this gap, we introduce MOSS-Image, an open generation system that combines high-fidelity visual synthesis with intent-aware composition. First, we pretrain a 5B single-stream diffusion transformer (DiT) from scratch with a carefully designed recipe, enabling bilingual long-form text rendering and precise layout control. Second, we develop an intention-aware agentic prompt enhancement (PE) module that translates diverse user requests into detailed content and layout specifications. Together, they enable MOSS-Image to generate text-rich and layout-coherent images. We further introduce LongLongTextBench (LLTB) for evaluating long-form English and Chinese text rendering, and RealLayoutArena (RLA) for end-to-end layout-rich generation. MOSS-Image achieves state-of-the-art performance among open-weight models on LLTB, with an average text coverage of 96.3%. On RLA, MOSS-Image ranks second in the end-to-end system comparison, while its backbone ranks first among generators evaluated with shared enhanced prompts. We will release the model, training recipe, and evaluation framework to support further research and promote the text-to-image community.

Reading guide

Problem and motivation

Closed-source image generators (e.g., GPT Image 2, Seedream 5.0 Pro) can reliably produce complex visual communication materials such as posters, infographics, and user interfaces. Open-weight models, however, still struggle with two coupled challenges:

  1. Rendering: Faithfully drawing sustained, dense bilingual (English/Chinese) text and adhering strictly to 2D spatial layouts.
  2. Specification: Translating brief user prompts (often fewer than 10 words) into rich, structured content plans and coordinate layouts.

Existing text benchmarks like LongTextBench average only 120 characters per target and are near saturation (96–98% coverage), failing to test page-length literary text or complex multi-element compositions.

Key ideas

  • Unified Text-Conditioning Pathway: Natural language recaptions and structured bounding-box layouts (JSON) are fed through a single text conditioning pathway (via a frozen Qwen3.5-9B encoder), allowing the backbone to handle both descriptive prose and coordinate-level layout constraints natively.
  • Annotate Rather Than Filter: Instead of discarding imperfect images (e.g., watermarks, compression artifacts, blur), the team retains broad visual distributions and explicitly describes these artifacts in the text captions.
  • Preserving Line Breaks: Exact newline characters (\n) in annotations are retained to explicitly teach the DiT how text wraps and organizes across lines.
  • Agentic Prompt Enhancement (PE): An inference-time planner (GPT-6) routes requests by medium (poster, infographic, UI), retrieves knowledge and visual references, and produces structured layout JSON specifications.
  • New Benchmarks: Introduction of LongLongTextBench (LLTB) (averaging 1,339.8 characters across English and Chinese) and RealLayoutArena (RLA) (blind pairwise human evaluations across 61 complex design tasks).

Method

1. Backbone Architecture

  • Model: 5B single-stream Diffusion Transformer (DiT), 42 blocks, hidden size 3072, 24 heads (128 dims/head), FFN size 8192.
  • Encoders: Frozen Qwen3.5-9B text encoder and frozen FLUX.2 VAE (patch size , effective stride 16 pixels).
  • Feed-Forward: SiTU-GLU with smooth capping :
  • 4D RoPE: Query/key heads are partitioned along coordinates representing reference index, sequence position, width, and height: Without external reference images, , leaving the leading 32 dimensions unrotated (partial RoPE).
  • Training Loss: Packed flow-matching objective over valid latent tokens across batch samples:
  • Optimizer: Hybrid Muon–AdamW optimizer, applying Muon to eligible 2D matrices and AdamW to vectors/embeddings, yielding ~28–33% faster convergence than AdamW alone.

2. Multi-Stage Training and Supervision

  • Trained over 3 stages up to step 310,000, capping target image area at pixels and text capacity at 4,096 tokens.
  • Captions are sampled at short, medium, and long granularities, mixed with explicit layout annotations (scene/element or summary/items JSON schemas).

Results

  • LongLongTextBench (LLTB): MOSS-Image achieves 96.3 Mean-6 coverage across 6 language-length bins, outperforming open-weight models including Qwen Image 2512 (64.9 Mean-6). Ideogram 4.0 reaches 63.5 (or 68.1 if safety refusals are excluded).
  • 7Bench Layout Control: MOSS-Image reaches 0.8786 and 0.7031 Layout AUC, outperforming Ideogram 4.0 (0.4449 , 0.2046 Layout AUC), GPT Image 2 (0.3042 ), and Seedream 5.0 Pro (0.3273 ).
  • RealLayoutArena (RLA): In pairwise human evaluation on 61 design tasks:
    • End-to-end: MOSS-Image scores 1698.70 Elo, ranking second behind GPT Image 2 (1844.35 Elo) and ahead of Seedream 5.0 Pro (1661.16 Elo).
    • Shared Enhanced Prompts: When all generators receive the same natural-language prompt rewrite, the MOSS-Image backbone ranks first at 1807.34 Elo.
    • Prompt Strategy: JSON layout conditioning obtains 1622.87 Elo, beating natural prose layout (1506.20) and short prompts (1081.70).

Limitations and open questions

  • The DiT backbone cannot natively condition on image references or perform iterative localized image editing.
  • The Layout Prompt Enhancer relies on external commercial language models (GPT-6); aesthetic planning or factual inaccuracies in LLM outputs directly constrain generation quality.
  • Performance on the longest Chinese text tasks (92.4% coverage) still lags slightly behind English long text (97.1%).

Key terms

MOSS-Image
An open text-to-image generation system pairing a 5B single-stream DiT backbone with an intent-aware agentic prompt enhancer.
SiTU-GLU
A gated feed-forward activation layer using smooth hyperbolic tangent capping functions to stabilize training dynamics.
4D RoPE
Rotary position embeddings decomposed across reference index, temporal sequence position, width, and height coordinates.
Muon
A matrix-update optimizer based on Newton–Schulz steps, combined in a hybrid setup with AdamW to accelerate DiT convergence.
Layout PE
An LLM-driven inference-time agent that routes user design queries, inspects visual references, and generates structured layout specifications in JSON.
LongLongTextBench (LLTB)
A benchmark of 240 bilingual literary-text rendering tasks averaging ~1,340 characters per prompt to test sustained text generation.
RealLayoutArena (RLA)
A blind human pairwise comparison arena evaluating posters, infographics, and user interfaces across 61 complex design tasks.
Line-Break Alignment
Preserving literal newline characters in text annotations to supervise how text arranges into multi-line layouts during diffusion denoising.

Questions

Why does MOSS-Image use a single-stream DiT instead of a dual-stream architecture?

A single-stream DiT jointly processes text tokens and image latent tokens in shared self-attention blocks, allowing natural prose and structured JSON bounding boxes to be conditioned through the same textual interface.

How does MOSS-Image achieve better text rendering through line breaks?

By transcribing text verbatim with line breaks preserved, the model receives explicit supervision on line organization. Case studies demonstrate that explicit line breaks help characters emerge earlier and clearer during denoising.

Why was the data curation philosophy 'annotate rather than filter' adopted?

Ablation experiments showed that filtering images based on aspect ratio, entropy, watermarks, or blur degraded overall visual diversity and cut text scores dramatically. Capturing imperfections within the text descriptions preserved distribution coverage without sacrificing output fidelity.

Which bounding-box coordinate format best handles unseen image resolutions?

Zero-centered absolute pixel coordinates generalized better to unseen higher resolutions than normalized [0, 1000] relative coordinates, which tended to shrink elements into the canvas center.

The overview on this page was written by AI from the paper and may contain mistakes. Read the paper for the details.

Read with translation and AI