[论文解读] Network-to-Network Translation with Conditional Invertible Neural Networks
本文提出了一种条件可逆神经网络(cINN),用于在不微调的情况下,对固定且预训练好的深度学习模型(如 BERT 和 BigGAN)实现通用、无参数的模型间转换。通过学习表示之间的模糊可逆映射,该方法实现了零样本图像生成、可控内容合成以及模型诊断,且在图像到图像和文本到图像任务上取得了具有竞争力的结果。
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.
研究动机与目标
- 解决在不微调或重新训练的情况下,复用来自不同领域的强大预训练模型的挑战。
- 克服现有领域迁移方法需修改或重新训练专家表示的局限性。
- 实现在任意固定表示之间通用且可重用的迁移,这些表示来自最先进模型。
- 捕捉跨领域映射中的固有模糊性(例如,一个文本描述对应多个图像),以支持可控内容生成。
- 通过将复杂表示翻译为可解释形式(如图像)来促进模型诊断。
提出的方法
- 使用一种条件可逆神经网络(cINN),学习源域和目标域表示之间的双射、可逆映射。
- 将变换条件化在从目标域数据中学习到的嵌入 $ h = H(y) $ 上,以实现上下文感知的翻译。
- 应用带有条件仿射耦合的交替耦合层:$ z' = \text{concat}(s_\theta([z_{1:d}; h]) \odot z_{d+1:D} + t_\theta([z_{1:d}; h]), z_{d+1:D}) $,以确保完全可逆性。
- 使用小型变分自编码器对离散条件信号(例如 BigGAN 中的 ImageNet 类标签)进行去量化,以避免训练期间出现模式崩溃。
- 通过最小化源模型和目标模型配对表示上的似然目标,端到端训练 cINN。
- 利用预训练编码器(例如,BERT 用于文本,BigGAN 用于图像)提取固定表示,避免在专家模型上计算梯度。
实验结果
研究问题
- RQ1一个单一的、通用模型是否能够在不微调的情况下,实现对来自多样化最先进模型的固定现成表示之间的转换?
- RQ2如何显式建模跨领域映射中的固有模糊性(例如,一个文本描述 → 多个图像),以实现可控生成?
- RQ3此类转换网络是否能够实现零样本能力,例如仅使用预训练模型实现文本到图像生成?
- RQ4该方法是否允许通过将复杂表示翻译为可解释形式(如图像)来实现对复杂表示的诊断分析?
- RQ5该方法是否能够以极低的计算开销高效应用,且无需重新训练专家模型?
主要发现
- cINN 成功实现了在 BERT 的文本表示与 BigGAN 的潜在空间之间的转换,实现了无需修改任一模型的文本到图像生成。
- 该方法能够从文本提示生成多样化且高质量的图像,定性结果显示出高多样性与保真度,如图 S8 所示。
- 该方法通过允许在某一领域(如文本)中进行操作来影响另一领域(如图像)的输出,从而实现了可控内容合成。
- 该模型在图像到图像和文本到图像生成基准上取得了具有竞争力的性能,证明了其在不同领域间的通用适用性。
- 训练 cINN 仅需 4–12 GB 显存,每模型训练时间少于一天,且无需在专家模型上计算梯度,计算效率高。
- 使用变分自编码器对 BigGAN 中离散类标签进行去量化,可防止模式崩溃,并实现对混合连续与离散条件信号的稳定训练。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。