A Cyclically-Trained Adversarial Network for Invariant Representation Learning

Jiawei Chen, Janusz Konrad, Prakash Ishwar

In computer vision, the ability to learn invariant representations is crucial for tasks requiring the separation of content from style. For example, in a face-swapping application, a model must capture the pose and lighting of a scene while remaining completely indifferent to the original subject's identity. Researchers from Boston University have introduced a novel approach to this problem, forcing neural networks to "forget" specific information without sacrificing the fidelity of the remaining attributes.

The Challenge of Disentanglement

Learning invariant representations typically involves disentangled representation learning, which attempts to partition information into distinct latent spaces: one for the factor of interest (e.g., identity) and another for everything else (e.g., pose). However, existing methods often suffer from two primary issues:

  1. Information Leakage: The encoder may "leak" forbidden information into the latent space. If the decoder learns to ignore this during training, the representation is not truly invariant, leading to poor generalization.
  2. Visual Blurriness: Models based on Variational Autoencoders (VAEs) often produce blurry, "average" images because they optimize for pixel-wise similarity rather than realistic textures.

Methodology: The Forward-Backward Cycle

The authors propose a conditional Variational Generative Adversarial Network (VAE-GAN) consisting of an Encoder ($Enc$), a Decoder ($Dec$), and a Discriminator ($D$). The core innovation is a unique Forward-Backward Cyclic Training process designed to enforce invariance in the latent space.

Overview of the proposed Forward and Backward training cycles.

The Training Cycles

  • Forward Cycle: The encoder maps an input image $x$ to a latent code $z$. The decoder then combines $z$ with a target "class code" (representing a specific attribute like a chair style) to synthesize a new image $\hat{x}'$. A discriminator $D$ ensures the output is both realistic and belongs to the target class.
  • Backward Cycle: To ensure $z$ is truly invariant, the synthesized image $\hat{x}'$ is passed back through the encoder to generate a new latent code $z''$. The model minimizes the distance between the original $z$ and $z''$.

If $z$ contained any information about the original identity, $z$ and $z''$ would differ because $\hat{x}'$ possesses a new identity. By forcing $z \approx z''$, the network is compelled to store only information common to both images—such as pose, lighting, and background—effectively filtering out the forbidden attributes.

Experimental Evaluation

The model was evaluated on three benchmarks:

  • 3D Chairs: 1,393 styles viewed from 62 angles. Goal: Invariance to style, preservation of viewpoint.
  • YaleFace: 38 subjects under 64 lighting conditions. Goal: Invariance to identity, preservation of illumination.
  • UPNA Synthetic: A head-pose database. Goal: Invariance to identity, preservation of 3D head angles.

To measure performance, the authors introduced the Generator Label Score (GLS), which uses pre-trained "expert" networks to evaluate whether the synthesized images correctly reflect the target attributes while successfully hiding the invariant ones.

Key Results and Insights

The proposed model consistently outperformed state-of-the-art methods in both quantitative metrics and visual fidelity. On the YaleFace dataset, the model achieved an 85.5% accuracy in preserving illumination conditions, significantly higher than the 32-77% range of competing models.

Qualitative results on the YaleFace dataset showing illumination transfer across different identities.

In the 3D Chairs test, the model reduced the ability of a classifier to predict the "forbidden" chair style to just 0.79%, indicating near-perfect invariance. Qualitatively, the images produced are noticeably sharper than those from previous VAE-based methods. While competitors often produced blurry results or lost the original object's color during attribute swaps, this cyclic approach preserved fine details and textures.

Conclusion

By shifting the focus from simple disentanglement to a rigorous cyclic consistency check in the latent space, this research provides a robust framework for learning invariant representations. The use of adversarial loss in the image space further ensures that the resulting synthesis is high-quality and realistic. Future work may explore how this method scales to continuous variables and more complex, data-intensive transformations.

Summary updated

BibTeX
@inproceedings{chen2020cyclically,
  author = {Jiawei Chen and Janusz Konrad and Prakash Ishwar},
  title = {{A Cyclically-Trained Adversarial Network for Invariant Representation Learning}},
  booktitle = {Workshops @ CVPR},
  year = {2020},
  doi = {10.1109/cvprw50498.2020.00399},
}
Figure