Randomness in Deconvolutional Networks for Visual Representation

Kun He, Jingbo Wang, Haochuan Li, Yao Shu, Mengxiao Zhang, Man Zhu, Liwei Wang, John E. Hopcroft · DOI

Abstract

Toward a deeper understanding on the inner work of deep neural networks, we investigate CNN (convolutional neural network) using DCN (deconvolutional network) and randomization technique, and gain new insights for the intrinsic property of this network architecture. For the random representations of an untrained CNN, we train the corresponding DCN to reconstruct the input images. Compared with the image inversion on pre-trained CNN, our training converges faster and the yielding network exhibits higher quality for image reconstruction. It indicates there is rich information encoded in the random features; the pre-trained CNN may discard information irrelevant for classification and encode relevant features in a way favorable for classification but harder for reconstruction. We further explore the property of the overall random CNN-DCN architecture. Surprisingly, images can be inverted with satisfactory quality. Extensive empirical evidence as well as theoretical analysis are provided.

Introduction

Despite the massive success of Convolutional Neural Networks (CNNs), a fundamental question remains: how much of their performance is due to learned weights versus the intrinsic "inductive bias" of the convolutional architecture? This paper investigates this by examining image inversion—the process of reconstructing an input image from its intermediate feature activations. While typically performed on pre-trained networks, we explore what happens when the CNN weights are entirely random. Our findings reveal a counter-intuitive truth: untrained, random CNNs are often better at preserving image details for reconstruction than networks optimized for classification.

The CNN-DCN Framework

To probe the information content of CNN features, we employ a "CNN-DCN" architecture. A standard CNN (e.g., VGG16 or AlexNet) serves as the encoder, while a corresponding Deconvolutional Network (DCN) acts as the decoder, mirroring the CNN's layers in reverse to reconstruct the original pixels.

The CNN-DCN architecture used for image inversion, showing the symmetrical relationship between convolutional and deconvolutional layers.

We analyze three primary configurations:

  1. Random-CNN-trained-DCN: CNN weights are frozen at random initialization; only the DCN is trained to invert the random features.
  2. Pre-trained-CNN-trained-DCN: The CNN is pre-trained on ImageNet for classification before training the DCN.
  3. Random-CNN-random-DCN (rrVGG): Both networks remain random and frozen, testing the raw architectural prior without any optimization.

Key Insights: Classification as a Lossy Filter

A major discovery is that training for classification acts as a "lossy" process. DCNs trained on random CNN features converge significantly faster and achieve higher reconstruction quality than those paired with pre-trained features. This suggests that the optimization process for classification forces the network to discard "nuisance" information—such as fine textures or specific lighting—to achieve class invariance. In contrast, random features act as a more complete, albeit unorganized, basis for the input signal.

Furthermore, we observe a "Manifold Effect": training for classification moves features of different categories into distinct manifolds. While this separation is ideal for a linear classifier, the resulting warping makes it significantly harder for a DCN to "path-find" its way back to the original pixel space compared to the more uniform distribution of random features.

Results: Architectural Priors and Reconstruction Quality

Even without training (the rrVGG scenario), the network can reconstruct basic geometric positions and contours. This implies that the convolutional structure itself—characterized by local connectivity and pooling—provides a powerful structural prior for visual processing.

Qualitative reconstruction results across different layers (Conv1 to Conv5). Random representations in deeper layers often retain more structural detail than their pre-trained counterparts.

Our empirical results show that in deeper layers (e.g., Conv5), pre-trained networks often produce vague, "class-average" reconstructions. Random networks of the same depth retain sharper structural information, though they may introduce more noise. We also found that "width" (the number of channels) is more critical for reconstruction in random networks than "depth," as more channels capture a more comprehensive set of random projections of the input. Mathematically, we show that as the number of channels in a random CNN goes to infinity, the output representation converges to a fixed form highly correlated with the input.

Conclusion and Future Work

This research highlights that the convolutional architecture is a massive head start for visual representation, independent of learned weights. While random networks preserve more raw information, they produce noisier reconstructions compared to the smoother, more semantically coherent outputs of trained networks. These insights could lead to more efficient architecture search methods, allowing researchers to evaluate network designs using random weights before committing to expensive training cycles. Future work will explore how these findings translate to tasks like segmentation or detection, where spatial precision is paramount.

Summary updated

BibTeX
@misc{he2017randomness,
  author = {Kun He and Jingbo Wang and Haochuan Li and Yao Shu and Mengxiao Zhang and Man Zhu and Liwei Wang and John E. Hopcroft},
  title = {{Randomness in Deconvolutional Networks for Visual Representation}},
  year = {2017},
  eprint = {1704.00330},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1704.00330},
}
Figure