Decoding Projections From Frozen Random Weights in Autoencoders: What Information Do They Encode?

Nancy Thomas, Keshav Ramani, Annita Vapsi, Daniel BorrajoUniReps @ NeurIPS 2025

TL;DR

This paper investigates the representational power of neural networks with frozen random weights in autoencoders. Surprisingly, these networks can capture significant structural information from input images, performing comparably to fully trained models in some aspects and offering a promising avenue for more efficient and interpretable AI.

What Problem Does This Paper Address?

The vast majority of research in deep learning focuses on training neural networks using gradient descent to optimize their weights for specific tasks. However, the inherent representational capabilities of neural network architectures before any training, i.e., with fixed random weights, remain largely unexplored. This is a significant gap, as understanding these "untrained" representations could lead to more explainable models, potentially reduce the computational cost of training, and even inform more sustainable AI practices by minimizing the need for extensive gradient updates. The authors aim to empirically investigate what information is encoded by these frozen random weights.

Methods

The core of this research utilizes an autoencoder architecture. An autoencoder consists of an encoder that compresses input data into a lower-dimensional latent representation, and a decoder that reconstructs the original data from this representation.

The key innovation here is the experimental setup:

  • Fixed Encoder Weights: The encoder's weights are initialized randomly using one of 28 different initialization methods (e.g., Gaussian, Uniform, Xavier, Kaiming, Orthogonal, Hadamard) and then frozen, meaning they are not updated during training.
  • Learnable Decoder Weights: The decoder's weights, however, are trained using gradient descent to reconstruct the input image from the latent representation generated by the fixed encoder.
  • Comparison with "Learnable" Scenario: For a baseline, the authors also train a standard autoencoder where both encoder and decoder weights are updated (referred to as "Learnable").

The performance is evaluated using three metrics:

  • Reconstruction Loss: Standard measure of how well the output matches the input.
  • Structural Similarity Index (SSIM): Measures perceptual similarity between images.
  • Fréchet Inception Distance (FID): Assesses the similarity of generated images to real images in terms of feature distributions.

Datasets

The study uses three widely adopted computer vision datasets:

  • CIFAR-10: 60,000 color images (32x32 pixels) across 10 classes.
  • CIFAR-100: 60,000 color images (32x32 pixels) across 100 classes.
  • Fashion-MNIST: 70,000 grayscale images (28x28 pixels) across 10 classes.

Key Insights and Ideas

  • Random Weights Capture Structure: The most striking finding is that even with completely random and frozen encoder weights, the autoencoder can reconstruct images that capture broad structural themes and essential shapes of the input. This suggests that the network architecture itself, combined with random initializations, imbues a degree of representational power.
  • Linear Relationship Between Fixed and Learnable: A significant observation is the strong linear relationship between the performance metrics (reconstruction loss, SSIM, FID) of the "fixed" encoder scenario and the "learnable" encoder scenario. This implies that the relative performance of different random initializations is consistent, regardless of whether the encoder is trained or not.
  • Baseline Potential: The ability of fixed random weights to capture meaningful representations makes them excellent candidates for baseline models. This could accelerate research by providing a quick way to evaluate architectural choices or compare against a non-trivial, untrained model.
  • Efficiency Gains: Training autoencoders with fixed random encoders is significantly faster than training fully learnable autoencoders, offering a practical advantage for experimentation and deployment.

Key Results

  • Qualitative Similarity: Figures in the paper (e.g., Figure 4, 5, 6) visually demonstrate that reconstructions from fixed random weight encoders are perceptibly comparable to those from learnable encoders, especially for well-performing initializations. Broad themes, colors, and shapes are often well-preserved.
  • Quantitative Performance: While learnable weights generally achieve lower reconstruction loss and higher SSIM, the performance gap with fixed weights is often minimal, particularly at lower latent dimensions. For FID, the fixed scenario sometimes even outperforms the learnable scenario on multi-channel images, which is a surprising result given the lack of task-specific training for the encoder.
  • Initialization Matters: Different weight initialization methods show varying degrees of success in capturing information. For instance, Uniform and Gaussian initializations, along with specific configurations of Xavier and Kaiming, tend to perform better.
  • Latent Dimension Impact: Performance generally improves with increasing latent dimensions up to a certain point (around 128-256), after which it may plateau or slightly degrade.

Limitations and Future Work

  • Limited Datasets: The study was conducted on only three datasets. The authors acknowledge that these might not fully capture the diversity of real-world image variations.
  • Fixed Architecture: The network architecture (depth and width) remained unchanged throughout the experiments.
  • Limited Epochs: Training was capped at 500 epochs, with most models converging earlier.

Future work could explore:

  • Different activation functions.
  • Generalizing findings to other network architectures (e.g., Transformers, GANs).
  • Investigating different initialization functions.
  • Deepening the theoretical understanding of why random weights encode specific information.
  • Exploring the impact of learnable biases with fixed weights.

Summary updated

BibTeX
@inproceedings{thomas2025decoding,
  author = {Nancy Thomas and Keshav Ramani and Annita Vapsi and Daniel Borrajo},
  title = {{Decoding Projections From Frozen Random Weights in Autoencoders: What Information Do They Encode?}},
  booktitle = {UniReps @ NeurIPS},
  year = {2025},
  url = {https://openreview.net/forum?id=LeYf3rdpLr},
}
Figure