HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

StyleNAT: Giving Each Head a New Perspective

Steven Walton Ali Hassani Xingqian Xu Zhangyang Wang Humphrey Shi

StyleNAT: Giving Each Head a New Perspective

Abstract

Image generation has been a long sought-after but challenging task, and performing the generation task in an efficient manner is similarly difficult. Often researchers attempt to create a "one size fits all" generator, where there are few differences in the parameter space for drastically different datasets. Herein, we present a new transformer-based framework, dubbed StyleNAT, targeting high-quality image generation with superior efficiency and flexibility. At the core of our model, is a carefully designed framework that partitions attention heads to capture local and global information, which is achieved through using Neighborhood Attention (NA). With different heads able to pay attention to varying receptive fields, the model is able to better combine this information, and adapt, in a highly flexible manner, to the data at hand. StyleNAT attains a new SOTA FID score on FFHQ-256 with 2.046, beating prior arts with convolutional models such as StyleGAN-XL and transformers such as HIT and StyleSwin, and a new transformer SOTA on FFHQ-1024 with an FID score of 4.174. These results show a 6.4% improvement on FFHQ-256 scores when compared to StyleGAN-XL with a 28% reduction in the number of parameters and 56% improvement in sampling throughput. Code and models will be open-sourced at https://github.com/SHI-Labs/StyleNAT.

Code Repositories

SHI-Labs/StyleNAT
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
image-generation-on-ffhq-1024-x-1024StyleNAT
FID: 4.17
image-generation-on-ffhq-256-x-256StyleNAT
FID: 2.05
image-generation-on-ffhq-256-x-256StyleNAT (DINOv2)
FD: 229.72
Precision: 0.79
Recall: 0.41
image-generation-on-lsun-churches-256-x-256StyleNAT
FID: 3.4

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
StyleNAT: Giving Each Head a New Perspective | Papers | HyperAI