用脑科学启发的稀疏结构让神经网络在极低连接度下媲美全连接模型
Brain network science modelling of sparse neural networks enables Transformers and LLMs to perform as fully connected
- 设计类脑双区域感受野初始化稀疏网络,提升训练稳定性
- 1%连接度下图像分类性能超越全连接MLP,压缩至30%节点数
- 5%连接度时在机器翻译任务中优于全连接Transformer,适合资源受限场景
动态稀疏训练(DST)可降低人工神经网络计算开销,但在高稀疏度下难以维持峰值性能。基于脑科学的康尼斯特拉-赫布训练(CHT)通过无梯度、拓扑驱动的连接再生,在多种任务中实现低于1%连接度的优越表现。但其存在两大缺陷:(i) 时间复杂度为 $O(Nd^3)$,限制于超稀疏场景;(ii) 早期训练阶段依赖不可靠的连接预测分数。本文提出首个类脑网络模型——双区域感受野(BRF),用于稀疏神经网络的初始连接构建。进一步引入基于矩阵的GPU友好型近似方法,将链接预测复杂度降至 $O(N^3)$。提出CHT软规则(CHTs),采用灵活采样策略平衡拓扑探索与利用。同时结合Sigmoid渐进密度衰减机制(CHTss)。实验表明,BRF优于以往网络科学模型。使用1%连接度时,CHTs在图像分类任务中超越全连接MLP,部分网络压缩至不足30%节点数;5%连接度下,CHTss在两个基于Transformer的机器翻译任务中表现更优;30%连接度时,两者均优于其他DST方法在语言建模任务中的表现。
原文摘要 · Abstract (English)
Dynamic sparse training (DST) can reduce the computational demands in ANNs, but faces difficulties in keeping peak performance at high sparsity levels. The Cannistraci-Hebb training (CHT) is a brain-inspired method for growing connectivity in DST. CHT leverages a gradient-free, topology-driven link regrowth, which has shown ultra-sparse (less than 1% connectivity) advantage across various tasks compared to fully connected networks. Yet, CHT suffers two main drawbacks: (i) its time complexity is $O(Nd^3)$ - N node network size, d node degree - restricting it to ultra-sparse regimes. (ii) it selects top link prediction scores, which is inappropriate for the early training epochs, when the network presents unreliable connections. Here, we design the first brain-inspired network model - termed bipartite receptive field (BRF) - to initialize the connectivity of sparse artificial neural networks. We further introduce a GPU-friendly matrix-based approximation of CH link prediction, reducing complexity to $O(N^3)$. We introduce the Cannistraci-Hebb training soft rule (CHTs), which adopts a flexible strategy for sampling connections in both link removal and regrowth, balancing the exploration and exploitation of network topology. Additionally, we integrate CHTs with a sigmoid gradual density decay (CHTss). Empirical results show that BRF offers performance advantages over previous network science models. Using 1% of connections, CHTs outperforms fully connected networks in MLP architectures on image classification tasks, compressing some networks to less than 30% of the nodes. Using 5% of the connections, CHTss outperforms fully connected networks in two Transformer-based machine translation tasks. Finally, at 30% connectivity, both CHTs and CHTss outperform other DST methods in language modeling task.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。