Skip to main content
QUICK REVIEW

[Paper Review] Neuromorphic Intermediate Representation: A Unified Instruction Set for Interoperable Brain-Inspired Computing

Jens Egholm Pedersen, Steven Abreu|arXiv (Cornell University)|Nov 24, 2023
Advanced Memory and Neural ComputingEngineering6 citations
TL;DR

This paper introduces the Neuromorphic Intermediate Representation (NIR), a unified, continuous-time computational abstraction that enables interoperability across diverse neuromorphic hardware and software platforms by modeling spiking neural networks as idealized hybrid dynamical systems. NIR decouples hardware and software development, enabling reproducible, portable neuromorphic computation across 7 simulators and 4 hardware platforms with consistent behavioral fidelity.

ABSTRACT

Spiking neural networks and neuromorphic hardware platforms that simulate neuronal dynamics are getting wide attention and are being applied to many relevant problems using Machine Learning. Despite a well-established mathematical foundation for neural dynamics, there exists numerous software and hardware solutions and stacks whose variability makes it difficult to reproduce findings. Here, we establish a common reference frame for computations in digital neuromorphic systems, titled Neuromorphic Intermediate Representation (NIR). NIR defines a set of computational and composable model primitives as hybrid systems combining continuous-time dynamics and discrete events. By abstracting away assumptions around discretization and hardware constraints, NIR faithfully captures the computational model, while bridging differences between the evaluated implementation and the underlying mathematical formalism. NIR supports an unprecedented number of neuromorphic systems, which we demonstrate by reproducing three spiking neural network models of different complexity across 7 neuromorphic simulators and 4 digital hardware platforms. NIR decouples the development of neuromorphic hardware and software, enabling interoperability between platforms and improving accessibility to multiple neuromorphic technologies. We believe that NIR is a key next step in brain-inspired hardware-software co-evolution, enabling research towards the implementation of energy efficient computational principles of nervous systems. NIR is available at neuroir.org

Motivation & Objective

  • To address the lack of interoperability among heterogeneous neuromorphic hardware and software stacks, which hinders reproducibility and incremental progress.
  • To establish a common computational reference frame that abstracts away discretization and hardware-specific constraints.
  • To decouple the evolution of neuromorphic software and hardware, enabling independent development and broader accessibility.
  • To provide a stable, formal representation for theoreticians to reason about neuromorphic circuits and dynamics.
  • To enable portable, platform-agnostic deployment of spiking neural networks across diverse neuromorphic systems.

Proposed method

  • Designing NIR as a continuous-time hybrid system representation based on idealized dynamical equations, abstracting from numerical integration and hardware constraints.
  • Defining a set of computational primitives (e.g., LIF neurons, synapses, integrators) as first-class constructs in a graph-based intermediate representation.
  • Enabling bidirectional mapping between NIR graphs and various neuromorphic simulators and hardware platforms via compiler-style transformations.
  • Using a formal, mathematically grounded specification to preserve the exact difference between idealized dynamics and actual implementations.
  • Implementing a compiler stack that translates from high-level models to NIR, then to target backends, ensuring behavioral fidelity.
  • Validating the approach by reproducing three benchmark models (MNIST classifier, SRNN for tactile recognition) across 7 simulators and 4 hardware platforms.
Figure 1 : High-level overview of what NIR is. (a) NIR allows for continuous-time representation of nodes that can then be executed on continuous-time hardware or simulators, or discretized for use on discrete-time hardware or simulators. (b) A taxonomy of discrete and continuous time hardware and s
Figure 1 : High-level overview of what NIR is. (a) NIR allows for continuous-time representation of nodes that can then be executed on continuous-time hardware or simulators, or discretized for use on discrete-time hardware or simulators. (b) A taxonomy of discrete and continuous time hardware and s

Experimental results

Research questions

  • RQ1Can a unified intermediate representation bridge the semantic and architectural gap between diverse neuromorphic simulators and hardware platforms?
  • RQ2How can a continuous-time, hybrid dynamical system representation preserve the essential computational behavior of spiking neural networks across heterogeneous implementations?
  • RQ3To what extent can NIR decouple neuromorphic software and hardware development while maintaining behavioral fidelity?
  • RQ4Can NIR enable consistent model execution and reproducibility across both discrete-time and continuous-time neuromorphic systems?
  • RQ5How does NIR compare to existing intermediate representations like ONNX or MLIR in modeling continuous-time neuromorphic dynamics?

Key findings

  • NIR successfully enabled the reproduction of three distinct neuromorphic models—MNIST classification and spiking recurrent networks—across 7 simulators and 4 hardware platforms with consistent behavioral outcomes.
  • The implementation achieved full behavioral fidelity between the idealized mathematical formalism and actual execution, with deviations explicitly exposed and quantified.
  • The use of surrogate gradients and regularization (ℓ¹ and ℓ² spike penalties) led to optimal hyperparameters: μₗ₁=6×10⁻⁴, μₗ₂=4×10⁻⁶ (zero, bias) and μₗ₁=1×10⁻³, μₗ₂=1×10⁻⁶ (subtractive, no bias), yielding high validation accuracy.
  • Training with Adam optimizer (lr=0.005 or 0.001) over 500 epochs achieved stable convergence, with the best model selected based on validation accuracy.
  • The NIR compiler stack successfully mapped models to both discrete-time and continuous-time backends, demonstrating broad compatibility.
  • The open-source NIR library and codebase are publicly available at https://github.com/neuromorphs/nir, enabling community adoption and extension.
Figure 2 : a-d) shows four NIR primitives, where the name of the primitive is highlighted on top, the implemented computation is illustrated in the white box, and the parameters that are stored with the NIR graph are highlighted on the bottom. a) shows a stateful primitive, while b) and c) show stat
Figure 2 : a-d) shows four NIR primitives, where the name of the primitive is highlighted on top, the implemented computation is illustrated in the white box, and the parameters that are stored with the NIR graph are highlighted on the bottom. a) shows a stateful primitive, while b) and c) show stat

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.