TzK Flow - Conditional Generative Model

Micha Livne, David J. FleetarXiv 2018

Abstract

TzK Flow is a conditional generative framework that integrates the stable training of Maximum Likelihood (ML) with the high-fidelity sampling of normalizing flows. By introducing a modular "knowledge" bottleneck, the model enables incremental attribute learning without architectural redesign, effectively bridging the gap between Variational Autoencoders (VAEs) and flow-based models. We demonstrate its efficacy on MNIST and Omniglot benchmarks, showing competitive density estimation and high-quality sample generation.

Introduction

Generative modeling typically involves a fundamental trade-off between training stability and sample quality. Variational Autoencoders (VAEs) offer stable training via the evidence lower bound but often produce blurry samples due to information loss in the latent bottleneck. Conversely, Generative Adversarial Networks (GANs) generate sharp images but suffer from training instabilities and mode collapse. Normalizing Flows provide exact density estimation and sharp samples through invertible mappings but are often difficult to condition on specific semantic attributes without rigid architectural constraints.

TzK (pronounced "task") addresses these challenges by providing a framework that is stable, expressive, and extensible. It utilizes invertible flows to maintain full information while employing a "knowledge bottleneck" to learn low-dimensional semantic representations.

Methods

The core of TzK is a conditional probability flow-based model. It employs a smooth, invertible mapping $f_T$ to transform a simple latent distribution into the complex data distribution.

Knowledge Bottleneck and Cycle Consistency

Knowledge in TzK is defined as a pair $(\kappa^i, C^i)$, where $\kappa^i$ is a binary indicator (e.g., class label) and $C^i$ represents continuous characteristics (e.g., style). The model ensures consistency between the knowledge extracted during encoding and the knowledge used for decoding through a "knowledge gap" constraint, implemented as a KL-divergence between encoder and decoder distributions.

TzK graphical model and parameter estimation framework.

Architecture

The architecture leverages channel-wise invertible convolutions, affine transformations, and a "SymLog" activation function. To optimize memory usage, a "tiling convolution" approach is used, alternating between squeezing and unsqueezing data dimensions to manage spatial resolution and channel depth efficiently.

Results

The model was evaluated on the MNIST and Omniglot datasets. A key advantage of TzK is its ability to handle multiple types of supervision; the model was trained jointly on both datasets to demonstrate its capacity for unified learning.

Quantitative Performance

On the MNIST dataset, TzK achieved a negative log-likelihood of 2.34 bits per pixel (BPP) when conditioned on digit labels. While this is slightly higher than specialized autoregressive models like MADE (1.39 BPP), it significantly outperforms basic flow models like NICE (4.39 BPP), demonstrating competitive performance for a general-purpose flow architecture.

Qualitative Sampling

TzK successfully generates diverse and recognizable handwritten digits by sampling directly from the learned conditional priors, as illustrated in the samples below.

Generated MNIST samples from the TzK Flow model.

Discussion and Conclusion

TzK Flow presents a robust method for online knowledge acquisition. Unlike traditional conditional models that require a fixed number of classes, TzK treats attributes as independent pieces of knowledge. This allows for the incremental addition of new classes or styles without retraining the entire system.

Future work will explore the compositionality of these learned attributes—such as combining specific digit identities with distinct handwriting styles—and address the computational challenges of scaling flow-based models to high-resolution imagery.

Summary updated

BibTeX
@misc{livne2018tzk,
  author = {Micha Livne and David J. Fleet},
  title = {{TzK Flow - Conditional Generative Model}},
  year = {2018},
  eprint = {1811.01837},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1811.01837},
}
Figure