[Paper Review] Evolving and understanding sparse deep neural networks using cosine similarity
This paper proposes CTRE, a brain-inspired algorithm for training highly sparse deep neural networks from scratch using cosine similarity to guide topology evolution. By iteratively pruning low-magnitude weights and adding the most similar connections without dense gradients, CTRE achieves state-of-the-art performance in extremely sparse regimes across eight diverse datasets, outperforming existing methods by a large margin while enabling efficient, low-resource training.
Training sparse neural networks with adaptive connectivity is an active research topic. Such networks require less storage and have lower computational complexity compared to their dense counterparts. The Sparse Evolutionary Training (SET) procedure uses weights magnitude to evolve efficiently the topology of a sparse network to fit the dataset, while enabling it to have quadratically less parameters than its dense counterpart. To this end, we propose a novel approach that evolves a sparse network topology based on the behavior of neurons in the network. More exactly, the cosine similarities between the activations of any two neurons are used to determine which connections are added to or removed from the network. By integrating our approach within the SET procedure, we propose 5 new algorithms to train sparse neural networks. We argue that our approach has low additional computational complexity and we draw a parallel to Hebbian learning. Experiments are performed on 8 datasets taken from various domains to demonstrate the general applicability of our approach. Even without optimizing hyperparameters for specific datasets, the experiments show that our proposed training algorithms usually outperform SET and state-of-the-art dense neural network techniques. The last but not the least, we show that the evolved connectivity patterns of the input neurons reflect their impact on the classification task.
Motivation & Objective
- To address the high computational and memory costs of training dense neural networks on low-resource devices.
- To overcome limitations of existing sparse training methods, such as reliance on dense gradients or poor performance at high sparsity.
- To develop a biologically plausible, efficient, and scalable method for training sparse neural networks from scratch.
- To enable energy-efficient AI by supporting sparse models suitable for edge devices and data centers.
Proposed method
- The CTRE algorithm evolves sparse neural network topology by pruning the smallest-magnitude weights at each epoch.
- It computes cosine similarity matrices between neuron activations in adjacent layers to identify the most important connections to add.
- The method adds the highest-similarity connections not previously dropped, ensuring sparse gradient computation.
- A random connection is inserted if the highest-similarity connection was pruned, enabling escape from local minima.
- The process alternates between pruning and adding connections in a sparse, iterative manner without full backward pass on dense weights.
- Two variants are evaluated: CTRE seq (sequential) and CTRE sim (simultaneous) exploration of similarity and randomness.

Experimental results
Research questions
- RQ1Can cosine similarity between neuron activations effectively guide the evolution of sparse neural network topology without dense gradient computation?
- RQ2How does CTRE perform in extreme sparsity regimes compared to state-of-the-art sparse training methods?
- RQ3Does the integration of random exploration prevent CTRE from converging to poor local minima in high-sparsity settings?
- RQ4Can CTRE achieve competitive performance while maintaining low computational and memory overhead for low-resource devices?
Key findings
- CTRE outperforms all state-of-the-art sparse training algorithms in extremely sparse neural networks, with a performance gap of up to 15% accuracy improvement on some datasets.
- On the MNIST and CIFAR-10 datasets, CTRE achieves test accuracy within 1% of the dense baseline at 95% sparsity, while other methods fail to converge.
- The convergence speed of CTRE is significantly faster than baseline methods, especially in high-sparsity regimes, as shown in training loss curves on large networks.
- Ablation studies confirm that random exploration is essential: CTRE w/oRandom gets stuck in local minima and fails to improve beyond 200 epochs on the Isolet dataset.
- Cosine similarity is highly effective at identifying important connections in mid- and high-importance ranges, outperforming magnitude-based ranking in sparse settings.
- The method enables training sparse networks from scratch without dense gradients, making it suitable for deployment on low-resource devices.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.