The invention relates to the technical field of computers, in particular to a neural architecture search-based
pruning method, which comprises the following steps of: firstly, acquiring an initial weight matrix and an initial
pheromone concentration matrix of a
network model; then performing pseudo
pruning on the initial weight matrix, and updating a
pheromone concentration matrix of the
network model to obtain weights and
pheromone concentrations of all neurons in the
network model; grouping all neurons to obtain a pheromone concentration set of each
neuron, and determining an importance coefficient of each
neuron according to the pheromone concentration set of each
neuron; and finally, sorting the importance coefficients of all neurons, and starting to remove the neurons according to a sorting result so as to complete network
pruning. According to the method, a
pruning algorithm is optimized based on a neural architecture search method, so that the
pruning algorithm can adapt to a
complex network structure; and then parameter importance is reasonably judged through pheromone concentration, and it is ensured that the pruned model still keeps high precision.