Abstract
StylerDALLE introduces a novel approach to language-guided style transfer by re-imagining the process as a non-autoregressive token translation task. By leveraging the discrete latent space of pre-trained Vector-Quantized (VQ) tokenizers from large-scale generative models like DALL-E, the framework moves beyond simple texture swapping to capture complex artistic movements and painterly traits. The method achieves high-quality, artifact-free stylization in real-time, significantly outperforming previous state-of-the-art optimization-based approaches.
Introduction
Traditional Neural Style Transfer (NST) typically relies on a reference image to define a style, which often limits the transfer to low-level features like color palettes or textures. These methods frequently fail to capture the "soul" of an art movement or specific abstract semantics. Furthermore, training generative models for every possible artistic style is labor-intensive and impractical.
Existing language-guided methods, which utilize text prompts, often face a "content-style" trade-off, resulting in either messy artifacts or insufficient stylistic alteration. StylerDALLE addresses these challenges by utilizing the massive prior knowledge embedded in large-scale generative models to understand and apply complex artistic styles described in natural language.
Methodology
The StylerDALLE framework consists of three primary components: Image Tokenization, a Non-Autoregressive Transformer (NAT), and a two-stage training process using Reinforcement Learning (RL).
Image Tokenization and NAT
Instead of operating on raw pixels, the model uses a pre-trained VQ tokenizer (e.g., dVAE or VQGAN) to convert images into a grid of discrete visual tokens. This allows the model to work in a latent space that already understands high-level image structures. The core translation is handled by a NAT, which generates the entire stylized token grid in parallel, ensuring exceptional inference speed.
Two-Stage Training
- Self-Supervised Pre-training: The model learns to reconstruct a full-resolution image from a half-resolution token grid. This "upscaling" task teaches the model to add semantically coherent details.
- Style-Specific Fine-tuning: To inject style, the model is fine-tuned using the REINFORCE algorithm. The reward is defined by the CLIP similarity between the generated image and a composite text prompt that combines the target style (e.g., "Fauvism") with the original image content caption.
A key insight is that starting with a lower-resolution input allows the model to "forget" restrictive pixel details, creating the necessary creative space to inject style-specific features like thick brushstrokes or geometric forms.
Experimental Results
The model was trained on the MS-COCO dataset and evaluated across diverse benchmarks including AFHQ and ImageNet-100.
Performance and Quality
StylerDALLE consistently outperforms previous state-of-the-art methods like CLIPStyler in CLIP similarity scores. In a user study with 35 subjects, the VQGAN-based version (StylerDALLE-Ru) was preferred 68.76% of the time. Qualitatively, the model successfully captures distinct artistic traits—such as Van Gogh’s swirling brushstrokes or the blocky forms of Cubism—rather than simple color shifts.
Efficiency
The non-autoregressive architecture allows for incredible efficiency. StylerDALLE generates a 256x256 stylized image in just 0.076 seconds on an RTX-A6000 GPU, making it orders of magnitude faster than recent diffusion-based alternatives which can take several seconds for the same task.
Conclusion
StylerDALLE demonstrates that leveraging the priors of large-scale generative models through discrete token translation is a powerful paradigm for style transfer. While the final quality depends on the underlying tokenizer, the framework provides a robust, fast, and semantically aware solution for language-guided artistic creation. Future work will explore the integration of even more advanced open-source tokenizers to further enhance fidelity.
Summary updated