توسيع المحول المدفوع بالنبض مع تدريب تقريبي فعال لإطلاق النبضات Scaling Spike-Driven Transformer With Efficient Spike Firing Approximation Training

شارك:
المجلة: IEEE Transactions on Pattern Analysis and Machine Intelligence، المجلد: 47، العدد: 4
DOI: https://doi.org/10.1109/tpami.2025.3530246
PMID: https://pubmed.ncbi.nlm.nih.gov/40031207
تاريخ النشر: 2025-01-20
المؤلف: Man Yao وآخرون
الموضوع الرئيسي: الذاكرة المتقدمة والحوسبة العصبية

نظرة عامة

تتناول ورقة البحث التقدم في الشبكات العصبية النابضة (SNNs) كبديل منخفض الطاقة للشبكات العصبية الاصطناعية التقليدية (ANNs)، مع التركيز على تحديين حاسمين: الفجوة في الأداء بين SNNs و ANNs وتكاليف التدريب العالية المرتبطة بـ SNNs. يحدد المؤلفون العيوب الكامنة في الخلايا العصبية النابضة بسبب آليات إطلاقها الثنائية ويقدمون طريقة جديدة لتقريب إطلاق النبضات (SFA)، والتي تستخدم التدريب العددي والاستدلال المدفوع بالنبضات. تعمل هذه الطريقة على تحسين أنماط إطلاق النبضات، مما يؤدي إلى زيادة كفاءة التدريب، وتقليل استهلاك الطاقة، وتحسين الأداء، وزيادة قابلية التوسع على الشرائح العصبية.

تم التحقق من صحة طريقة SFA المقترحة من خلال تطوير بنية المحولات المدفوعة بالنبضات ومشفّر تلقائي مقنّع بالنبضات، مما يقلل بشكل جماعي من تدهور الأداء أثناء توسيع SNN. تظهر النتائج تحسينات كبيرة، حيث تحقق دقة من الطراز الأول على ImageNet-1k مع نماذج بأحجام مختلفة، لا سيما نموذج بـ 10 ملايين معلمة يتجاوز SNNs الحالية بنسبة 7.2%. بالإضافة إلى ذلك، تم تحسين وقت التدريب وكفاءة الطاقة للاستدلال بمقدار 4.5× و 3.9×، على التوالي. يمثل هذا العمل تقدماً كبيراً نحو تمكين SNNs من تحقيق أداء على مستوى ANN مع الاحتفاظ بمزاياها المنخفضة في استهلاك الطاقة، مما يساهم في تطور الحوسبة العصبية.

مقدمة

تناقش مقدمة ورقة البحث الاهتمام المتزايد في الشبكات العصبية النابضة (SNNs)، المستوحاة من الديناميات الزمانية والمكانية للدماغ وتستخدم نموذج حوسبة مدفوع بالنبضات. تعمل SNNs على نموذج “التكامل والإطلاق”، حيث تتواصل الخلايا العصبية من خلال نبضات ثنائية، مدمجة المعلومات المكانية والزمانية في إمكانات الغشاء. تسمح هذه الطريقة بكفاءة طاقة كبيرة، خاصة في سيناريوهات الحوسبة الطرفية، كما يتضح من انخفاض استهلاك الطاقة للشرائح العصبية مثل نظام Speck على الشريحة (SoC). تسلط الورقة الضوء على التحديات في توسيع SNNs، خاصة فيما يتعلق بأساليب التدريب مثل ANN2SNN والتدريب المباشر، التي تواجه صعوبات مع أخطاء التكميم ومتطلبات الموارد بسبب المحاكاة متعددة الخطوات الزمنية.

يقترح المؤلفون طريقة جديدة لتقريب إطلاق النبضات (SFA) تعالج قيود أساليب التدريب الحالية من خلال استخدام الأعداد الصحيحة كتنشيطات أثناء التدريب، مما يؤدي إلى أنماط إطلاق نبضات غير متزامنة ومستدامة. تعزز هذه الطريقة كفاءة التدريب، وأداء الطاقة، وقابلية التوسع لـ SNNs. بالإضافة إلى ذلك، تقدم الورقة المحول النابض الفعال (E-SpikeFormer)، الذي يدمج آليات مدفوعة بالنبضات في بنية المحولات، مما يحسن الدقة وكفاءة الطاقة. يتم التحقق من صحة الطرق المقترحة عبر مهام الرؤية المختلفة، محققة نتائج من الطراز الأول وتظهر إمكانيات SNNs كبديل منخفض الطاقة للشبكات العصبية الاصطناعية التقليدية (ANNs). توضح الورقة مساهماتها، بما في ذلك تحليل آليات الخلايا العصبية النابضة، وطريقة SFA، وتصميم بنية فعالة، واستراتيجيات لتوسيع SNNs.

طرق

في قسم الطرق، يقدم المؤلفون أولاً تحليلًا لنماذج الخلايا العصبية النابضة في القسم 3.1، مما يمهد الطريق لابتكاراتهم اللاحقة. ثم يقدمون طريقة تدريب جديدة، تُعرف باسم بنية E-SpikeFormer، في القسم 3.2. تم تصميم هذه البنية لتعزيز أداء الشبكات العصبية النابضة (SNNs). علاوة على ذلك، تفصل الأقسام 3.3 و 3.4 استراتيجية MIM (الذاكرة في الذاكرة)، التي تهدف إلى تسهيل توسيع SNNs، وبالتالي معالجة التحديات المتعلقة بتنفيذها وكفاءتها.

نقاش

في قسم النقاش من الورقة، يتناول المؤلفون التحديات المرتبطة بتدريب الشبكات العصبية النابضة (SNNs) مقارنة بالشبكات العصبية الاصطناعية التقليدية (ANNs)، خاصة بسبب الديناميات الزمانية والمكانية المعقدة الكامنة في SNNs. يبرزون استراتيجيات متنوعة لتعزيز كفاءة التدريب، مثل فصل ذاكرة التدريب عن الخطوات الزمنية، واستخدام تحليل أهمية التدرج، وتوظيف تعديلات ديناميكية على الخطوات الزمنية بناءً على صعوبة العينة. ومع ذلك، يطرحون سؤالاً حاسمًا بشأن ضرورة المحاكاة متعددة الخطوات الزمنية للمهام الثابتة، مما يشير إلى أن عملهم يقدم تحليلًا شاملاً وحلولًا محتملة لهذه القضية.

يستكشف المؤلفون أيضًا التقدم في تصميم بنية SNN، مؤكدين على الحاجة إلى قابلية التوسع في سياق التعلم العميق. يناقشون التطور من Spiking ResNet إلى بنى أكثر تعقيدًا مثل SEW-ResNet و MS-ResNet، التي تمتد بنجاح عمق SNNs. علاوة على ذلك، يقدمون E-SpikeFormer، نسخة محسّنة من Meta-SpikeFormer، التي تدمج عناصر تصميم فعالة لتعزيز الأداء مع تقليل عدد المعلمات واستهلاك الطاقة. تناقش الورقة أيضًا دمج تقنيات نمذجة الصور المقنّعة (MIM) في SNNs، مشيرة إلى أوجه التشابه مع استراتيجيات التعلم الذاتي في معالجة اللغة الطبيعية، وتوضح تنفيذ طريقة تقريب إطلاق النبضات (SFA) للتخفيف من أخطاء التكميم وتحسين الديناميات الزمنية في الخلايا العصبية النابضة. بشكل عام، يقدم المؤلفون نهجًا متعدد الجوانب لمعالجة قيود SNNs، مما يمهد الطريق لبنى الشبكات العصبية الأكثر فعالية وكفاءة.

Journal: IEEE Transactions on Pattern Analysis and Machine Intelligence, Volume: 47, Issue: 4
DOI: https://doi.org/10.1109/tpami.2025.3530246
PMID: https://pubmed.ncbi.nlm.nih.gov/40031207
Publication Date: 2025-01-20
Author(s): Man Yao et al.
Primary Topic: Advanced Memory and Neural Computing

Overview

The research paper discusses advancements in Spiking Neural Networks (SNNs) as a low-power alternative to traditional Artificial Neural Networks (ANNs), focusing on two critical challenges: the performance gap between SNNs and ANNs and the high training costs associated with SNNs. The authors identify inherent flaws in spiking neurons due to their binary firing mechanisms and introduce a novel Spike Firing Approximation (SFA) method, which employs integer training and spike-driven inference. This approach optimizes the spike firing patterns, resulting in enhanced training efficiency, reduced power consumption, improved performance, and better scalability on neuromorphic chips.

The proposed SFA method is validated through the development of a spike-driven Transformer architecture and a spike-masked autoencoder, which collectively mitigate performance degradation during SNN scaling. The results demonstrate significant improvements, achieving state-of-the-art top-1 accuracy on ImageNet-1k with models of varying sizes, notably a 10M parameter model that surpasses existing SNNs by 7.2%. Additionally, the training time and inference energy efficiency are enhanced by factors of 4.5× and 3.9×, respectively. This work marks a substantial advancement towards enabling SNNs to achieve ANN-level performance while retaining their low-power advantages, thus contributing to the evolution of neuromorphic computing.

Introduction

The introduction of the research paper discusses the growing interest in Spiking Neural Networks (SNNs), which are inspired by the brain’s spatio-temporal dynamics and utilize a spike-driven computing paradigm. SNNs operate on an “integrate-and-fire” model, where neurons communicate through binary spikes, integrating spatial and temporal information into membrane potentials. This approach allows for significant power efficiency, particularly in edge computing scenarios, as demonstrated by the low power consumption of neuromorphic chips like the Speck System on Chip (SoC). The paper highlights the challenges in scaling SNNs, particularly regarding training methods such as ANN2SNN and direct training, which struggle with quantization errors and resource demands due to multi-timestep simulations.

The authors propose a novel Spike Firing Approximation (SFA) method that addresses the limitations of existing training approaches by using integers as activations during training, leading to asynchronous and continuous spike firing patterns. This method enhances training efficiency, power performance, and scalability of SNNs. Additionally, the paper introduces the Efficient Spiking Transformer (E-SpikeFormer), which integrates spike-driven mechanisms into Transformer architecture, improving accuracy and energy efficiency. The proposed methods are validated across various vision tasks, achieving state-of-the-art results and demonstrating the potential of SNNs as a low-power alternative to traditional Artificial Neural Networks (ANNs). The paper outlines its contributions, including an analysis of spiking neuron mechanisms, the SFA method, efficient architecture design, and strategies for scaling SNNs.

Methods

In the Methods section, the authors first present an analysis of spiking neuron models in Section 3.1, laying the groundwork for their subsequent innovations. They then introduce a novel training method, referred to as the E-SpikeFormer architecture, in Section 3.2. This architecture is designed to enhance the performance of spiking neural networks (SNNs). Furthermore, Sections 3.3 and 3.4 detail the MIM (Memory-In-Memory) strategy, which aims to facilitate the scaling of SNNs, thereby addressing challenges related to their implementation and efficiency.

Discussion

In the discussion section of the paper, the authors address the challenges associated with training Spiking Neural Networks (SNNs) compared to traditional Artificial Neural Networks (ANNs), particularly due to the complex spatio-temporal dynamics inherent in SNNs. They highlight various strategies to enhance training efficiency, such as decoupling training memory from timesteps, utilizing gradient importance analysis, and employing dynamic timestep adjustments based on sample difficulty. However, they raise a critical question regarding the necessity of multi-timestep simulations for static tasks, suggesting that their work provides a comprehensive analysis and potential solutions to this issue.

The authors also explore advancements in SNN architecture design, emphasizing the need for scalability in the context of deep learning. They discuss the evolution from Spiking ResNet to more sophisticated architectures like SEW-ResNet and MS-ResNet, which successfully extend the depth of SNNs. Furthermore, they introduce the E-SpikeFormer, an optimized version of the Meta-SpikeFormer, which incorporates efficient design elements to enhance performance while reducing parameter count and energy consumption. The paper also discusses the integration of Masked Image Modeling (MIM) techniques into SNNs, drawing parallels with self-supervised learning strategies in natural language processing, and outlines the implementation of a Spike Firing Approximation (SFA) method to mitigate quantization errors and improve temporal dynamics in spiking neurons. Overall, the authors present a multifaceted approach to addressing the limitations of SNNs, paving the way for more effective and efficient neural network architectures.

شارك: