[Paper Review] Spatial Dependency Networks: Neural Layers for Improved Generative Image Modeling
This paper introduces Spatial Dependency Networks (SDNs), a novel neural architecture that enhances image generation in variational autoencoders (VAEs) by modeling spatial coherence and long-range dependencies through a sequential, gated mechanism. SDN decoders significantly improve log-likelihood performance and disentangled representation learning compared to convolutional baselines, especially in non-autoregressive settings.
How to improve generative modeling by better exploiting spatial regularities and coherence in images? We introduce a novel neural network for building image generators (decoders) and apply it to variational autoencoders (VAEs). In our spatial dependency networks (SDNs), feature maps at each level of a deep neural net are computed in a spatially coherent way, using a sequential gating-based mechanism that distributes contextual information across 2-D space. We show that augmenting the decoder of a hierarchical VAE by spatial dependency layers considerably improves density estimation over baseline convolutional architectures and the state-of-the-art among the models within the same class. Furthermore, we demonstrate that SDN can be applied to large images by synthesizing samples of high quality and coherence. In a vanilla VAE setting, we find that a powerful SDN decoder also improves learning disentangled representations, indicating that neural architectures play an important role in this task. Our results suggest favoring spatial dependency over convolutional layers in various VAE settings. The accompanying source code is given at https://github.com/djordjemila/sdn.
Motivation & Objective
- To improve generative image modeling by incorporating inductive biases based on spatial regularities and coherence in images.
- To address the limitations of standard convolutional layers in capturing long-range spatial dependencies and enforcing spatial coherence in feature maps.
- To investigate whether architectural improvements in the decoder can enhance disentangled representation learning in VAEs.
- To evaluate SDN's effectiveness in both hierarchical and non-hierarchical VAE settings across real and synthetic datasets.
- To demonstrate that SDN can be used as a plug-in module to improve performance in diverse image generation and representation learning tasks.
Proposed method
- SDN introduces a sequential, gated mechanism that refines feature maps across 2D spatial locations, ensuring spatial coherence by propagating contextual information through layers.
- Each SDN layer uses shared, learnable deterministic functions to compute conditional corrections to feature vectors, based on their spatial proximity and similarity.
- The architecture is designed to be spatially equivariant—parameter sharing ensures translation invariance, similar to CNNs, but with enhanced long-range dependency modeling.
- SDN is integrated into the decoder of hierarchical and vanilla VAEs, replacing standard deconvolutional or transposed convolutional layers.
- The method is evaluated using standard metrics: negative ELBO (in bits per dimension), log-likelihood, and disentanglement scores (β-VAE and FactorVAE).
- Training employs β-annealing to mitigate posterior collapse, especially in the non-hierarchical VAE setting.
Experimental results
Research questions
- RQ1Can a neural architecture that explicitly models spatial coherence and long-range dependencies improve image generation in VAEs compared to standard convolutional decoders?
- RQ2Does integrating SDN into a VAE decoder lead to better density estimation on real-world image datasets like CIFAR10 and ImageNet32?
- RQ3Can SDN improve disentangled representation learning in a non-hierarchical VAE, particularly when using the β-VAE and FactorVAE metrics?
- RQ4How does SDN perform in high-resolution image synthesis, especially at high sampling temperatures where coherence is critical?
- RQ5Is the improvement in representation learning due to architectural capacity or due to the explicit modeling of spatial inductive biases?
Key findings
- On CIFAR10 and ImageNet32, the SDN-VAE achieved a test log-likelihood of 7.95 ± 0.07 bits per dimension (BPD), significantly outperforming the CNN baseline of 7.40 ± 0.07 BPD.
- On the 3D-Shapes synthetic dataset, the SDN-based VAE achieved a negative ELBO of 2.66 ± 0.04 BPD, compared to 4.44 ± 0.04 BPD for the CNN baseline, indicating superior density estimation.
- SDN-based VAEs demonstrated superior disentanglement performance on both β-VAE and FactorVAE metrics across varying β values, indicating improved latent factor disentanglement.
- High-resolution image synthesis on CelebAHQ256 produced perceptually coherent and high-quality samples, even at high sampling temperatures, where standard models often fail.
- The improvement in disentanglement was observed despite the absence of teacher forcing, and posterior collapse was effectively mitigated using β-annealing.
- The results suggest that architectural design—specifically, modeling spatial coherence—plays a crucial role in enabling disentangled representation learning, challenging the notion that powerful decoders inherently harm representation learning.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.