arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2211.05770cs.CVcs.AIcs.LG
收藏

使用可变注意力头的高效图像生成

Efficient Image Generation with Variadic Attention Heads

University of Oregon(俄勒冈大学);University of Texas at Austin(德克萨斯大学奥斯汀分校)

Steven Walton, Ali Hassani, Xingqian Xu, Zhangyang Wang, Humphrey Shi

AI总结:

提出允许单个transformer注意力头关注多个感受野的方法,集成Neighborhood Attention构建StyleNAT,在FFHQ上以更少参数实现更优FID与更高吞吐量。

摘要:

尽管在视觉模型中集成transformer在视觉任务上取得了显著改善,但它们在训练和推理时仍需要大量计算。受限注意力机制显著减轻了这些计算负担,但代价是失去全局或局部一致性。我们提出了一种简单而强大的方法来减少这些权衡:允许单个transformer的注意力头关注多个感受野。我们展示了利用Neighborhood Attention (NA)的方法,并将其集成到基于StyleGAN的架构中进行图像生成。通过这项被称为StyleNAT的工作,我们在FFHQ上实现了2.05的FID,比StyleGAN-XL提升了6%,同时使用的参数量减少了28%,吞吐量提升了4倍。StyleNAT在FFHQ-256上实现了帕累托前沿,并在其他数据集上展示了强大且高效的图像生成能力。我们的代码和模型检查点公开于:https://github.com/SHI-Labs/StyleNAT

英文摘要:

While the integration of transformers in vision models have yielded significant improvements on vision tasks they still require significant amounts of computation for both training and inference. Restricted attention mechanisms significantly reduce these computational burdens but come at the cost of losing either global or local coherence. We propose a simple, yet powerful method to reduce these trade-offs: allow the attention heads of a single transformer to attend to multiple receptive fields. We demonstrate our method utilizing Neighborhood Attention (NA) and integrate it into a StyleGAN based architecture for image generation. With this work, dubbed StyleNAT, we are able to achieve a FID of 2.05 on FFHQ, a 6% improvement over StyleGAN-XL, while utilizing 28% fewer parameters and with 4$\times$ the throughput capacity. StyleNAT achieves the Pareto Frontier on FFHQ-256 and demonstrates powerful and efficient image generation on other datasets. Our code and model checkpoints are publicly available at: https://github.com/SHI-Labs/StyleNAT

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑