LIMCA: LLM for Automating Analog In-Memory Computing Architecture Design Exploration
Abstract
Analog In-Memory Computing (IMC) offers a promising solution to the "memory wall" in Deep Neural Networks (DNNs), but its design process is traditionally manual, slow, and complex. This paper introduces LIMCA, the first framework to leverage Large Language Models (LLMs) to automate the design and evaluation of analog IMC architectures. Using a "No-Human-In-Loop" pipeline, LIMCA generates and validates circuit netlists for SPICE simulations, achieving up to a 50x speedup in design exploration while maintaining high accuracy and strict power constraints.
Introduction
As DNNs grow in complexity, traditional von Neumann architectures struggle with the energy and time costs of moving data between processors and memory. Analog IMC addresses this by performing computations directly within resistive crossbar arrays. However, designing these systems requires deep expertise in device physics and circuit non-idealities. Existing tools are often too abstract or require tedious manual optimization.
As shown in the comparison above, LIMCA distinguishes itself from previous frameworks by providing automated design space exploration and exact inference accuracy through circuit-level simulation, whereas most existing tools rely on manual exploration or system-level estimates.
The LIMCA Framework
LIMCA is a fine-tune-free, LLM-driven framework that automates the transition from a natural language prompt to a verified hardware design.
The workflow consists of several key stages:
- Query Generation: An LLM extracts design constraints (e.g., "16x16 crossbar," "power < 3W") from a user prompt.
- Design Space Exploration (DSE): The system first checks a structured repository (IMC-Dataset) to see if a matching design exists.
- Automated Design Generation (ADG): If no match is found, the LLM synthesizes a new architecture. To overcome LLM token limits, LIMCA generates Python-based representations that interface with circuit-level simulation toolboxes.
- No-Human-In-Loop (NHIL) Verification: The generated design is automatically sent to a verification engine that runs HSPICE simulations. If the design fails, the system provides diagnostic feedback to the LLM for iterative refinement.
Dataset and Results
The authors introduce the IMC-Dataset, the first open-source dataset of its kind, containing over 600 unique instances of IMC designs across various technology nodes (7nm to 20nm) and memory devices (MRAM, RRAM, PCM, CBRAM).
In performance tests, LIMCA successfully generated crossbar designs for MNIST classification achieving ≥96% accuracy while staying under a 3W power budget. Compared to manual design processes, LIMCA reduced exploration time from hours to under 8 minutes, representing a 11.5x to 49.7x speedup.
Conclusion
LIMCA demonstrates that LLMs can effectively manage complex analog design tasks when supported by a structured validation pipeline. While currently focused on Multi-Layer Perceptron (MLP) topologies, future work aims to support more complex structures like CNNs and expand into a full-stack solution for automated hardware implementation.
Summary updated