arXiv:2606.27147 · 中英对照阅读
利用迭代式自我改进码本实现安全自回归图像生成
Safe Autoregressive Image Generation with Iterative Self-Improving Codebooks
中文速览
这项研究关注的是:能同时理解文字、又按离散图像 token 逐步作画的多模态模型,也可能画出有害内容,但针对这类模型的安全改进还不成熟。作者让模型检查自己生成的图像,自动配出意思相近的安全与有害样本,再找出模型码本里对应的有害表示并加以削弱,随后只在不含有害信息的方向上微调,反复迭代。实验显示,这种方法能在多个模型和有害内容测试集上减少不安全图像,同时较好保留画质与原有能力;多轮迭代也比一次处理更有效,并能推广到未见过的数据。它的意义在于,不依赖人工标注或外部反馈,就能让模型用自身的理解能力持续改进图像生成安全性。
摘要
与在连续潜在空间中运行的基于扩散的模型不同,自回归统一多模态模型通过依次预测离散化的视觉词元来生成图像。这些词元源自码本,码本将嵌入映射为量化的视觉模式。类语言架构使统一多模态模型能够有效捕捉用于生成的文本条件信息,因此在文生图任务中展现出良好前景。这也引出了一个有趣的问题:以这种自回归方式生成的图像有多安全?在这项工作中,我们提出了用于安全自回归生成的迭代式自我改进码本。我们利用统一多模态模型本身的理解与判断能力,在无需人工标注的情况下识别不安全的生成图像。随后,我们固定码本中的固有表征,以消除有害映射。我们的方法包含两个步骤:首先,使用统一模型识别不安全生成结果,并构建相应的有害与安全图文对。利用这些图文对构建有害空间,并指导码本更新,从而消除有害输出。其次,我们使用安全图文对,在无害空间内对码本进行自适应微调,以确保生成图像的质量。重复这两个步骤,直至观察不到进一步改进,从而得到安全性增强的模型码本。在没有额外外部反馈的情况下,模型的安全性得以迭代式提升。
Unlike diffusion-based models that operate in continuous latent spaces, autoregressive unified multimodal models produce images by sequentially predicting discretized visual tokens. These tokens are derived from a codebook that maps embeddings to quantized visual patterns. The language-like architecture enables unified multimodal models to effectively capture text conditional information for generation, making them promising for text-to-image tasks. This also raises an interesting question: how safe are the images generated in such an autoregressive way? In this work, we propose iterative self-improving codebooks for safe autoregressive generation. We leverage the understanding and judgment capabilities of the unified multimodal model itself to identify unsafe generated images without human annotation. Subsequently, the inherent representations in the codebook are fixed to eliminate harmful mappings. Our method comprises two steps: first, we use the unified model to identify unsafe generations and construct corresponding harmful and safe image-text pairs. These pairs are used to construct the Harmful Space and guide updates to the codebook, thereby eliminating harmful outputs. Second, we perform adaptive fine-tuning on the codebook within the harmless space using safe image-text pairs to ensure the quality of generated images. These two steps are repeated until no further improvement is observed, producing a safety-enhanced model codebook. Without additional external feedback, the safety of models is improved iteratively.
术语表
- autoregressive unified multimodal model
- 自回归统一多模态模型
- autoregressive image generation model
- 自回归图像生成模型
- diffusion-based model
- 基于扩散的模型
- discrete visual token
- 离散视觉词元
- codebook
- 码本
- embedding
- 嵌入
- Vector Quantization (VQ)
- 向量量化(VQ)
- VQ-VAE
- VQ-VAE
- text-to-image generation
- 文生图
- Large Language Model (LLM)
- 大语言模型(LLM)
- multimodal content
- 多模态内容
- text conditional information
- 文本条件信息
- harmful generation
- 有害内容生成
- safe autoregressive generation
- 安全自回归生成
- iterative self-improvement
- 迭代式自我改进
- Harmful Space
- 有害空间
- null space
- 零空间
- orthogonal space
- 正交空间
- harmful and safe image-text pairs
- 有害与安全图文对
- adaptive fine-tuning
- 自适应微调
- human annotation
- 人工标注
- harmful-prompt dataset
- 有害提示词数据集
- I2P
- I2P
- CoPro
- CoPro
- out-of-distribution (OOD) data
- 分布外(OOD)数据
- Janus
- Janus
- VILA-U
- VILA-U
- raster scan
- 光栅扫描
- token-by-token generation
- 逐词元生成
- latent semantic space
- 潜在语义空间