Saved in:
Bibliographic Details
Main Author: Berngardt, Oleg I.
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2405.14147
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909209231097856
author Berngardt, Oleg I.
author_facet Berngardt, Oleg I.
contents This paper presents an algorithm for searching for the minimum number of neurons in fully connected layers of an arbitrary network solving given problem, which does not require multiple training of the network with different number of neurons. The algorithm is based at training the initial wide network using the cross-validation method over at least two folds. Then by using truncated singular value decomposition autoencoder inserted after the studied layer of trained network we search the minimum number of neurons in inference only mode of the network. It is shown that the minimum number of neurons in a fully connected layer could be interpreted not as network hyperparameter associated with the other hyperparameters of the network, but as internal (latent) property of the solution, determined by the network architecture, the training dataset, layer position, and the quality metric used. So the minimum number of neurons can be estimated for each hidden fully connected layer independently. The proposed algorithm is the first approximation for estimating the minimum number of neurons in the layer, since, on the one hand, the algorithm does not guarantee that a neural network with the found number of neurons can be trained to the required quality, and on the other hand, it searches for the minimum number of neurons in a limited class of possible solutions. The solution was tested on several datasets in classification and regression problems.
format Preprint
id arxiv_https___arxiv_org_abs_2405_14147
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Minimum number of neurons in fully connected layers of a given neural network (the first approximation)
Berngardt, Oleg I.
Machine Learning
Artificial Intelligence
Computer Vision and Pattern Recognition
68T07
I.2.6
This paper presents an algorithm for searching for the minimum number of neurons in fully connected layers of an arbitrary network solving given problem, which does not require multiple training of the network with different number of neurons. The algorithm is based at training the initial wide network using the cross-validation method over at least two folds. Then by using truncated singular value decomposition autoencoder inserted after the studied layer of trained network we search the minimum number of neurons in inference only mode of the network. It is shown that the minimum number of neurons in a fully connected layer could be interpreted not as network hyperparameter associated with the other hyperparameters of the network, but as internal (latent) property of the solution, determined by the network architecture, the training dataset, layer position, and the quality metric used. So the minimum number of neurons can be estimated for each hidden fully connected layer independently. The proposed algorithm is the first approximation for estimating the minimum number of neurons in the layer, since, on the one hand, the algorithm does not guarantee that a neural network with the found number of neurons can be trained to the required quality, and on the other hand, it searches for the minimum number of neurons in a limited class of possible solutions. The solution was tested on several datasets in classification and regression problems.
title Minimum number of neurons in fully connected layers of a given neural network (the first approximation)
topic Machine Learning
Artificial Intelligence
Computer Vision and Pattern Recognition
68T07
I.2.6
url https://arxiv.org/abs/2405.14147