Skip to content
Back to Portfolio
AI / Machine LearningResearch

Kaminari — Neuromorphic Inference Runtime

Kaminari — Neuromorphic Inference Runtime

A neuromorphic inference runtime that executes spiking neural networks (SNNs) on Intel Loihi 2 and BrainChip Akida simulators against spike-encoded sensor data. Aims for milliwatt-class classification of sparse inputs from event-based cameras and ultrasonic sensors. Internal R&D prototype.

2026 R&D (internal prototype) 2026-04
#neuromorphic#SNN#edge#R&D

Live Demo

Preview the actual application interface

DEMO
app.neuro.jp/dashboard
Power draw
4.5 mW
-98.2% vs CPU
Inference latency
2.1 ms
event-driven
Accuracy (DVS-Gesture)
92.4 %
internal bench
SNN layers
12
1.2M params

Neuromorphic backend

toolchain: MetaTF 2.7 / Lava 0.9

DVS camera events

240 x 180 · 1M events/s
ON events (green) · OFF events (red)t = 142.8 ms
ONOFFlatency < 1 μs per event

Spike trains

80 ms window
020406080time (ms)N-01N-02N-03
N-0113 Hz
N-0212 Hz
N-0311 Hz

Energy per inference

same SNN workload · batch 1
CPU (x86)250mW
GPU (Jetson)85mW
Akida NSoC4.5mW

Event-driven computation only consumes power when input spikes arrive — static scenes cost near zero energy.

Benchmarks

DVS-Gesture92.4%

11 classes

N-MNIST98.1%

10 classes

SHD (audio)89.7%

20 classes

Challenge

Frame-based CNNs draw multi-watt power running at constant frame rate, which won't fit on battery-powered sensor nodes. SNNs offer a path forward, but encoding schemes and target hardware vary widely, and a solo developer without physical chips needs a reproducible benchmark substrate.

Solution

A thin Rust runtime abstracts Intel Lava (Loihi 2) and Akida 1000 MetaTF behind a shared intermediate representation (KIR — Kaminari IR). Poisson / Rate / Temporal encoders are swappable WASM modules, and DVS event-camera dumps stream spikes directly. A converter exports models trained in Nengo and snnTorch into KIR.

Results

  • 98.1% accuracy on N-MNIST reproduced on Akida sim internally
  • DVS Gesture average latency of 2.8 ms/sample on Loihi 2 sim
  • ~41× lower estimated power vs. an iso-accuracy CNN baseline (simulation)
  • 100% pass rate on KIR conversion for snnTorch ↔ Lava/MetaTF round-trip
Key Metrics

Measured Impact

N-MNIST 精度

98.1%

baseline

DVS Gesture レイテンシ

2.8ms

sim

推定消費電力削減

41x

vs CNN

KIR 変換通過率

100%

internal

Features

What it does

ランタイム

動的バックエンド

Loihi/Akida sim/CPU を dlopen 相当で切替。

WASM 符号化

符号化器を WASM 化しサンドボックス実行。

開発者体験

snnTorch 連携

学習済み Net オブジェクトを 1行で KIR にエクスポート。

差分検証

CPU リファレンスとバックエンドの出力スパイクを自動比較。

観測性

スパイク統計

発火率・膜電位分布を Prometheus にエクスポート。

推定消費電力

Op 数とシナプス数からエネルギー推定値を算出。

Architecture

System Layers

Layered architecture showing components, responsibilities, and data flow.

L1

Layer

符号化レイヤ

実数値入力やイベントストリームを統一スパイク列に変換する WASM モジュール群。

Poisson EncoderRate EncoderTemporal EncoderDVS Ingestor
L2

Layer

ランタイムコア

Rust 製の推論ランタイム。バックエンドを動的にロードし、スパイク統計を収集。

KIR ParserSchedulerBackend DispatcherTelemetry
L3

Layer

バックエンド

ハードウェアシミュレータへの橋渡しと、差分検証用の純粋 CPU リファレンス実装。

Lava AdapterMetaTF AdapterCPU Reference
L4

Layer

評価パイプライン

N-MNIST / DVS Gesture / SHD データセットで自動ベンチを回し、メトリクスを Prometheus に公開。

Tonic LoaderBench RunnerPrometheus Exporter
Development Process

How we built it

Step 1

文献調査と符号化方式選定

最新の SNN 学習手法 (surrogate gradient, STDP) と符号化方式を比較検討。

Deliverables

  • 研究ノート
  • 符号化比較表
  • KIR ドラフト仕様
Step 2

KIR 実装と変換器

snnTorch 学習済みモデルを KIR に落とす変換器を Python で実装。

Deliverables

  • KIR FlatBuffers スキーマ
  • snnTorch→KIR コンバータ
  • 往復等価性テスト
Step 3

バックエンドアダプタ

Lava と MetaTF の Op セットを KIR にマッピングし、sim 経由で推論実行。

Deliverables

  • Lava Adapter
  • MetaTF Adapter
  • CPU リファレンス
Step 4

ベンチマークと公開

代表データセットで精度 / レイテンシ / 推定消費電力を計測し、内部レポート化。

Deliverables

  • ベンチスクリプト
  • Prometheus ダッシュボード
  • R&D レポート
Roadmap

Delivery Timeline

  • Phase 0Done2026-04-23

    KIR 仕様策定

    中間表現のスキーマを FlatBuffers で固定し、Lava/MetaTF の Op 集合を網羅。

  • Phase 1Done2026-04-25

    Akida sim バックエンド

    MetaTF 経由で N-MNIST 推論を再現しベンチマーク確立。

  • Phase 2Planned2026-05

    Loihi 2 sim 統合

    Lava バックエンドと DVS Gesture 評価を追加。

  • Phase 3Planned2026-06

    エッジデバイス連携

    Jetson Orin 上で sim 結果と CNN ベースラインを比較。

Team

Who built it

1engineer

Roles

  • ML リサーチエンジニア
Tech Stack

Tools & Platforms

Backend

RustPythonNengo

Infrastructure

PrometheusDocker

Other

Intel LavaBrainChip MetaTFsnnTorchPyTorchWebAssemblyONNXNumPyApache ArrowTonic (DVS)
Build with KGA

Considering a similar project?

We will propose the best solution for your business needs.

Discuss Your Project