CT-GAN: Conditional Transformation Generative Adversarial Network for Image Attribute Modification

Sangpil Kim, Nick Winovich, Guang Lin, Karthik Ramani

Abstract

We propose a fully-convolutional conditional generative model, the latent transformation neural network (LTNN), capable of view synthesis using a light-weight neural network suited for real-time applications. In contrast to existing conditional generative models which incorporate conditioning information via concatenation, we introduce a dedicated network component, the conditional transformation unit (CTU), designed to learn the latent space transformations corresponding to specified target views. In addition, a consistency loss term is defined to guide the network toward learning the desired latent space mappings, a task-divided decoder is constructed to refine the quality of generated views, and an adaptive discriminator is introduced to improve the adversarial training process. The generality of the proposed methodology is demonstrated on a collection of three diverse tasks: multi-view reconstruction on real hand depth images, view synthesis of real and synthetic faces, and the rotation of rigid objects. The proposed model is shown to exceed state-of-the-art results in each category while simultaneously achieving a reduction in the computational demand required for inference by 30% on average.

Introduction

Generating new viewpoints of an object from a single image—known as view synthesis—remains a fundamental challenge in computer vision. While conditional generative models like cGANs and CVAEs have shown promise, they typically incorporate "conditioning" (e.g., a target rotation angle) by simply concatenating a label vector to a latent representation. This paper argues that such an approach is suboptimal for complex geometric transformations.

Existing models often struggle to preserve object identity, require heavy auxiliary data like 3D meshes, or are too computationally expensive for real-time use. The proposed Latent Transformation Neural Network (LTNN) addresses these issues by making the transformation itself a core architectural component.

Methods

The Conditional Transformation Unit (CTU)

The core innovation is the CTU, which moves away from the "trivial" concatenation of labels. Instead, it treats viewpoint changes as learned convolutional operations within the latent space. As shown in Figure 1, the model learns to map the latent representation of an input image ($l_x$) directly to the latent representation of a target view ($l_y$) using transformation-specific convolutional weights ($\omega$).

Conceptual overview of latent space transformations using the CTU.

Architectural Comparison

Unlike standard architectures that rely on Fully Connected (FC) layers and concatenation to merge conditioning information, the LTNN uses a fully convolutional path where weights are selected based on the target condition. This modularity allows the network to internalize the manifold of possible object rotations more efficiently.

Comparison of the proposed CTU-based model against standard concatenation-based architectures.

Key Training Components

  1. Consistency Loss: A dedicated loss term minimizes the distance between the predicted transformed latent representation and the actual encoding of the ground-truth target image, ensuring the CTU learns the correct mapping.
  2. Task-Divided Decoder: The decoding process is split into three sub-tasks: coarse pixel estimation, a sigmoid-activated refinement map to sharpen boundaries, and trainable RGB balance parameters for global color adjustment.
  3. Conditional Discriminator Unit (CDU): Similar to the CTU, the discriminator uses modular weights to identify artifacts specific to certain viewpoints, enhancing the adversarial training stability.

Datasets and Evaluation

The model was evaluated across five diverse datasets to demonstrate generality: the NYU Hand Dataset (real depth images), ALOI (rigid objects), 3D Chair Dataset (synthetic benchmark), and both real and synthetic face databases for attribute modification.

Results and Insights

The LTNN consistently outperformed state-of-the-art models like CVAE-GAN and IterGAN in both quality and speed:

  • Computational Efficiency: On the 3D Chair benchmark, LTNN required only 2.183 GFLOPs per image, a massive reduction compared to IterGAN’s 12.120 GFLOPs.
  • Real-Time Performance: The model achieves 114 FPS on a single TITAN Xp GPU, and up to 1975 FPS with mini-batching, making it ideal for AR/VR applications.
  • Parameter Economy: The model uses approximately 70% fewer parameters for inference than its closest competitors (16.9M vs. 57.1M for IterGAN).

By decoupling content from masking via the refinement map, the model naturally learns to separate objects from backgrounds, leading to significantly sharper edges than standard single-pass decoders.

Conclusion

By treating geometric transformations as learned latent operations rather than post-processing steps, the LTNN provides a highly efficient and accurate framework for view synthesis. Future work will look toward extending this framework from discrete, labeled viewpoints to fully continuous attribute modifications and exploring its performance in highly cluttered, "in-the-wild" environments.

Summary updated

BibTeX
@misc{kim2018ct,
  author = {Sangpil Kim and Nick Winovich and Guang Lin and Karthik Ramani},
  title = {{CT-GAN: Conditional Transformation Generative Adversarial Network for Image Attribute Modification}},
  year = {2018},
  eprint = {1807.04812},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1807.04812},
}
Figure