# GLIDE

GLIDE是一个用于生成和编辑照片级真实感图像的文本条件扩散模型，由OpenAI于2021年12月在arXiv上发表论文（arXiv:2112.10741），并于ICML 2022上通过同行评审。<sup>[1](https://proceedings.mlr.press/v162/nichol22a/nichol22a.pdf)</sup><sup> • </sup><sup>[2](https://arxiv.org/html/2112.10741v3)</sup><sup> • </sup><sup>[3](https://icml.cc/virtual/2022/poster/16339)</sup> 它根据文本提示生成64×64的图像，再上采样至256×256，并可通过微调执行图像修补，从而实现对现有图像的文本驱动编辑。<sup>[1](https://proceedings.mlr.press/v162/nichol22a/nichol22a.pdf)</sup> 论文比较了两种引导策略——CLIP引导和无分类器引导（引导图像生成朝向文本提示）——并发现人类评估者更偏好后者。<sup>[1](https://proceedings.mlr.press/v162/nichol22a/nichol22a.pdf)</sup> 论文作者为亚历克斯·尼科尔（Alex Nichol）、普拉富拉·达里瓦尔（Prafulla Dhariwal）、阿迪蒂亚·拉梅什（Aditya Ramesh）、普拉纳夫·希亚姆（Pranav Shyam）、帕梅拉·米什金（Pamela Mishkin）、鲍勃·麦格鲁（Bob McGrew）、伊利亚·苏茨克维（Ilya Sutskever）和马克·陈（Mark Chen），均为当时OpenAI的研究人员。<sup>[1](https://proceedings.mlr.press/v162/nichol22a/nichol22a.pdf)</sup>

| 事实 | 值 |
|---|---|
| 发布 | 论文于2021年12月发布；经过滤模型的代码和权重于2021年12月10日以MIT许可证发布<sup>[1](https://proceedings.mlr.press/v162/nichol22a/nichol22a.pdf)</sup><sup> • </sup><sup>[4](https://github.com/openai/glide-text2im/)</sup> |
| 模型规模 | 35亿参数的基础模型（64×64）加15亿参数的上采样器（至256×256）<sup>[1](https://proceedings.mlr.press/v162/nichol22a/nichol22a.pdf)</sup> |
| 架构拆分 | 约23亿参数用于视觉部分（ADM），约12亿参数用于文本编码器（24个宽度为2048的Transformer块）<sup>[1](https://proceedings.mlr.press/v162/nichol22a/nichol22a.pdf)</sup> |
| MS-COCO上的零样本FID | 12.24，而DALL-E约为28（厂商报告）<sup>[1](https://proceedings.mlr.press/v162/nichol22a/nichol22a.pdf)</sup> |
| 发布版本 | 3亿参数的“GLIDE（过滤版）”，在约6700万过滤后的文本-图像对上训练<sup>[1](https://proceedings.mlr.press/v162/nichol22a/nichol22a.pdf)</sup><sup> • </sup><sup>[5](https://github.com/openai/glide-text2im/blob/main/model-card.md)</sup> |
| 许可证 | MIT，仅限研究用途；OpenAI不建议商业使用<sup>[4](https://github.com/openai/glide-text2im/)</sup><sup> • </sup><sup>[5](https://github.com/openai/glide-text2im/blob/main/model-card.md)</sup> |
| 仓库状态 | 已归档；完整未过滤模型及其代码从未发布<sup>[4](https://github.com/openai/glide-text2im/)</sup> |

## 工作原理：引导与架构

论文采用达里瓦尔和尼科尔2021年扩散工作提出的ADM（消融扩散模型）架构，并加以文本条件化增强。<sup>[2](https://arxiv.org/html/2112.10741v3)</sup> 视觉模型为ImageNet 64×64 ADM，宽度增至512通道，参数量约23亿；来自24块、宽度2048的[Transformer](https://www.edgepedia.org/zh/transformer)文本编码器（约12亿参数）的标记嵌入被注入注意力层。<sup>[1](https://proceedings.mlr.press/v162/nichol22a/nichol22a.pdf)</sup> [Paperspace](https://www.edgepedia.org/zh/paperspace)的独立技术评论确认了这一三部分结构：64×64 ADM、驱动它的Transformer文本模型，以及至256×256的上采样器。<sup>[6](https://blog.paperspace.com/glide-image-generation/)</sup>

**两种引导策略。** 论文的核心实验比较了CLIP引导与无分类器引导。人类评估者在照片真实感和图像描述相似度两方面都更偏好无分类器引导，且它在FID对IS和精确率对召回率的权衡中（近乎）帕累托最优（消融实验：FID 82.7，IS 110.9）。<sup>[1](https://proceedings.mlr.press/v162/nichol22a/nichol22a.pdf)</sup>

在编辑方面，作者发现模型可通过微调执行图像修补：图像的一部分被遮蔽，在提示控制下重新生成，从而实现迭代式的文本驱动编辑。<sup>[2](https://arxiv.org/html/2112.10741v3)</sup>

## 论文所述的训练情况

基础模型以批量大小2048训练了250万次迭代；上采样模型以批量大小512训练了160万次迭代。<sup>[1](https://proceedings.mlr.press/v162/nichol22a/nichol22a.pdf)</sup> 论文指出，尽管GLIDE使用的模型规模小得多——35亿对120亿参数——但其总计算量与DALL-E大致相同。<sup>[1](https://proceedings.mlr.press/v162/nichol22a/nichol22a.pdf)</sup>

全规模模型的训练数据仅被描述为数亿互联网文本-图像对。发布的小模型在该数据集经过滤后的版本上训练，过滤后缩减至约6700万对，过滤内容包括移除人物图像、暴力物品和仇恨符号；随附的加噪CLIP模型使用了约1.37亿对的增强数据集。<sup>[5](https://github.com/openai/glide-text2im/blob/main/model-card.md)</sup> OpenAI仅发布了论文、模型卡以及小型过滤模型的代码和权重；完整的35亿/15亿模型及其训练数据未发布。<sup>[4](https://github.com/openai/glide-text2im/)</sup>

## 关键数据

以下所有主要质量数据均为厂商报告，来自OpenAI自己的论文。

- MS-COCO上的零样本FID：GLIDE 12.24，而DALL-E约为28。作为参照，LAFITE得分为8.12（分布内），XMC-GAN为9.33。<sup>[1](https://proceedings.mlr.press/v162/nichol22a/nichol22a.pdf)</sup>
- 人类评估：在温度1.0下无重排序时，评估者在91%的照片真实感比较和83%的图像描述相似度比较中偏好GLIDE而非DALL-E；对阵经CLIP重排序的DALL-E时，GLIDE胜率为89%和71%。<sup>[1](https://proceedings.mlr.press/v162/nichol22a/nichol22a.pdf)</sup>
- 引导消融：在帕累托比较中，无分类器引导对CLIP引导达到FID 82.7和IS 110.9。<sup>[1](https://proceedings.mlr.press/v162/nichol22a/nichol22a.pdf)</sup>

## 发布、许可与可用性

2021年12月10日，OpenAI在GitHub上以MIT许可证发布了在过滤数据上训练的小型GLIDE模型的官方代码库和权重，附有text2im Colab笔记本；检索时该仓库有3,686颗星和501个派生仓库，现已归档。<sup>[4](https://github.com/openai/glide-text2im/)</sup> 模型卡声明其预期功能为根据自然语言提示生成图像，以及通过修补迭代编辑和精炼图像，仅限研究用途；由于模型的局限性和偏见，OpenAI目前不建议将其用于商业用途。<sup>[5](https://github.com/openai/glide-text2im/blob/main/model-card.md)</sup> 小规模本身限制了能力：模型卡指出它妨碍了属性与对象的绑定以及组合性任务。<sup>[5](https://github.com/openai/glide-text2im/blob/main/model-card.md)</sup> 完整的未过滤35亿模型从未发布。

## 安全理由与争议

论文直接陈述了限制发布的理由：该模型能生成虚假但逼真的图像，并让非技术人员快速对现有图像进行令人信服的编辑，因此无保障措施地发布将大幅降低制造可信虚假信息或深度伪造所需的技能门槛。<sup>[1](https://proceedings.mlr.press/v162/nichol22a/nichol22a.pdf)</sup> OpenAI的缓解措施是使用过滤数据集（移除人物图像、暴力物品和仇恨符号）以及大幅缩小模型规模；红队测试未发现过滤模型生成可识别的人类图像的实例，作者将此解读为过滤器中足够低的假阴性率。<sup>[1](https://proceedings.mlr.press/v162/nichol22a/nichol22a.pdf)</sup>

模型卡承认了这种方法的代价。过滤移除了模型关于人的大量世界知识，并引入了作者明确描述的偏见：当被要求生成“一个宗教场所”时，模型倾向于教堂，而无分类器引导放大了这一偏见。<sup>[5](https://github.com/openai/glide-text2im/blob/main/model-card.md)</sup>

## 比较与遗产

与其同时代的DALL-E相比，GLIDE是架构更小但报告结果更好的模型：35亿对120亿参数，训练计算量相近，零样本FID为12.24对约28，且在每一测试设置中人类评估均获胜。<sup>[1](https://proceedings.mlr.press/v162/nichol22a/nichol22a.pdf)</sup> 第三方参考资料将GLIDE描述为最早的文本到图像模型之一，人类评判员对其评价优于DALL-E。<sup>[7](https://strikingloo.github.io/wiki/glide)</sup>

回顾来看，情况更为复杂。同一独立来源判断发布的过滤版GLIDE的图像质量明显逊于[DALL-E 2](https://www.edgepedia.org/zh/dall-e-2)或[Stable Diffusion](https://www.edgepedia.org/zh/stable-diffusion)，样本往往缺乏全局连贯性，但包含良好的纹理。<sup>[7](https://strikingloo.github.io/wiki/glide)</sup> 这与其说是与论文数据相矛盾，不如说是基线的变化：2021年12月的比较是针对DALL-E的，而后来的格局包括了DALL-E 2和Stable Diffusion。论文的核心方法论发现是，人类评估者更偏好无分类器引导而非CLIP引导。<sup>[1](https://proceedings.mlr.press/v162/nichol22a/nichol22a.pdf)</sup>

## References

1. [GLIDE: Towards Photorealistic Image Generation and Editing with Text-Guided Diffusion Models (ICML 2022, PMLR v162)](https://proceedings.mlr.press/v162/nichol22a/nichol22a.pdf)
2. [GLIDE (arXiv:2112.10741)](https://arxiv.org/html/2112.10741v3)
3. [ICML 2022 poster page for GLIDE](https://icml.cc/virtual/2022/poster/16339)
4. [openai/glide-text2im (official code and weights repository)](https://github.com/openai/glide-text2im/)
5. [GLIDE (filtered) model card (OpenAI, GitHub)](https://github.com/openai/glide-text2im/blob/main/model-card.md)
6. [Generating and editing photorealistic images from text-prompts using OpenAI's GLIDE (Paperspace)](https://blog.paperspace.com/glide-image-generation/)
7. [GLIDE: Text-Guided Diffusion Models (StrikingLoo ML wiki)](https://strikingloo.github.io/wiki/glide)

---
*Initially written Sep 17, 2026 · Edited: Oct 11, 2026; Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 现代人工智能：基础模型、生成式人工智能与人工智能产业 › Model families and named models › Image generation models

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/glide

English original: https://www.edgepedia.org/glide
