ITTR: Unpaired Image-to-Image Translation with Transformers

Wanfeng Zheng, Qiang Li, Guoxin Zhang, Pengfei Wan, Zhongyuan WangarXiv 2022 · DOI

Introduction

Unpaired image-to-image (I2I) translation aims to map images from a source domain to a target domain without corresponding ground-truth pairs. While Convolutional Neural Networks (CNNs) have long been the standard for this task, their inherent local receptive fields often limit their ability to capture long-range dependencies, leading to translations that prioritize local texture over global structural consistency. Vision Transformers (ViTs) offer a solution through global self-attention, yet their application in high-resolution image generation is hindered by quadratic computational complexity and a potential loss of fine-grained local details.

Architecture and Methodology

The ITTR (Image-to-Image Translation with Transformers) framework addresses these challenges by introducing a hybrid architecture that balances global context with local precision.

The ITTR architecture featuring the Hybrid Perception Block (HPB) and Dual Pruned Self-attention (DPSA) mechanism.

Hybrid Perception Block (HPB)

To maintain local detail while modeling global relationships, ITTR utilizes the Hybrid Perception Block. This block features two parallel branches: a depth-wise convolution branch for efficient local feature extraction and a self-attention branch for global context. By fusing these features through a Multi-Layer Perceptron (MLP), the model ensures that structural transformations do not come at the expense of realistic textures.

Dual Pruned Self-Attention (DPSA)

To mitigate the computational burden of standard self-attention, the authors propose Dual Pruned Self-Attention. DPSA calculates contribution scores for token rows and columns, allowing the model to prune less significant tokens before performing attention calculations. This mechanism significantly reduces memory and compute requirements, enabling the use of transformers at higher resolutions.

Experimental Results

ITTR was evaluated across six benchmark datasets, including Horse→Zebra, Cityscapes, and Cat→Dog.

Quantitative Performance

The model achieved state-of-the-art results, notably reaching an FID of 33.6 on the Horse→Zebra task, compared to 45.5 for the CNN-based CUT baseline. Furthermore, ITTR demonstrates superior efficiency, utilizing 45.8 G MACs and 8.5M parameters, whereas CUT requires 64.1 G MACs and 11.4M parameters.

Qualitative and Structural Analysis

Unlike CNN-based models that often perform simple texture overlays, ITTR is capable of significant structural modifications. In the Cat→Dog task, the model successfully altered ear shapes and facial structures.

Saliency map comparison showing ITTR's global instance-level awareness versus the local patch-based focus of the CUT baseline.

Saliency visualizations (e.g., via Grad-CAM) reveal that ITTR maintains instance-level awareness, focusing on the entire object rather than disjointed local patches. This global perspective is critical for maintaining the integrity of the subject during complex domain translations.

Discussion and Conclusion

The success of ITTR highlights the necessity of hybrid designs in image synthesis. Ablation studies confirmed that the convolutional branch acts as a vital "anchor" for high-frequency details. While token pruning offers significant efficiency gains, there is a lower bound on pruning density below which model convergence suffers. Future work may explore extending this efficient transformer backbone to video-to-video translation and ultra-high-resolution tasks.

Summary updated

BibTeX
@misc{zheng2022ittr,
  author = {Wanfeng Zheng and Qiang Li and Guoxin Zhang and Pengfei Wan and Zhongyuan Wang},
  title = {{ITTR: Unpaired Image-to-Image Translation with Transformers}},
  year = {2022},
  eprint = {2203.16015},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2203.16015},
}
Figure