[Paper Review] Network-to-Network Translation with Conditional Invertible Neural Networks
This paper proposes a conditional invertible neural network (cINN) for generic, parameter-free translation between fixed, pre-trained deep learning models—such as BERT and BigGAN—without finetuning. By learning ambiguous, invertible mappings between representations, it enables zero-shot image generation from text, controlled content synthesis, and model diagnostics, achieving competitive results on image-to-image and text-to-image tasks.
Given the ever-increasing computational costs of modern machine learning models, we need to find new ways to reuse such expert models and thus tap into the resources that have been invested in their creation. Recent work suggests that the power of these massive models is captured by the representations they learn. Therefore, we seek a model that can relate between different existing representations and propose to solve this task with a conditionally invertible network. This network demonstrates its capability by (i) providing generic transfer between diverse domains, (ii) enabling controlled content synthesis by allowing modification in other domains, and (iii) facilitating diagnosis of existing representations by translating them into interpretable domains such as images. Our domain transfer network can translate between fixed representations without having to learn or finetune them. This allows users to utilize various existing domain-specific expert models from the literature that had been trained with extensive computational resources. Experiments on diverse conditional image synthesis tasks, competitive image modification results and experiments on image-to-image and text-to-image generation demonstrate the generic applicability of our approach. For example, we translate between BERT and BigGAN, state-of-the-art text and image models to provide text-to-image generation, which neither of both experts can perform on their own.
Motivation & Objective
- Address the challenge of reusing powerful, pre-trained models from different domains without fine-tuning or retraining.
- Overcome the limitation of existing domain transfer methods that require modifying or retraining expert representations.
- Enable generic, reusable transfer between arbitrary fixed representations from state-of-the-art models.
- Capture the inherent ambiguity in cross-domain mappings (e.g., multiple images per text description) to support controlled content generation.
- Facilitate model diagnostics by translating complex representations into interpretable forms like images.
Proposed method
- Use a conditional invertible neural network (cINN) that learns a bijective, invertible mapping between representations of source and target domains.
- Condition the transformation on a learned embedding $ h = H(y) $ derived from the target domain data, enabling context-aware translation.
- Apply alternating coupling layers with conditional affine coupling: $ z' = \text{concat}(s_\theta([z_{1:d}; h]) \odot z_{d+1:D} + t_\theta([z_{1:d}; h]), z_{d+1:D}) $, ensuring full invertibility.
- Dequantize discrete conditioning signals (e.g., ImageNet class labels in BigGAN) using a small variational autoencoder to avoid mode collapse during training.
- Train the cINN end-to-end by minimizing a likelihood objective on paired representations from source and target models.
- Utilize pre-trained encoders (e.g., BERT for text, BigGAN for images) to extract fixed representations, avoiding gradient computation on expert models.
Experimental results
Research questions
- RQ1Can a single, generic model translate between fixed, off-the-shelf representations from diverse, state-of-the-art models without fine-tuning?
- RQ2How can inherent ambiguities in cross-domain mappings (e.g., one text description → many images) be explicitly modeled to enable controlled generation?
- RQ3Can such a translation network enable zero-shot capabilities, such as text-to-image generation, using only pre-trained models?
- RQ4Does the method allow diagnostic analysis of complex representations by translating them into interpretable forms like images?
- RQ5Can the approach be applied efficiently with minimal computational overhead, avoiding retraining of expert models?
Key findings
- The cINN successfully translates between BERT’s textual representations and BigGAN’s latent space, enabling text-to-image generation without modifying either model.
- The method generates diverse, high-quality images from text prompts, with qualitative results showing high diversity and fidelity, as shown in Figure S8.
- The approach enables controlled content synthesis by allowing manipulation in one domain (e.g., text) to influence the output in another (e.g., image) via conditional translation.
- The model achieves competitive performance on image-to-image and text-to-image generation benchmarks, demonstrating generic applicability across domains.
- Training the cINN requires only 4–12 GB VRAM and less than a day per model, with no gradient computation on the expert models, making it computationally efficient.
- The use of a variational autoencoder for dequantizing discrete class labels in BigGAN prevents mode collapse and enables stable training on mixed continuous and discrete conditioning signals.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.