Exercises — Neuromorphic computing
6.5.14 · D4· Hardware › Advanced & Emerging Architectures › Neuromorphic computing
Symbols se pehle, ek one-line dictionary taaki kuch bhi bina samjhe use na ho:
- = membrane voltage (membrane capacitor par ikatta hua charge, volts mein).
- = threshold jis tak voltage ko spike emit karne ke liye pahunchna chahiye.
- = leak resistance aur membrane capacitance (dekho RC circuits).
- = time constant: kitne seconds mein membrane "mostly" charge ho jaati hai.
- = neuron mein flow hone wala input current.
- = pre-to-post spike-time gap.
Level 1 — Recognition
L1·Q1
Har neuromorphic property ko us trick se match karo jo wo brain se copy karta hai: (a) synapse weight store bhi karta hai aur multiply bhi, (b) neurons fire hone tak chup rehte hain, (c) neurons ek saath run karte hain. Har trick ka naam batao.
Recall Solution
(a) = co-located memory + compute (yeh In-memory computing hai, von Neumann split ka ulta). (b) = event-driven / sparse activity. (c) = massive parallelism. Yahi teen wajah hain ki brain ~20 W par run karta hai.
L1·Q2
Niche di gayi table mein neuromorphic column bharo: data kaise encoded hota hai, aur activity kaise trigger hoti hai?
Recall Solution
Data spikes ki timing / rate mein encode hota hai (ek temporal code), na ki register mein ek dense float ki tarah. Activity event-driven hoti hai: ek unit tabhi kaam karta hai jab spike aati hai — idle units par koi clock tick spend nahi hota. Dekho Spiking Neural Networks (SNN).
L1·Q3
Parent note jo neuron model derive karta hai uska naam batao, aur uske do ingredients list karo: continuous part aur discrete part.
Recall Solution
Leaky Integrate-and-Fire (LIF) neuron.
- Continuous part: RC differential equation (integrate + leak).
- Discrete part: fire-and-reset rule "agar , spike emit karo aur set karo". Sirf continuous part kabhi spike nahi kar sakta; threshold hi ise spiking banata hai.
Level 2 — Application
L2·Q1
Ek LIF neuron hai jisme , . nikalo.
Recall Solution
Kya/Kyun: batata hai ki membrane kitni fast charge hoti hai — bina iske aur kuch compute nahi ho sakta.
L2·Q2
Wahi neuron, constant input , threshold . Pehle, decide karo ki yeh fire karega ya nahi.
Recall Solution
Pehle check kyun karein? Voltage sirf apni steady value tak hi badh sakti hai; agar yeh ceiling threshold se neeche hai, toh yeh kabhi fire nahi kar sakta. Kyunki → yeh fire karega. ✅
L2·Q3
L2·Q2 aage badhao: pehli spike tak ka time aur firing rate nikalo.
Recall Solution
Log formula kyun? Hum charging curve mein set karte hain aur ke liye solve karte hain. , toh .
Charging curve dekho — neuron dashed ceiling se kaafi pehle red threshold tak pahunch jaata hai:

Level 3 — Analysis
L3·Q1
L2 wala neuron lo (, , ) lekin input kar do. Kya yeh fire karega? Agar nahi, toh yeh kis steady voltage par settle karega, aur iska silence power ke liye kya matlab rakhta hai?
Recall Solution
. Log argument negative hai → kabhi fire nahi karega. Yeh ki taraf charge hoga aur hamesha wahan ruka rahega (leak exactly wahan input ko balance karta hai). Matlab: weak input par neuron silent rehta hai, isliye dynamic energy ~zero consume karta hai. Yahi sparsity hai jo neuromorphic chips ko unka energy edge deti hai.
L3·Q2
Ek firing neuron ke liye firing rate input ke saath badhti hai. ki shape use karte hue explain karo ki saturate kyun hoti hai (utni tezi se badhna band ho jaati hai) jab .
Recall Solution
Jab , , toh aur . Phir … lekin kaise approach karta hai yeh matter karta hai: bade ke liye, use karke jahan . Toh pehle mein roughly linearly badhti hai, lekin ek real neuron ek fixed refractory period add karta hai: . Jab ho jaata hai, rate ceiling par flat ho jaati hai. Neeche wala curve knee dikhata hai.

L3·Q3
STDP with , , , . compute karo: (a) pre at , post at ; (b) pre at , post at . Har sign ko interpret karo.
Recall Solution
Pehle kyun? Iska sign branch choose karta hai. (a) → potentiation: Pre pehle aaya post se → usne spike cause karne mein help ki → strengthen. (b) → depression: Pre baad mein aaya post ke → spike cause nahi kar sakta tha → weaken.
Level 4 — Synthesis
L4·Q1
Ek vision chip ko ek neuron exactly par fire karna hai jab constant input on hota hai. Aapko aur diya gaya hai. Input ko kaunsi steady value produce karni chahiye? (Time-to-spike formula ko invert karo.)
Recall Solution
Kya/Kyun: hum jaante hain aur chahiye, toh invert karo. Maan lo . Phir , toh Check: ✓.
L4·Q2
Energy reasoning ko sparsity ke saath combine karo. Ek neuromorphic layer mein neurons ke liye run kar rahe hain. Maan lo har spike ki cost hai, aur average mein sirf 2% neurons active hain, har ek par fire kar raha hai. Total spike energy estimate karo. Ek hypothetical dense chip se compare karo jo har par sab neurons ko each par "evaluate" karta hai.
Recall Solution
Neuromorphic (sparse): active neurons . Har ek mein spikes fire karta hai, toh total spikes . Dense: neurons evaluations/s ops. Ratio: . Event-driven sparsity yahan ~3.7 orders of magnitude faayda deta hai.
Level 5 — Mastery
L5·Q1
Design + predict. Aapke paas ek RC-based LIF neuron hai aur aap constant input ke under ~ firing rate chahte ho, aur use karke. (aur isse ) choose karo. Phir, STDP with , use karke, ek pre-post gap ke liye potentiation predict karo jo ek firing period ke equal ho.
Recall Solution
Step 1 — target period. . Step 2 — ceiling check. ✓, toh firing possible hai. Step 3 — solve karo se: Step 4 — nikalo se: Step 5 — STDP with (pre before post): Toh synapse har aisi pairing mein ~ se strengthen hota hai. Kyunki exactly hai, update exactly hai — ek clean sanity check.
L5·Q2
Sab kuch ek saath jodke explain karo, kyun is LIF+STDP system ko koi bus aur koi global error signal nahi chahiye — aur har choice ki kya cost hai.
Recall Solution
- No bus: synaptic weight connection par hi rehta hai (ek memristor conductance, Memristors and ReRAM). Multiply-by-weight tab hota hai jab current usme se flow hoti hai — In-memory computing. Data kabhi alag ALU tak travel nahi karta, isliye von Neumann bottleneck khatam ho jaata hai. Cost: weights analog aur noisy hote hain; precision limited hoti hai.
- No global error: STDP har weight ko sirf apne se update karta hai. Poore network mein loss sweep karne wala koi backward pass nahi hota. Cost: yeh local aur unsupervised hai, isliye correlations achhe se seekhta hai lekin un tasks mein struggle karta hai jinhein precise global credit assignment chahiye (jahan GPUs + backprop abhi bhi jeetat hain — dekho GPU vs Neuromorphic accelerators).
- Sparsity: silent neurons () near-zero power cost karte hain. Cost: agar kisi task ko dense, high-rate activity chahiye, toh advantage kho dete ho aur per spike pay karte ho.