Skip to content

Safe autoregressive image generation with iteratively self-improving codebooksSafe Autoregressive Image Generation with Iterative Self-Improving Codebooks

arXiv· arXiv:2606.27147· ICML 2026· Yunqi Xue, Zhijiang Li, Philip Torr, Jindong GuSchool of Information Management, Wuhan University; Torr Vision Group, University of OxfordIndexed by this site · 24 days ago· Originally publishedDefenses

Translation in progress — untranslated text is omitted.

Quick read

Defenses

Based on the paper PDF (AI-generated); refer to the original

AI summaryTo address the question of whether images generated by autoregressive unified multimodal models that sequentially predict discrete visual tokens are safe, the paper proposes an iteratively self-improving codebook method. Leveraging the model's own understanding and judgment capabilities, the method identifies unsafe generations without human annotation, constructs harmful and safe image-text pairs and delineates a Harmful Space, and updates the codebook accordingly to eliminate harmful mappings. It then performs adaptive fine-tuning with safe image-text pairs within the harmless space to maintain image quality; the two steps are iterated repeatedly until no further improvement, gradually improving model safety without additional external feedback.

Questions
Autoregressive unified multimodal models use discrete codebooks to generate images, and semantically benign prompts may also produce harmful images such as nudity and violence; the authors state that existing safety methods mostly target the continuous space of diffusion models and are difficult to transfer to discrete representations.
Methods
Proposes an iterative self-improving safety codebook: use the model's own judgment of whether generated images are harmful to construct harmful/safe image-text pairs, obtain the harmful space from feature differences via SVD and project it out, then fine-tune the codebook within the null space to restore quality, iterating the two steps until no improvement.
Experiments and results
On 8 harmful prompt datasets including I2P, CoPro, and ViSU and 6 unified models, the authors report that the detection proportion of each category of harmful content decreased; CLIP-Score, FIDg, Geneval, and MMMU show that quality and understanding ability are largely maintained; after 3 iterations the effect tends to saturate, and it outperforms single-pass removal with the same amount of data.
Limitations and future work
The authors point out that self-labeling carries risks and error propagation, and the underlying model itself is not perfect; the model judges subtle harmful concepts inaccurately and requires supplementary human annotation. Experiments cover only 6 unified models and the datasets listed in the paper, and the judgment agreement experiment uses 500 images per category.

Related papers

Show 2 more papers
Read originalICML 2026