Conditional Generation Using Polynomial Expansions

Grigorios Chrysos, Markos Georgopoulos, Yannis Panagakis

Generative modeling has evolved into a cornerstone of modern machine learning. Recently, Deep Polynomial Neural Networks (PNNs) have demonstrated impressive results in unsupervised image generation—mapping an input noise vector to a synthesized image. However, replicating this success in conditional generation tasks, such as super-resolution or class-guided synthesis, has proven difficult.

The standard approach to conditional generation involves naively concatenating a noise vector with a conditional variable into a single, long vector. This method is fundamentally flawed for two reasons: first, vectorizing a conditional image (like a low-resolution input) destroys its inherent spatial correlations; second, concatenating high-dimensional inputs leads to a massive parameter explosion in the first fully-connected layer.

To address this, researchers have introduced CoPE (Conditional Polynomial Expansions), a general framework that brings the power of multivariate polynomial expansions to conditional image generation. CoPE effectively captures the complex auto- and cross-correlations between noise and conditional inputs without sacrificing spatial structure or computational efficiency.

The CoPE Framework

The core innovation of CoPE lies in using multivariate polynomials to model the intricate relationships between multiple input variables.

Architecture of the CoPE framework illustrating the recursive combination of noise and conditional inputs.

Instead of relying on a single, massive expansion that would be computationally prohibitive, CoPE utilizes a recursive formulation:

$$x_n = x_{n-1} + (U^T_{n,I} z_I + U^T_{n,II} z_{II}) * x_{n-1}$$

In this equation, $z_I$ represents the noise, $z_{II}$ is the conditional input, and $*$ denotes the Hadamard (element-wise) product. This recursive structure allows the model to build up higher-order correlations layer by layer, acting as a universal approximator while keeping the parameter count manageable.

Key features of the architecture include:

  • Flexible Embeddings: Because inputs are handled via separate learnable parameters ($U_{n,I}$ and $U_{n,II}$), the model can apply different constraints to each. For instance, noise can pass through a dense layer while a conditional image passes through a convolutional layer, preserving critical spatial inductive biases.
  • Product of Polynomials: To reach high-order expansions (e.g., a $10^{th}$ degree polynomial) without requiring a linear number of layers, CoPE feeds the output of one polynomial into another. This achieves an $N^{th}$ order expansion using only $\Theta(\log_2 N)$ layers.
  • Stability Measures: High-order polynomials are prone to exploding values. CoPE mitigates this by using uniform noise distributions, $tanh$ output activations, and batch normalization.

Experiments and Key Results

CoPE was rigorously evaluated across five distinct tasks—class-conditional generation, inverse problems (super-resolution and block-inpainting), edges-to-image translation, image-to-image translation, and attribute-guided generation—spanning eight datasets including CIFAR10, Cars196, SVHN, and CelebA.

Examples of class-conditional image generation produced by the CoPE framework.

The results demonstrate that capturing cross-correlations mathematically via polynomials is highly effective:

  • Superior Image Quality: On the Cars196 dataset for class-conditional generation, CoPE achieved a remarkable 53.9% reduction in FID (Fréchet Inception Distance) compared to the best-performing baseline.
  • Robustness in Super-Resolution: In challenging $16\times$ super-resolution tasks, CoPE significantly outperformed standard models like SPADE and other PNN variants, proving its superior handling of spatial correlations compared to simple concatenation.
  • Zero-Shot Attribute Synthesis: Using a VAE variant (CoPE-VAE), the model successfully generated images of "Smiling Females" even when that specific attribute combination was entirely removed from the training data. This highlights strong feature disentanglement and generalization capabilities.
  • Performance Without Activations: Remarkably, the core CoPE model achieves these state-of-the-art results without relying on standard non-linear activation functions (like ReLU) between layers. It relies entirely on the multiplicative interactions inherent to the polynomial expansion.

Limitations and Future Directions

While CoPE presents a significant step forward for PNNs, the authors note a few limitations. Current experiments were conducted on a single GPU, meaning CoPE has not yet been tested on massive-scale synthesis tasks (e.g., high-resolution ImageNet) that typically require multi-GPU clusters.

Future work may explore automated "architecture discovery" for polynomial networks to optimize the recursive formulations further. Additionally, integrating standard activation functions to create "piecewise" polynomial expansions could potentially unlock even greater expressivity for complex generative tasks.

Summary updated

BibTeX
@inproceedings{chrysos2021conditional,
  author = {Grigorios Chrysos and Markos Georgopoulos and Yannis Panagakis},
  title = {{Conditional Generation Using Polynomial Expansions}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=wPA_5Wsjt8i},
}
Figure