"매 neurons fire discrete spikes — 매 event-driven, time-coded compute". SNN 은 매 biological neuron 의 spike train (LIF, Izhikevich) 을 모방한 third-generation neural network — 매 event-driven sparsity 의 ultra-low-power potential. 매 2026 의 Intel Loihi 2, IBM NorthPole, BrainScaleS-2 의 hardware 가 mature 단계.
# train ANN with ReLU normally, then replace ReLU with IF neurons# scale weights so max activation == firing thresholddefconvert(ann_model,calibration_loader):forlayerinann_model.modules():ifisinstance(layer,nn.ReLU):replace_with_IF(layer,threshold=compute_max_act(layer,calibration_loader))
Event camera + SNN (Prophesee)
frommetavision_core.event_ioimportEventDatReaderevents=EventDatReader("recording.dat")# events: (x, y, polarity, timestamp_us)spike_tensor=events_to_spike_tensor(events,H=720,W=1280,T=25,dt=10000)output=snn_model(spike_tensor)
언제: literature summarization, surrogate gradient choice 추천, snnTorch boilerplate 생성.
언제 X: hardware-specific tuning (Loihi 2 의 chip-level 의 quirk) — 매 vendor docs / community 의 expert.
❌ 안티패턴
GPU-only mindset: SNN 의 GPU 의 simulation 은 ANN 보다 slow. 매 power 이득 은 neuromorphic HW 에서.
Naive BPTT: 매 spike 의 non-differentiability 무시. Surrogate gradient mandatory.
Too few timesteps: 매 T=5 의 rate coding 의 information 부족. T=25~100 typical.