Introduction
Running Large Multimodal Models (LMMs) on tiny, battery-powered edge devices is notoriously difficult due to strict memory and power constraints. This paper introduces NANOMIND, a hardware-software co-design framework that breaks LMMs into modular components (vision, audio, text) and dynamically offloads them to specific accelerators (NPU, GPU, CPU) using zero-copy memory transfers. By abandoning the standard "monolithic" execution approach, NANOMIND cuts energy use by 42.3% and enables over 20 hours of on-device multimodal inference on a standard 2000 mAh battery.
The Edge Inference Bottleneck
Today’s Large Multimodal Models (like LLaVA or Qwen-VL) are usually executed as massive, monolithic blocks. While this works fine on cloud servers with massive GPUs, it is highly inefficient for edge devices such as smartphones, wearables, or robotics. Modern edge System-on-Chips (SoCs) feature heterogeneous accelerators—a mix of CPUs, GPUs, and Neural Processing Units (NPUs)—that share a Unified Memory Architecture (UMA).
Existing edge inference frameworks, such as llama.cpp, are adapted from traditional PC architectures. They assume the CPU and GPU have separate memory pools, leading to constant, redundant data copying between the CPU and accelerators. Furthermore, forcing an entire LMM onto a single accelerator ignores hardware strengths: NPUs are great for static-shape vision tasks but terrible for dynamic-length text generation, while GPUs excel at the latter. This mismatch results in underutilized hardware, CPU bottlenecks, and rapidly drained batteries.
The NANOMIND Architecture
The authors tackle these inefficiencies with a "top-down" hardware-software co-design approach.
Instead of running the whole model on the GPU, NANOMIND breaks it into modular "bricks." The vision encoder (e.g., SigLip) is offloaded to the NPU, which excels at static-shape, low-bit operations. The LLM decoder is assigned to the GPU, while audio processing (Whisper/Piper) and control logic remain on the CPU.
To solve the unified memory bottleneck, the authors designed a lightweight ring buffer managed by a Token-Aware Buffer Manager (TABM). It allows the NPU to write vision embeddings directly into a shared memory slot that the GPU can immediately read as LLM input. This "zero-copy" transfer entirely bypasses the CPU, eliminating redundant memory writes.
Additionally, the team built custom OpenCL fused dequant-GEMM kernels for the GPU. These unpack 4-bit weights directly in the registers before executing FP16 math, keeping the memory pipeline saturated without requiring intermediate buffers.
Using a custom Power Management Unit (PMU) on their prototype PCB, the system monitors battery life in real-time. It dynamically shifts between three states: Unconstrained (full parallel speed), Proportional Throttling (scaling down frame rates), and Critical Conservation (an event-triggered, domino-like sequential pipeline that sips power).
Key Insights
- Modularity is the key to edge efficiency: Treating an LMM as a monolith is a mistake on edge SoCs. By decoupling the vision encoder from the language decoder, you can map each to the silicon best suited for its specific mathematical workload.
- Zero-copy is mandatory for Unified Memory: Legacy frameworks waste massive amounts of CPU cycles and memory bandwidth just moving data around the same physical DRAM. TABM proves that coordinating memory pointers between the NPU and GPU is far more efficient than copying data.
- Vision precision matters more than text precision: When applying hybrid quantization, the authors found that the accuracy of vision-language tasks is heavily bottlenecked by the vision encoder. You can aggressively quantize the LLM to 4-bit (W4A16) to save memory, but keeping the vision encoder at 8-bit or FP16 is crucial for maintaining high accuracy on benchmarks like InfoVQA and MMBench.
Results and Performance
The hardware-software co-design yields significant improvements over existing baselines:
- Energy & Memory Savings: NANOMIND reduces energy consumption by 42.3% and GPU memory usage by 11.2% compared to standard
llama.cppimplementations. - Latency & Throughput: End-to-end latency was reduced by 36.2% compared to running the official Rockchip LLM framework on a more powerful Orange Pi 5 Ultra. It achieved throughput comparable to a Jetson Nano running NanoVLM with CUDA (~35.7 tokens/sec), despite running on a significantly cheaper, lower-power Rockchip SoC.
- Battery Life: In its low-power "On-Demand Cascade" mode, the system draws an average of just 0.375 W. Powered by a standard 2000 mAh battery bank, the prototype ran a 0.5B parameter LMM with a live camera for 20.8 hours.
Limitations and Future Work
The current implementation is heavily optimized for and fully realized only on Rockchip SoCs (RK3566 and RK3588). Support for other chips is currently limited; Qualcomm (QCS6490) support is a work-in-progress, Apple M2 support is only partial due to closed-source drivers, and Mali-only SoCs lack the necessary NPU/GPU coordination to fully benefit from this architecture. Future work will focus on expanding the framework to support a wider variety of mobile SoCs and continuing to refine the dynamic offloading policies for even larger models.
Summary updated