Simultaneous Weight and Architecture Optimization for Neural Networks

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Huang, Zitong, Montazerin, Mansooreh, Srivastava, Ajitesh
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866912068285759488
author Huang, Zitong
Montazerin, Mansooreh
Srivastava, Ajitesh
author_facet Huang, Zitong
Montazerin, Mansooreh
Srivastava, Ajitesh
contents Neural networks are trained by choosing an architecture and training the parameters. The choice of architecture is often by trial and error or with Neural Architecture Search (NAS) methods. While NAS provides some automation, it often relies on discrete steps that optimize the architecture and then train the parameters. We introduce a novel neural network training framework that fundamentally transforms the process by learning architecture and parameters simultaneously with gradient descent. With the appropriate setting of the loss function, it can discover sparse and compact neural networks for given datasets. Central to our approach is a multi-scale encoder-decoder, in which the encoder embeds pairs of neural networks with similar functionalities close to each other (irrespective of their architectures and weights). To train a neural network with a given dataset, we randomly sample a neural network embedding in the embedding space and then perform gradient descent using our custom loss function, which incorporates a sparsity penalty to encourage compactness. The decoder generates a neural network corresponding to the embedding. Experiments demonstrate that our framework can discover sparse and compact neural networks maintaining a high performance.
format Preprint
id arxiv_https___arxiv_org_abs_2410_08339
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Simultaneous Weight and Architecture Optimization for Neural Networks
Huang, Zitong
Montazerin, Mansooreh
Srivastava, Ajitesh
Machine Learning
Neural networks are trained by choosing an architecture and training the parameters. The choice of architecture is often by trial and error or with Neural Architecture Search (NAS) methods. While NAS provides some automation, it often relies on discrete steps that optimize the architecture and then train the parameters. We introduce a novel neural network training framework that fundamentally transforms the process by learning architecture and parameters simultaneously with gradient descent. With the appropriate setting of the loss function, it can discover sparse and compact neural networks for given datasets. Central to our approach is a multi-scale encoder-decoder, in which the encoder embeds pairs of neural networks with similar functionalities close to each other (irrespective of their architectures and weights). To train a neural network with a given dataset, we randomly sample a neural network embedding in the embedding space and then perform gradient descent using our custom loss function, which incorporates a sparsity penalty to encourage compactness. The decoder generates a neural network corresponding to the embedding. Experiments demonstrate that our framework can discover sparse and compact neural networks maintaining a high performance.
title Simultaneous Weight and Architecture Optimization for Neural Networks
topic Machine Learning
url https://arxiv.org/abs/2410.08339