Source-linked AI summary

Network-to-Network Translation with Conditional Invertible Neural Networks

Robin Rombach, Patrick Esser, Björn Ommer

arXiv:2005.13580v2cs.CVcs.LG

TL;DR

Powerful domain-specific models are costly to train, and relating their representations for transfer is challenging. The paper uses a conditional invertible network to translate between fixed representations while modeling ambiguity. It reports competitive conditional synthesis and presents translation as useful for content creation and model diagnosis.

  • Problem

    Training powerful domain-specific models requires extensive resources, while learning representations that also support transfer between domains is challenging.

    Source: §1 · p. 1
  • Method

    A conditional invertible network translates between fixed expert-model representations by modeling translation ambiguity as a residual, without altering or retraining the experts.

    Source: §1 · p. 2
  • Results

    The approach is reported as highly competitive and on par with the state of the art on available Inception [59] and FID [31] scores for COCO, despite not being trained on COCO images.

    Source: §4.1 · p. 6
  • Takeaways & Limitations

    The approach applies to content creation and model diagnosis, including visualizing how invariances change across model layers.

    Source: §1 · p. 2, §4.2 · p. 7

    Controlled image synthesis and modification may be misused for forgery and manipulation.

    Source: Broader Impact · p. 10

Abstract

from arXiv · show

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.

1 Introduction

Powerful domain-specific representations are costly to train, while connecting representations across domains remains challenging. The paper proposes translation between fixed expert models that preserves their capabilities and models translation ambiguity for transfer and content creation.

1 Introduction

  • Massive domain-specific models demand substantial data and computational resources, yet learning representations that also support cross-domain transfer remains challenging.The introduction frames reuse of these invested resources as a motivation for connecting existing representations.Source: §1 · p. 1
  • The approach translates between arbitrary fixed, off-the-shelf representations without altering or retraining the expert models.It is contrasted with approaches that require learning or fine-tuning existing representations.Source: §1 · p. 2
  • A conditional invertible neural network models translation ambiguity as a residual, supporting BERT [15] to BigGAN [4] text-to-image transfer and content creation.The stated contributions also include model diagnostics and computationally affordable transfer without gradients through expert models.Source: §1 · p. 2

2 Related Work

Prior work uses generative models for conditional synthesis and image-to-image translation, while reuse of pretrained models for generative tasks remains limited. The paper positions its approach as a unified way to combine existing models for conditional content creation.

2 Related Work

  • Most approaches to deep-learning-based domain-to-domain translation rely on generative models—VAEs [37] [58], GANs, autoregressive models [70], or normalizing flows [50]—that transform simple base-distribution samples into complex target distributions.Source: §2 · p. 2
  • Conditional synthesis ranges from class labels [47] [36] and attributes to text [82] [55] and image-to-image tasks such as grayscale, low-resolution, edge, segmentation, and keypoint inputs.Image-to-image methods may use aligned or unaligned pairs.Source: §2 · pp. 2–3
  • The paper presents post-hoc fusion of two deep networks, using a conditional INN to transfer between their representations while modeling ambiguity as a residual.It frames this as a way to combine pretrained models for conditional content creation without making the pretrained models aware of the new capability.Source: Figure 2 · p. 3, §2 · p. 3

3 Approach

The approach translates between representations from already trained models, without requiring access to their training procedures. It uses an invertible conditional mapping and a residual to represent ambiguous translations, then samples that residual to produce target representations.

3 Approach

  • The approach assumes access to already trained models, but not practical access to their training procedures.The paper gives model complexity and unavailable components as examples of why training access may be missing.Source: §3 · p. 3
  • Because representations may be non-isomorphic and invariant to task-irrelevant details, translation is modeled probabilistically as p(zΘ|zΦ).A residual v is introduced so that, for a given zΦ, it uniquely determines zΘ.Source: §3 · p. 4
  • The conditional invertible network τ estimates residual v from both representations, capturing information in zΘ that is not already represented in zΦ.Invertibility allows τ to be reversed with respect to v for a given zΦ.Source: §3 · p. 4
  • Making v independent of zΦ is pursued by minimizing the divergence between p(v|zΦ) and an independent prior q(v), chosen as standard normal in practice.When the objective is minimized, p(v|zΦ)=q(v), and sampling v from q(v) followed by τ produces samples from p(zΘ|zΦ).Source: §3 · p. 4
  • The objective also upper-bounds mutual information I(v, zΦ), so minimizing it works toward independence between the residual and conditioning representation.The paper describes this interpretation in connection with the information bottleneck [1].Source: §3 · p. 4
  • The cINN guarantees perfect reconstruction of zΘ through invertibility, avoiding the β trade-off described for the deep variational information bottleneck [1].The method operates on hidden representations, trains independently of the domains, and requires no gradients with respect to expert models.Source: §3 · p. 5

4 Experiments

The experiments test cINN-based reuse of fixed experts and target generators across text-to-image, image-to-image, superresolution, and image-modification tasks. Results include competitive BERT-to-BigGAN synthesis and transfers across varied image tasks.

4.1 Translation to BigGAN

  • BERT-to-BigGAN synthesis captures fine- and coarse-grained captions and is on-par with state-of-the-art Inception and FID scores without training a text encoder or image decoder.The comparison uses COCO-stuff captions.Source: Table 1 · p. 5, §4.1 · p. 6

4.2 Repurposing a single target generator for different source domain models

  • Different segmentation representations produce varied images, and using logits instead of final segmentation outputs reduces diversity, exposing additional information such as animal color.Selecting different expert layers provides control over synthesis.Source: §4.2 · p. 6, Figure 3 · p. 6
  • Sobel-edge inputs enable edge-to-image translation, while texture-biased ImageNet ResNet features preserve texture patches in images completed from masked inputs.Source: §4.2 · pp. 6–7
  • Combining a 32 × 32 autoencoder with a 256 × 256 autoencoder captures translation ambiguities and enables generative superresolution.Source: §4.2 · p. 7, Figure 4 · p. 7

4.3 Evaluating image modification capabilities of our generic approach

  • Attribute modifications are more coherent than [8] and yield higher-quality images by FID; glasses FID is high because it is calculated over the complete dataset.Source: §4.3 · p. 8, Figure 6 · p. 8
  • Exemplar-guided transfer recombines an exemplar’s residual with another image’s segmentation, while spatial deformation supports unsupervised shape disentangling and models also transfer between unpaired datasets.Source: §4.3 · p. 8, Figure 7 · p. 9

5 Conclusion

The paper proposes a conditionally invertible network for transferring between fixed, off-the-shelf domain representations without altering or retraining the expert models. It presents this as a flexible and affordable way to reuse pretrained models, including transfers across diverse image domains.

5 Conclusion

  • The conditionally invertible translation network transfers between existing fixed domain representations without altering them or requiring costly retraining or finetuning.The conclusion describes the method as plug-and-play and independent of individual domains.Source: §5 · p. 9
  • The method combines pretrained domain experts for new tasks, including BERT and BigGAN, with a single GPU rather than the vast multi-GPU resources required to train such models.The paper identifies speech, music, and brain signals as possible future transfer domains.Source: §5 · p. 9
  • Figure 8 illustrates transfers from oil portraits and anime to FFHQ, between FFHQ and CelebA-HQ, and between human and animal faces.The figure caption describes these examples as unpaired transfer.Source: Figure 8 · p. 9

Broader Impact

The broader-impact discussion presents model reuse as a way to reduce the computational demands of applying pretrained models and to connect expertise across disciplines. It also notes potential misuse of image synthesis and modification for forgery and manipulation.

Broader Impact

  • Reusing powerful existing models can reduce computational demands instead of repeating costly training for every new application.The paper links this concern to the large environmental footprint of single training runs of large-scale models.Source: Broader Impact · p. 10
  • Efficiently connecting expert models across diverse data and problems may support new research directions and interdisciplinary work.The discussion specifically identifies vision and language as disciplines whose expert models can be difficult to bring together.Source: Broader Impact · p. 10
  • Computationally efficient transfer without costly retraining can increase research opportunities for economically weaker institutions and countries.The paper notes that the cost of training state-of-the-art models can limit who can afford their transfer and application.Source: Broader Impact · p. 10
  • The approach can widen the scope in which publicly shared pretrained models are applied.The discussion frames this as increasing the applicability of research output funded by public resources.Source: Broader Impact · p. 10
  • Controlled image synthesis and modification have broad creative applications but can also be misused for forgery and manipulation.Source: Broader Impact · p. 10

Overview

The appendix outlines supplementary analyses of computational costs, the training objective, disentangling, unpaired translation, ablations, and model architectures. Its cost comparison argues that cINN training is substantially cheaper than training the domain experts.

Overview

  • The appendix surveys requirements and costs, derives the training objective, demonstrates unsupervised shape–appearance disentangling, and gives unpaired-translation examples and technical details.It also describes an MLP ablation, the reusable autoencoder architecture and training, and cINN architecture and BERT-to-BigGAN details.Source: Overview · p. 15

A Computational Cost and Energy Consumption

  • The cINN's training costs are two orders of magnitude smaller than those of the domain experts, and the comparison covers single-run computational costs.The authors argue that expert training costs can be amortized across new tasks by recombining the experts; Table S1 specifies assumptions used for energy, cost, and emissions estimates.Source: A Computational Cost and Energy… · p. 15, Table S1 · p. 15

B Training Objective

The appendix derives the training objective using a change of variables for the conditional densities. It then demonstrates unsupervised shape–appearance disentangling and unpaired translation, where the residual representation supports correspondences across domains.

B Training Objective

  • The derivation of Eq. (4) uses a change of variables and the invertibility of τ to express the conditional density of v in terms of the density of zΘ and a Jacobian determinant.Taking the expectation over zΦ yields Eq. (4).Source: B Training Objective · p. 16

C Unsupervised Disentangling of Shape and Appearance

  • In the Animals setting, randomly deforming inputs supplies training pairs; the learned residual v represents shape independently of appearance and can be recombined with another image's appearance.The reported result is unsupervised disentangling of shape and appearance; Figure S1 illustrates the recombination.Source: C Unsupervised Disentangling of Shape… · p. 17, Figure S1 · p. 17

D Unpaired Image Translation

  • For unpaired translation, the residual v captures commonalities between source and target sets and supports meaningful correspondences; examples preserve face viewpoint across datasets.The appendix also shows bidirectional human–animal examples and uses the same v projected onto different datasets.Source: D Unpaired Image Translation · p. 18, Figure S2 · p. 18, Figure S3 · p. 18

E Ablation Study: Replacing our cINN with an MLP

The ablation shows deterministic MLPs handle early-layer translations but fail as segmentation representations become more invariant; cINNs retain coherent outputs under high ambiguity.

F Architecture and Training of the Autoencoder g

The autoencoder g reuses one architecture across image-translation tasks, pairing a ResNet-101 encoder with a BigGAN decoder. Its training combines perceptual reconstruction and adversarial components, and it produces diverse, realistic Landscape samples from label maps or segmentation outputs.

G.1 Architecture of the conditional INN

The cINN uses a stack of conditional invertible blocks and a separate conditioning embedding. For BERT-to-BigGAN transfer, training dequantizes BigGAN's discrete class conditioning with a variational autoencoder before learning the conditional mapping.

G.1 Architecture of the conditional INN

  • G.1 Architecture of the conditional INN: The cINN uses 20 blocks, each combining affine coupling, actnorm, and fixed permutation layers.Source: Figure S7 · p. 22, §G.1 · p. 22
  • G.1 Architecture of the conditional INN: Alternating coupling layers mix input components, while a non-invertible embedding H processes conditioning y and leaves τ conditionally invertible.Source: §G.1 · pp. 22–23
  • G.1 Architecture of the conditional INN: Typical training uses batch sizes of 10–25, 4–12 GB VRAM, and converges in less than a day.Source: §G.1 · p. 23

G.2 Training Details for Bert-to-BigGAN Translation

  • G.2 Training Details for Bert-to-BigGAN Translation: Additional BERT-to-BigGAN examples show high diversity in synthesized outputs.Source: Figure S8 · p. 23
  • G.2 Training Details for Bert-to-BigGAN Translation: A variational autoencoder stochastically reconstructs BigGAN's discrete class embedding h to dequantize it and prevent τ from collapsing onto one dimension.Source: §G.2 · pp. 23–24, Table S4 · p. 24
  • G.2 Training Details for Bert-to-BigGAN Translation: τ is trained to map BERT representations zΦ and sampled ambiguities v to BigGAN representations zΘ using the objective from Eq. (4).Source: §G.2 · p. 24
Loading 2005.13580v2…