ROMA: A Read-Only-Memory-based Accelerator for QLoRA-based On-Device LLM

Wenqiang Wang, Yijia Zhang, Zikai Zhang, Guanting Huo, Hao Liang, Shijie Cao, Ningyi Xu

TL;DR

ROMA is a novel hardware accelerator designed to run Large Language Models (LLMs) on edge devices by storing quantized base models in high-density Read-Only Memory (ROM) instead of traditional SRAM. By combining this "hard-coded" memory with a hybrid architecture for flexible LoRA adapters, ROMA achieves staggering on-chip inference speeds exceeding 20,000 tokens/s, outperforming high-end GPUs for specific on-device tasks.

What Problem Does This Paper Address?

Deploying LLMs on "the edge"—smartphones, robots, and autonomous vehicles—is a massive challenge due to the "memory wall." Even with QLoRA (Quantized Low-Rank Adaptation), which shrinks models significantly, the base model weights are still too large to fit entirely on-chip using standard SRAM (Static Random-Access Memory).

SRAM is fast but physically bulky, consuming precious silicon area. Consequently, most edge devices must store weights in external memory (DRAM), leading to high power consumption and slow "token-per-second" rates as data travels back and forth. The authors identify a unique opportunity: while LoRA adapters need to be updated or swapped, the underlying quantized base models (like Llama 3) are stable and converged, making them perfect candidates for more efficient, permanent storage.

Methods

The authors introduce ROMA, an accelerator featuring a hybrid storage and compute architecture:

  • Hybrid Storage: It uses ROM to store the immutable, low-bit quantized base model (INT2 or INT4) and SRAM to store the dynamic components: LoRA weights, KV cache, and intermediate activations.
  • B-ROM (Block ROM): Standard ROM is already denser than SRAM, but the authors proposed a "Block ROM" design. By grouping addresses and pre-generating output candidates, they reduced the number of CMOS transistors required for storage to approximately one-fourth of a standard ROM.
  • Fused-Cell Design: At the physical layout level, ROM and compute logic have complementary needs. ROM requires heavy metal routing but few transistors, while compute logic is transistor-dense but uses less routing. ROMA "fuses" these into a single cell, interleaving them to maximize silicon utilization.
  • Mixed-Precision Units: The architecture splits into L-Units (Low-precision for the ROM-based base model) and H-Units (High-precision SRAM-based units for LoRA and attention mechanisms).

Datasets

The researchers evaluated ROMA using two state-of-the-art open-source models:

  • Llama3-8B: Quantized to INT2 for the base model with FP8 LoRA modules.
  • Llama3.2-3B: Quantized to INT4 for the base model with FP8 LoRA modules.

These models were chosen because they represent the current frontier of "edge-capable" high-performance LLMs.

Key Insights and Ideas

  • The "Stability" Insight: The core "aha" moment is that foundation models are now stable enough to be treated as hardware constants. Instead of fighting the area cost of rewritable memory, ROMA embraces the immutability of ROM to gain a 3x density advantage over SRAM.
  • Silicon Tetris: The Fused-Cell design is a clever piece of physical engineering. By recognizing that ROM and logic occupy different "layers" of the chip's physical resource stack (metal vs. base transistors), they managed to pack more functionality into the same square millimeter.
  • Eliminating the Bus: By fitting the entire 3B or 8B model on-chip, ROMA eliminates the need for external memory access during inference. This removes the primary bottleneck for LLM generation speed.

Key Results

ROMA was synthesized using a TSMC 7nm process, yielding impressive specs:

  • Throughput: Achieved a decoding speed of up to 31.8K tokens/s (peak) and maintained over 20K tokens/s even with a 4K input sequence.
  • Efficiency: Compared to an Intel i5-1135G7 CPU, ROMA is 2,785x faster. More surprisingly, it is 70.5x faster than an NVIDIA RTX 4090 GPU for these specific on-device inference scenarios.
  • Latency: Time-to-first-token (TTFT) for a 256-token input was just 5.6ms.
  • Physical Specs: The chip features 1.86 GB of ROM and 304 MB of SRAM in a 503.7 $mm^2$ area, consuming roughly 33.1W.

Limitations and Future Work

  • Immutability: The most obvious drawback is that the base model is "baked in." If a significantly better base model is released (e.g., Llama 4), the chip cannot be updated; it would require a new hardware manufacturing run.
  • Quantization Sensitivity: The design relies heavily on 2-bit and 4-bit quantization. While QLoRA is robust, extremely low-bit quantization can sometimes lead to "model collapse" or accuracy degradation in niche tasks.
  • Future Direction: The authors suggest that as base models become even more standardized, ROM-based acceleration could become a standard co-processor for mobile SoCs, much like dedicated video decoders or ISPs today.

Summary updated

BibTeX
@inproceedings{wang2026roma,
  author = {Wenqiang Wang and Yijia Zhang and Zikai Zhang and Guanting Huo and Hao Liang and Shijie Cao and Ningyi Xu},
  title = {{ROMA: A Read-Only-Memory-based Accelerator for QLoRA-based On-Device LLM}},
  booktitle = {ASP-DAC},
  year = {2026},
  doi = {10.1109/asp-dac66049.2026.11420528},
}

Loading related content...

Figure