Abstract
The Locally Competitive Algorithm (LCA) is a biologically plausible computational architecture for sparse coding, where a signal is represented as a linear combination of elements from an over-complete dictionary. In this paper we map the LCA algorithm on the brain-inspired, IBM TrueNorth Neurosynaptic System. We discuss data structures and representation as well as the architecture of functional processing units that perform non-linear threshold, vector-matrix multiplication. We also present the design of the micro-architectural units that facilitate the implementation of dynamical based iterative algorithms. Experimental results with the LCA algorithm using the limited precision, fixed-point arithmetic on TrueNorth compare favorably with results using floating-point computations on a general purpose computer. The scaling of the LCA algorithm within the constraints of the TrueNorth is also discussed.
Introduction
Sparse coding is a fundamental technique in signal processing and neuroscience, enabling the efficient representation of complex data (such as natural images) using a minimal set of "atoms" from a large dictionary. While highly effective, implementing these iterative dynamical systems on traditional von Neumann architectures (CPUs/GPUs) is often energy-intensive. Neuromorphic systems like the IBM TrueNorth offer a low-power alternative by mimicking neural architectures. However, TrueNorth's native constraints—1-bit spikes, fixed-point arithmetic, and lack of traditional RAM—present significant hurdles for algorithms requiring high-precision state updates and iterative memory.
Implementation Methodology
To overcome hardware limitations, researchers developed a novel design methodology to translate continuous LCA dynamics into a discrete, spike-based environment. The system utilizes a modular "corelet" architecture to manage complex operations.
Corelet Architecture and Iterative Memory
Because TrueNorth lacks a native mechanism for variable storage, the authors engineered a dual-path "ping-pong" buffer within the corelet. This structure allows the system to hold and replay the previous state ($u[n]$) while simultaneously calculating the next state ($u[n+1]$). This facilitates the iterative feedback loop necessary for the LCA to converge.
Precision and Vector-Matrix Multiplication (VMM)
To achieve the precision required for sparse coding, the implementation employs several key innovations:
- Precision through Time: Higher-precision values are encoded by counting spikes within a specific time window (e.g., 10 to 255 ticks).
- 9-bit Signed VMM: A three-layer corelet performs Vector-Matrix Multiplication using binary decomposition, allowing for 9-bit precision despite the chip's native 4-weight-type limit.
- Algorithmic Scaling: To avoid hardware-impossible division, the entire system is scaled by $\tau^2$, transforming the dynamics into a series of additions and subtractions.
Experimental Results
The implementation was evaluated using synthetic dictionaries and standard $8 \times 8$ image patches. The results demonstrate that the TrueNorth implementation achieves convergence curves and node dynamics identical to high-precision floating-point simulations.
- Efficiency: A dictionary with 100 nodes utilized only 113 of the 4,096 available cores on a single TrueNorth chip.
- Power Consumption: The system is remarkably efficient, with a $66 \times 100$ dictionary implementation consuming only 1.657 mW at 0.8V. This represents a significant improvement over previous analog implementations.
Discussion and Future Work
While the implementation achieves high accuracy and low power, the use of time-window encoding introduces a trade-off in speed. The algorithm requires multiple clock ticks to converge, which may limit its use in ultra-high-speed real-time applications. Future research will explore stochastic encoding methods or next-generation neuromorphic hardware with faster internal clocks to mitigate this latency. Ultimately, this work proves that neuromorphic hardware can serve as a general-purpose platform for complex iterative linear algebra when appropriate data structures and micro-architectures are employed.
Summary updated