Skip to content

ffOj/ACO-parameter-pruning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ant Colony Optimization for Neural Network parameter pruning

How-to

In order to perform the weight pruning, please use the main.py file.

  1. Set the path to the data for the variable DATA_PATH.
  2. Specify your network, or use the standard one we provide and do our analysis with.
  3. (Adapt the ACO architecture if you use a different network from ours)
  4. Choose the parameters for rho, min_acc, n_iter and n_ants
  5. Run the algorithm

Dataset and Network

For our analysis, we use the Fashion-MNIST dataset with a 784x16x10 simple NN with ReLU activation after the input layer. The image is normalized to values between 0 and 1.

Results

To highlight the performance, we can observe that using 1000 ants, we can remove over 95% of the weights, while keeping accuracies close to 60% using min_acc = 0.6, and rho = 0.1. This is much better than randomly removing parameters as the plot shows. image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors