Safe-VAR: Safe Visual Autoregressive Model for Text-to-Image Generative Watermarking
Ziyi Wang, Songbai Tan, Gang Xu, Xuerui Qiu, Hongbin Xu, Xin Meng, Ming Li, Fei Richard Yu
TL;DR
Safe-VAR addresses the lack of watermarking for autoregressive text-to-image generation by introducing ASIM, CSFM with MoH/MoE, and FAEM to embed robust, imperceptible watermarks within multi-scale VAR tokens. The method dynamically selects embedding scales, fuses cross-scale features, and refines them with attention, achieving state-of-the-art image quality, watermark fidelity, and robustness across diverse datasets and high resolutions, including zero-shot QR Code scenarios. Extensive experiments and ablations demonstrate the necessity and effectiveness of each component, with strong generalization to unseen domains and perturbations. The work offers a practical, efficient pathway for copyright protection in AR-based generative content, significantly advancing watermarking for autoregressive visual models.
Abstract
With the success of autoregressive learning in large language models, it has become a dominant approach for text-to-image generation, offering high efficiency and visual quality. However, invisible watermarking for visual autoregressive (VAR) models remains underexplored, despite its importance in misuse prevention. Existing watermarking methods, designed for diffusion models, often struggle to adapt to the sequential nature of VAR models. To bridge this gap, we propose Safe-VAR, the first watermarking framework specifically designed for autoregressive text-to-image generation. Our study reveals that the timing of watermark injection significantly impacts generation quality, and watermarks of different complexities exhibit varying optimal injection times. Motivated by this observation, we propose an Adaptive Scale Interaction Module, which dynamically determines the optimal watermark embedding strategy based on the watermark information and the visual characteristics of the generated image. This ensures watermark robustness while minimizing its impact on image quality. Furthermore, we introduce a Cross-Scale Fusion mechanism, which integrates mixture of both heads and experts to effectively fuse multi-resolution features and handle complex interactions between image content and watermark patterns. Experimental results demonstrate that Safe-VAR achieves state-of-the-art performance, significantly surpassing existing counterparts regarding image quality, watermarking fidelity, and robustness against perturbations. Moreover, our method exhibits strong generalization to an out-of-domain watermark dataset QR Codes.
