Normal Similarity Network for Generative Modelling

Jay Nandy, Wynne Hsu, Mong-Li Lee · DOI

Abstract

Gaussian distributions are commonly used as a key building block in many generative models. However, their applicability has not been well explored in deep networks. In this paper, we propose a novel deep generative model named as Normal Similarity Network (NSN) where the layers are constructed with Gaussian-style filters. NSN is trained with a layer-wise non-parametric density estimation algorithm that iteratively down-samples the training images and captures the density of the down-sampled training images in the final layer. Additionally, we propose NSN-Gen for generating new samples from noise vectors by iteratively reconstructing feature maps in the hidden layers of NSN. Our experiments suggest encouraging results of the proposed model for a wide range of computer vision applications including image generation, styling and reconstruction from occluded images.

Introduction

In deep generative modeling, researchers often face a choice between explicit density models (like VAEs) and implicit density models (like GANs). Explicit models allow for direct likelihood optimization but often struggle with long-range pixel correlations, leading to blurry results. Conversely, GANs produce sharp images but are notoriously difficult to train, often suffering from instability and mode collapse. The Normal Similarity Network (NSN) is designed to bridge this gap, offering the stability of explicit density estimation with the high-quality, sharp output typically associated with implicit models.

Methods

The NSN framework introduces a unique architecture and a corresponding generation algorithm.

NSN Architecture and Training

Unlike standard convolutional neural networks that use fixed filters, NSN layers are built from learnable Gaussian-style filters. During the forward pass, the network computes similarity scores between image patches and these filters. A standout feature of NSN is its training via a non-parametric Expectation-Maximization (EM) algorithm. Instead of pre-defining the number of channels, the network dynamically creates new filters as needed based on a similarity threshold, effectively auto-sizing its layers to match the complexity of the dataset.

The NSN architecture utilizes Gaussian-style filters and a non-parametric EM algorithm to capture multi-modal densities across hierarchical layers.

NSN-Gen: Image Generation

To generate new samples, the authors propose NSN-Gen. This process begins with a random noise vector at the network's deepest layer. It then performs a backward pass, iteratively reconstructing feature maps layer by layer. Patches are generated as weighted combinations of samples drawn from the learned Gaussian filters, with hyperparameters controlling dynamic range, pixel randomness, and contrast to ensure visual fidelity.

NSN-Gen facilitates image generation through a backward pass, reconstructing feature maps from noise vectors using weighted sampling of learned filters.

Datasets and Experimental Setup

The model was evaluated on four standard benchmarks: MNIST, Fashion-MNIST, LFW (faces), and LSUN Church. For color datasets (LFW and Church), images were preprocessed with ZCA whitening to remove local pixel correlations, ensuring the network learns evenly distributed filters. Performance was quantified using the Inception Score (IS) calculated over 50,000 generated samples.

Key Results and Insights

NSN demonstrated strong performance, often exceeding standard GAN benchmarks in terms of Inception Score:

  • MNIST: NSN achieved 2.44, outperforming DCGAN (2.27) and WGAN (2.02).
  • LFW: NSN achieved 3.04, surpassing WGAN (2.94) and DCGAN (2.67).
  • Fashion-MNIST: NSN achieved 3.85, remaining competitive with LSGAN (4.45).

Beyond quantitative metrics, NSN offers several practical advantages. Because it relies on EM clustering rather than adversarial training, it is inherently stable and avoids mode collapse. Furthermore, the latent space exhibits a rich linear structure allowing for smooth interpolation and filter arithmetic. The model also shows promise in downstream tasks like image styling and inpainting, where it can reconstruct occluded regions by conditioning the generation on partial feature maps.

Limitations and Future Work

While promising, the current approach is limited to lower resolutions (up to 64x64). Scaling the non-parametric EM algorithm to high-resolution imagery remains a challenge for future work. Additionally, the authors noted some color loss during inpainting tasks, likely due to the ZCA preprocessing step. Future research will focus on architectural scaling and refining the reconstruction process to better preserve color information.

Summary updated

BibTeX
@inproceedings{nandy2018normal,
  author = {Jay Nandy and Wynne Hsu and Mong-Li Lee},
  title = {{Normal Similarity Network for Generative Modelling}},
  booktitle = {ICIP},
  year = {2018},
  doi = {10.1109/icip.2018.8451432},
}
Figure