CFFT-GAN: Cross-Domain Feature Fusion Transformer for Exemplar-Based Image Translation

Tianxiang Ma, Bingchuan Li, Wei Liu, Miao Hua, Jing Dong, Tieniu Tan

Introduction

Exemplar-based image translation is the task of generating an image that follows the structural constraints of a source input (such as a sketch or pose map) while inheriting the stylistic attributes of a reference "exemplar" image. Establishing precise correspondences between these domains is difficult, particularly when there are large discrepancies in pose or viewpoint. Existing approaches often fail because they focus solely on inter-domain matching, ignoring the internal structural relationships (intra-domain correlations) within the images.

The CFFT-GAN Architecture

To overcome these limitations, we propose CFFT-GAN, a hybrid CNN-Transformer model. The architecture leverages the computational efficiency of CNNs for feature extraction and the global modeling capabilities of Transformers for feature fusion.

The centerpiece of the model is the Cross-domain Feature Fusion Transformer (CFFT). Unlike previous methods that treat the input and exemplar as separate entities to be compared, CFFT concatenates their features into a single sequence. This allows the model to learn complex inter-domain correspondences and intra-domain correlations simultaneously. The CFFT module comprises:

  • Feature Fusion Network (FFN): Performs initial coarse matching and dimensionality reduction.
  • Hierarchical Transformer (Hiformer): Employs a multi-scale approach, progressively splitting features to achieve fine-grained spatial alignment from coarse to fine details.

The fused features are then processed by a Spatially-Adaptive Generator (based on the SPADE architecture) to synthesize the final high-resolution image.

Experimental Evaluation

CFFT-GAN was benchmarked against state-of-the-art (SOTA) methods like CoCosNet v2 and UNITE across several datasets, including Deepfashion (pose-to-image), CelebA-HQ (edge-to-face), and AFHQ (animal sketches).

Qualitative results for edge-to-face translation on CelebA-HQ, demonstrating superior style transfer and semantic alignment.

Quantitatively, CFFT-GAN achieved a significant lead. On the Deepfashion dataset, it reached a Fréchet Inception Distance (FID) of 8.8, compared to 12.2 for CoCosNet v2. Lower FID scores indicate higher image realism and better distribution matching.

Pose-to-image translation on Deepfashion. The model successfully maps complex clothing textures onto the target pose.

Key Insights

A major strength of CFFT-GAN is its holistic feature learning. By processing concatenated features, the model ensures that textures are not just placed correctly but are also contextually relevant to the surrounding structures. Furthermore, the pluggable design of the CFFT module allows for multi-domain translation. By cascading modules, the system can fuse information from multiple sources, such as an edge map, a style exemplar, and a separate target pose, enabling complex tasks like face animation.

Conclusion and Future Work

CFFT-GAN represents a significant step forward in exemplar-based image translation, providing a robust solution for maintaining semantic integrity across domains. While highly effective for object-centric tasks, the authors noted a slight performance drop in complex scene-based translations (e.g., ADE20K). Future research will focus on optimizing the hierarchical Transformer structure for these more diverse environments.

Summary updated

BibTeX
@inproceedings{ma2023cfft,
  author = {Tianxiang Ma and Bingchuan Li and Wei Liu and Miao Hua and Jing Dong and Tieniu Tan},
  title = {{CFFT-GAN: Cross-Domain Feature Fusion Transformer for Exemplar-Based Image Translation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i2.25279},
}
Figure