Skip to main content
QUICK REVIEW

[Paper Review] Locally Masked Convolution for Autoregressive Models

Ajay N. Jain, Pieter Abbeel|ArXiv.org|Jun 22, 2020
Generative Adversarial Networks and Image SynthesisComputer Science45 references7 citations
TL;DR

This paper introduces Locally Masked Convolution (LMConv), a simple yet effective modification to 2D convolutions that enables a single deep neural network to support arbitrary autoregressive generation orders by applying location-specific masks to feature maps. By sharing weights across multiple orderings, LMConv achieves state-of-the-art performance in unconditional image generation (2.89 bits per dimension on CIFAR-10) and globally coherent image completion without task-specific training.

ABSTRACT

High-dimensional generative models have many applications including image compression, multimedia generation, anomaly detection and data completion. State-of-the-art estimators for natural images are autoregressive, decomposing the joint distribution over pixels into a product of conditionals parameterized by a deep neural network, e.g. a convolutional neural network such as the PixelCNN. However, PixelCNNs only model a single decomposition of the joint, and only a single generation order is efficient. For tasks such as image completion, these models are unable to use much of the observed context. To generate data in arbitrary orders, we introduce LMConv: a simple modification to the standard 2D convolution that allows arbitrary masks to be applied to the weights at each location in the image. Using LMConv, we learn an ensemble of distribution estimators that share parameters but differ in generation order, achieving improved performance on whole-image density estimation (2.89 bpd on unconditional CIFAR10), as well as globally coherent image completions. Our code is available at https://ajayjain.github.io/lmconv.

Motivation & Objective

  • To address the limitation of autoregressive models that are restricted to a single fixed generation order, such as raster scan, which hinders effective context utilization in tasks like image completion.
  • To enable a single convolutional neural network to support multiple autoregressive generation orders without separate parameterization or computational overhead.
  • To improve likelihood estimation and generation quality by enabling Bayesian model averaging across multiple orderings using shared weights.
  • To achieve globally coherent image completions by dynamically selecting optimal generation orders at inference time based on observed context.
  • To provide an efficient, scalable, and modular extension to existing convolutional architectures that preserves inductive biases while enabling flexible order control.

Proposed method

  • Introduce Locally Masked Convolution (LMConv), a layer that applies a learnable, spatially varying mask to the feature maps at each spatial location, enabling arbitrary autoregressive orderings.
  • Apply masking at the feature level rather than on inputs or weights, allowing the same network parameters to be used across different generation orders.
  • Implement LMConv efficiently via matrix multiplication by integrating masking into the im2col and col2im transformation of standard convolution operations.
  • Train the model end-to-end using a single forward pass that computes conditionals in parallel across multiple orderings, leveraging the masked feature maps to enforce causality.
  • Use the same set of network weights to estimate multiple graphical models corresponding to different autoregressive decompositions of the joint distribution.
  • Enable test-time inference with order selection based on observed context, such as choosing an order that maximizes visible context in image completion tasks.

Experimental results

Research questions

  • RQ1Can a single convolutional neural network support multiple autoregressive generation orders without separate parameterization?
  • RQ2How can arbitrary generation orders be efficiently implemented in convolutional architectures while maintaining computational efficiency?
  • RQ3Does supporting multiple orderings via shared weights improve likelihood estimation and generation quality in image modeling?
  • RQ4Can locally masked convolutions enable globally coherent image completions without explicit training on inpainting tasks?
  • RQ5To what extent does order-agnostic training via LMConv improve performance on standard benchmarks like CIFAR-10?

Key findings

  • The proposed Locally Masked Convolution (LMConv) enables a single network to support arbitrary autoregressive generation orders by applying location-specific masks to feature maps.
  • LMConv achieves a state-of-the-art test set likelihood of 2.89 bits per dimension on the unconditional CIFAR-10 dataset, outperforming PixelCNN++.
  • The model enables globally coherent image completions by dynamically selecting the optimal generation order at inference time based on the observed context.
  • The method supports parallel density estimation across multiple orderings with a single forward pass, maintaining computational efficiency through matrix multiplication-based implementation.
  • Image completion results show that the model can generate coherent outputs without any specific training on inpainting masks, by leveraging context-aware order selection.
  • The approach generalizes MADE to convolutional architectures while preserving the inductive bias of local receptive fields, enabling better long-range dependency modeling.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.