MOSI SII Fudan University Shanghai Jiao Tong University
MOSS-Image

A 5B-parameter base DiT model with high-quality text rendering, layout generation, and efficient fine-tuning.

Tengyue Zhang

Shanghai Jiao Tong University

2026.11.22

引言

Overview

媒体与自媒体报道

国产 5B 生图模型海外突然爆火,4 天超百万下载

知乎

开源图像生成迎来新突破:OpenMOSS 发布 MOSS-Image,主打长文本渲染与可编辑布局

搜狐

国产开源生图模型杀出来了!MOSS-Image 实测:5B 参数、中文长文本与海报排版表现惊艳

哔哩哔哩

复旦开源生图模型 MOSS-Image,目前 API 限时免费!【实测挺能打】

知乎

MOSS-Image 是什么?一文看懂这款 5B 开源文生图模型

凤凰网

Highlights
📐

布局控制

控制文字与视觉元素的位置

✍️

文字渲染

在图像中生成清晰、准确的文字

📜

长提示词支持

最长 4K tokens 的文本提示词

🎨

多样视觉风格

高质量的动漫风格与照片级写实图像

🛠️

易于微调

将基础模型适配到自定义任务和领域

⚡

紧凑高效

基于 5B 主干网络,高效图像生成

🖥️

异构 GPU 训练

采用替代 GPU 平台训练

MOSS-Image-Base · MOSS-Image-SFT
Apache-2.0 · 2026-10-16
官方仓库公开报道 · 截至 2026-11-20
Part 1

模型与训练

1 · 模型与训练

Architecture:单流 DiT

TrainingInference

数据冻结 ❄可训练无参数算子时间步条件text tokenimage token

MOSS-Image Technical Report官方仓库
1 · 模型与训练

SiTU-GLU FFN 与 4D RoPE

SiTU-GLU FFN
$$\mathrm{FFN}(\mathbf{x}) = W_o\!\left[\,c_{\beta_g}(\mathbf{g}) \odot \sigma(\mathbf{g}) \odot c_{\beta_u}(\mathbf{u})\,\right]$$
$$\mathbf{g}=W_g\mathbf{x},\quad \mathbf{u}=W_u\mathbf{x},\quad c_\beta(v)=\beta\tanh(v/\beta)$$

gate 分支是有界的 SiLU;源码中 \(\beta_g=4\),\(\beta_u=25\)。

4D RoPE
$$\mathrm{RoPE}_{4D}(\mathbf{z},\mathbf{p}) = [R_r(r)\mathbf{z}_r;\,R_t(t)\mathbf{z}_t;\,R_w(w)\mathbf{z}_w;\,R_h(h)\mathbf{z}_h]$$
$$R_a(p_a)=\mathrm{diag}_j\begin{pmatrix}\cos p_a\omega_{a,j} & -\sin p_a\omega_{a,j}\\ \sin p_a\omega_{a,j} & \cos p_a\omega_{a,j}\end{pmatrix}$$
$$\big\langle R_a(p_i)\,\mathbf{q},\;R_a(p_j)\,\mathbf{k}\big\rangle=\big\langle \mathbf{q},\;R_a(p_j-p_i)\,\mathbf{k}\big\rangle$$ 位置项只依赖相对位置 \(\Delta\mathbf{p}\)

悬停 选 key 点击 选 query · 空间坐标以画面中心为零点

一个圆 = 一对特征维度,转角 \(p_a\omega_{a,j}\);每轴画 4 组作示意

MOSS-Image Technical Report官方仓库
1 · 模型与训练

Data:不做质量过滤

5.5B→3.2B 16 个公开数据源 · 按原始比例混合
SSCD 去重 + 去除 AI 生成图

输入保留保留率线性刻度

在此之上再做启发式过滤?
不过滤额外过滤
100%

ReLAION 1.18B 条记录的保留比例

宽高 ≥ 192长宽比 0.33–3熵 ≥ 4亮度 0.1–0.9饱和度 < 0.8水印面积 < 0.1natural score ≥ 0.2
256×25624 层 DiT各 1.6M 步 不过滤时的数值
Annotate rather than filter.
“… with a watermark at the bottom left.” “The image quality is blurry and pixelated.”
MOSS-Image Technical Report
1 · 模型与训练

Layout Control

官方仓库
1 · 模型与训练

Layout Control:生成过程

User
→
Prompt Enhancer
→
MOSS-Image DiT
→
Image1936 × 1088

      
官方仓库
1 · Model & Training

Multi-Granularity Layout Caption

ReLAION sample
layout JSON · one element
{"type": "text", "text": "all you\nneed is\nlove", "where": "center", "bbox": [420, 350, 780, 700], …}
original caption

Pour L Amour Des Belles Choses aquarelle amour all you need is love fleurs de cerisier

short · one sentence

A flat lay of a watercolor painting of cherry blossoms and the text “all you need is love” surrounded by art supplies…

medium · one paragraph

A top-down flat lay of a watercolor painting … surrounding the black calligraphic text “all you need is love”. …

long · composition, subjects, environment, style, visible text

… centered black calligraphy text that reads: ↵ all you ↵ need is ↵ love ↵ …

token length · 4,335 triplets · Qwen3.5-9B tokenizer
0100200300P10medianP90mean short16202620.86medium59759776.61long153193293235.12
Captioner
gemma4imageoriginal captiondescriptive perspective
Validation
JSON syntax3 non-empty descriptions≤ 3 retries
Sampling
origshortmediumlong

orig 20% · recaption 80% · 1:1:1

Visible text
  • Never translated or transliterated
  • Line breaks, reading order, location, alignment, font, color, spacing preserved
  • Longest long caption: 3,126 tokens
MOSS-Image Technical Report
1 · 模型与训练

Caption:Layout JSON

■ text   ■ object   ┄ character

图像bbox + palette
parent graph

    
MOSS-Image Technical Report
1 · 模型与训练

Caption:Layout JSON

■ text   ■ object   ┄ subject

图像bbox + palette
bbox graph

    
MOSS-Image Technical Report
1 · 模型与训练

Training:Schedule 与 Optimizer

Progressive schedule

576

3,072

8,192

max tokens / sample · ■ text ■ image

StageResolutionText capSteps
12563202.1M
2512 → 256/512512→1024→20482.1M
3mixed AR ≤ 1024²4096310K
Packing
tokens / pack8,576(static 8,588)
devices × accum512 × 2
tokens / update8,781,824
Objective · noise sampling
$$\mathcal{L}_{\mathrm{FM}}=\mathbb{E}\!\left[\frac{1}{\sum_i N_i}\sum_i\sum_{p=1}^{N_i}\frac{1}{C}\left\|v_\theta(z_{\sigma_i},1000\sigma_i,c_i)_p-(\epsilon_i-z_{0,i})_p\right\|_2^2\right]$$
image tokens onlyper-token normno SNR weighting
$$Z\sim\mathcal N(\mu,s^2),\quad u=1-\operatorname{sigmoid}(Z),\quad \sigma=\frac{\mathrm{shift}\cdot u}{1+(\mathrm{shift}-1)\,u}$$$$\text{cutoff }a:\ \ u\mid u\le a,\ \ \sigma=u/a\qquad\quad \text{full-noise }p:\ \ \sigma=1\ \text{w.p. }p$$
Stage 3 stepsShift(μ, s)CutoffFull-noise
1 – 140K3(0, 1)—0.01
140K – 207K1(−1.45, 1.05)—0.01
207K – 274K1(−1.45, 1.05)0.950
274K – 310K1(−1.09, 0.95)0.950
Optimizer · hybrid Muon–AdamW
MuonAdamW
params2-D matrices
QKV / gated-FFN split
embedding · head
non-matrix
lr5e-5 · RMS-matched5e-5
μ 0.95 · 5 N–S stepsβ (0.9, 0.95) · ε 1e-8
sharedwd 0.01 · clip 1.0 · EMA 0.9999 · warmup 2000
Loss · steps (K) · 1B
AdamWMuon–AdamW
MOSS-Image Technical Report
1 · 模型与训练

MOSS-Image-Base 与 MOSS-Image-SFT

Stage 1256 px · 2.1M steps→Stage 2512 px · 2.1M steps→Stage 3≤ 1024² · 310K steps→MOSS-Image-Basepretraining onlySFT →MOSS-Image-SFTcurated data
MOSS-Image-Base
MOSS-Image-SFT · 同一 prompt

MOSS-Image-Base

三阶段预训练的直接产物,保留完整训练信息,作为 LoRA 与微调的底座。

MOSS-Image-SFT

在精选数据上对 Base 做监督微调。

没有做的
RL / reward 微调CFG 蒸馏少步蒸馏
MOSS-Image Technical Report官方仓库
Part 2

评测

2 · 评测

LLTB:长文本渲染

目标文本长度(字符)

LongTextBench

160 EN + 160 ZH · 38,489 字符
16–482 · mean 120

LongLongTextBench

120 EN + 120 ZH · 321,545 字符
444–2,863 · mean 1,340
11.1×

平均长度

8.4×

总字符数

LongTextBench 上的总分
010 个模型:96.05–98.85
EN-SEN-MEN-LZH-SZH-MZH-LMean-6
闭源
GPT Image 299.899.897.399.499.298.299.0
Nano Banana Pro98.899.697.498.194.291.496.6
Qwen Image 3.0 Pro89.894.396.298.997.988.594.3
Seedream 5.0 Pro92.885.841.769.828.313.355.3
开源权重
MOSS-Image98.097.197.196.396.792.496.3
Qwen Image 251288.886.748.189.944.431.364.9
Ideogram 4.044.997.997.548.859.931.863.5
ERNIE Image69.563.748.179.643.230.255.7
SenseNova U169.945.722.872.433.918.743.9
Z-Image Base51.442.324.970.431.824.340.8
Krea 2 Raw61.236.921.639.118.213.731.8
FLUX.234.119.64.86.13.22.911.8
MOSS-Image Technical Report
2 · 评测

7Bench:Layout Control

模型mIoUdetLayout AUC检出率
MOSS-Image0.880.7077%
Ideogram 4.00.440.2055%
Seedream 5.0 Pro0.330.1851%
Qwen Image 3.0 Pro0.310.1854%
Nano Banana Pro0.330.1645%
GPT Image 20.300.1647%

IoU ≥ 0.9:MOSS-Image 47%,其余均低于 0.2%。

GPT Image 2:22/224 次安全拦截,计 0。Ideogram 4:公开 FP8 权重 + 规则转换的 prompt;其自报 mIoU ≈ 0.69。

MOSS-Image Technical Report
2 · 评测

Agentic PE 与 RealLayoutArena

Agentic Prompt Enhancement
1

任务路由

按媒介选模块:海报 / 信息图 / UI

2

知识与参考检索

网页与图片检索,只影响规划

3

版面规划与自检

输出 layout JSON:文本、bbox、层级

RealLayoutArena
61

海报 · 信息图 · UI

1,420

盲评两两投票

75.1%

偏好得分率

MOSS-Image Technical Report
Part 3

案例与社区

3 · 案例与社区

Case:改 Layout Prompt 做编辑

(a) 调换信息块

② 对流发展 ⇄ ③ 水汽上升

(b) 替换主标题

KRASNOYARSK → CALIFORNIA

纯文生图不以原图为条件无额外训练
MOSS-Image Technical Report
3 · 案例与社区

Case:换行与 bbox 坐标

Prompt 中的显式换行 · 30 步 · shift 3
未见过的更大画布 · 相对坐标 vs. 绝对坐标
abs_centralized
$$\text{bbox}=\big[\,y_{\min}-\tfrac H2,\ x_{\min}-\tfrac W2,\ y_{\max}-\tfrac H2,\ x_{\max}-\tfrac W2\,\big]\quad(\texttt{yxyx})$$
MOSS-Image Technical Report官方仓库
3 · 案例与社区

Community:衍生项目

8.82MHF 累计下载 · Base 及全部衍生模型
Comfy-Org/MOSS-Image7.27M · 82%SFT 系1.16M

其余 Base 衍生 0.40M

lodestones/MOSS-Image-SFT-8-steps-dmd350.6Kunsloth/MOSS-Image-SFT-GGUF251.2Kfidel1234/Moss86.8Kunsloth/MOSS-Image-Base-GGUF85.7Kakhaliq/MOSS-Image-SFT-4-steps83.1Klodestones/Kromoss75.7Ktoxicdog/MOSS-Image-SFT-Turbo-INT8-ConvRot48.1Klodestones/MOSS-Image-Base-8-steps-dmd43.0KOpenMOSS-Team/MOSS-Image-SFT25.6KOpenMOSS-Team/MOSS-Image-Base15.9K
274个衍生模型 · 27 个 HF Spaces

adapter 135finetune 73quantized 62merge 4

ComfyUI 原生节点

Comfy-Org 官方支持

KohakuMossTrainer

187 ★ · adapter 训练最低 6 GB

DiffSynth-Studio

训练与推理框架

ComfyUI-Spectrum-MOSS

99 ★ · 采样加速

社区数据 · 截至 2026-11-19
总结

Future Work

1

参考图条件生成与编辑(R2I)

当前只支持文生图。4D RoPE 的 \(r\) 轴已为参考图索引预留,无需改动位置编码。

2

少步蒸馏

DMD 等方法,降低 50 步 + CFG 的推理开销。

3

开源的 Layout Enhancer

微调开源 LLM 做版面规划,替代目前依赖的闭源 planner。

4

基于 Base 的后训练

通过 SFT / LoRA 扩展 GIF 生成、参考生成等能力。

MOSS-Image Technical Report官方仓库
总结

References

MOSI.AI. MOSS-Image Technical Report. arXiv:2610.23374, 2026.

Rombach et al. High-Resolution Image Synthesis with Latent Diffusion Models. 2021.

Peebles, Xie. Scalable Diffusion Models with Transformers. arXiv:2212.09748.

Esser et al. Scaling Rectified Flow Transformers for High-Resolution Image Synthesis. arXiv:2403.03206.

Black Forest Labs. FLUX, 2024; FLUX.2, 2025.

Wu et al. Qwen-Image Technical Report. arXiv:2508.02324.

Cai et al. Z-Image: An Efficient Image Generation Foundation Model with Single-Stream Diffusion Transformer. arXiv:2511.22699.

Liu et al. ERNIE-Image Technical Report. arXiv:2605.25347.

Chen et al. PixArt-α. arXiv:2310.00426.

Kimi Team. Kimi K3: Open Frontier Intelligence. arXiv:2607.24653.(SiTU-GLU)

Gemma Team. Gemma 4 Technical Report. arXiv:2607.02770.

LAION. Re-LAION-5B, 2024. · Li et al. OmniCorpus. ICLR 2025. · Gadre et al. DataComp. NeurIPS 2023.

Pizzi et al. A Self-Supervised Descriptor for Image Copy Detection. CVPR 2022.(SSCD)

Geng et al. X-Omni. arXiv:2507.22058.(LongTextBench)

Izzo et al. 7Bench: A Comprehensive Benchmark for Layout-Guided Text-to-Image Models. ICIAP 2025.

Yang et al. Representation Fréchet Loss for Visual Generation. arXiv:2604.28190.(FDr6)

Yang et al. GlyphControl. arXiv:2305.18259. · Chen et al. TextDiffuser. arXiv:2305.10855; TextDiffuser-2. arXiv:2311.16465.

Tuo et al. AnyText. arXiv:2311.03054; AnyText2. arXiv:2411.15245.

Zhang et al. ControlNet. arXiv:2302.05543. · Mou et al. T2I-Adapter. arXiv:2302.08453.

Li et al. GLIGEN. arXiv:2301.07093. · Zheng et al. LayoutDiffusion. arXiv:2303.17189. · Xie et al. BoxDiff. arXiv:2307.10816.

Gutflaish et al. Generating an Image from 1,000 Words(FIBO). arXiv:2511.06876.

Ideogram AI. Ideogram 4, 2026.

Hao et al. Optimizing Prompts for Text-to-Image Generation(Promptist). arXiv:2212.09611.

Zhang et al. Qwen-Image-Agent. arXiv:2606.26907.

OpenAI. GPT Image 2, 2026. · ByteDance Seed. Seedream 5.0 Pro, 2026. · Qwen Team. Qwen Image 3.0, 2026. · Google DeepMind. Nano Banana Pro, 2025.

MOSS-Image Technical Report
MOSI SII Fudan University Shanghai Jiao Tong University
MOSS-Image
Q&A
Paperarxiv.org/abs/2610.23374
Codegithub.com/OpenMOSS/MOSS-Image
Modelshuggingface.co/collections/OpenMOSS-Team/moss-image

Tengyue Zhang

Shanghai Jiao Tong University

2026.11.22