Skip to main content
QUICK REVIEW

[Paper Review] Generating Neural Networks with Neural Networks

Lior Deutsch|arXiv (Cornell University)|Jan 6, 2018
Cell Image Analysis TechniquesBiochemistry, Genetics and Molecular Biology44 references11 citations
TL;DR

This paper proposes a novel hypernetwork training framework that generates diverse, accurate neural network weights by optimizing a loss function balancing accuracy and diversity, explicitly accounting for weight symmetries. It demonstrates that the generated weights lie on a non-trivial, high-dimensional manifold and that ensembles of generated networks improve robustness to adversarial examples.

ABSTRACT

Hypernetworks are neural networks that generate weights for another neural network. We formulate the hypernetwork training objective as a compromise between accuracy and diversity, where the diversity takes into account trivial symmetry transformations of the target network. We explain how this simple formulation generalizes variational inference. We use multi-layered perceptrons to form the mapping from the low dimensional input random vector to the high dimensional weight space, and demonstrate how to reduce the number of parameters in this mapping by parameter sharing. We perform experiments and show that the generated weights are diverse and lie on a non-trivial manifold.

Motivation & Objective

  • To develop a hypernetwork training objective that generates diverse and accurate neural network weights without requiring a probabilistic interpretation of the target network.
  • To address the lack of a natural data distribution for neural networks by formulating a loss function based on desired properties: accuracy and meaningful diversity.
  • To improve upon variational inference-based hypernetworks by enabling explicit control over the accuracy-diversity trade-off and allowing flexible diversity loss terms.
  • To demonstrate that generated weights form a non-trivial, structured manifold in weight space, enabling high-quality ensembles.
  • To show that ensembles of generated networks enhance robustness against adversarial examples.

Proposed method

  • Formulate the hypernetwork loss as a weighted sum of accuracy and diversity terms, where diversity accounts for trivial symmetry transformations (e.g., weight permutations).
  • Use multi-layer perceptrons (MLPs) to map a low-dimensional random latent vector to the high-dimensional weight space of the target network.
  • Apply parameter sharing in the hypernetwork architecture to reduce the number of parameters in the weight generator, improving scalability.
  • Train the hypernetwork end-to-end using backpropagation, optimizing for both high validation accuracy and high diversity in generated weights.
  • Use a symmetry-invariant diversity metric to ensure that generated networks are considered different only if they differ beyond trivial transformations.
  • Construct ensembles of generated networks via majority voting and evaluate their performance on adversarial robustness and standard accuracy.

Experimental results

Research questions

  • RQ1Can a hypernetwork generate diverse, accurate neural network weights without relying on variational inference or probabilistic modeling?
  • RQ2How can diversity in generated weights be meaningfully measured when trivial symmetry transformations (e.g., weight permutations) do not represent true architectural differences?
  • RQ3To what extent do the generated weights form a non-trivial, low-dimensional manifold in the high-dimensional weight space?
  • RQ4Can ensembles of hypernetwork-generated networks outperform individual networks in robustness to adversarial examples?
  • RQ5How does the hypernetwork’s ability to generate statistically dependent weights across layers affect performance compared to independent layer generation?

Key findings

  • The hypernetwork successfully generates neural network weights that achieve high validation accuracy, with ensemble accuracy reaching 99.14% on the validation set.
  • The generated weights lie on a non-trivial, highly structured manifold in weight space, as evidenced by PCA scatter plots showing prominent one-dimensional and higher-dimensional structures.
  • The interpolated path (via latent space interpolation) maintains high accuracy, indicating smooth and meaningful weight space traversal, unlike the direct path which fails in some cases.
  • Ensembles of 100 hypernetwork-generated classifiers reduce the success rate of adversarial attacks compared to single classifiers, demonstrating improved robustness.
  • The hypernetwork outperforms the MNFG baseline in adversarial robustness, with a lower success rate for adversarial examples across all perturbation sizes.
  • The method generalizes variational inference as a special case, with VI emerging when specific choices are made for the diversity loss and hyperparameter tuning.

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.