Edge-Native Multimodal RAG: Hardware-Aware Quantization and Architectural Optimization for Consumer GPUs

Zahraa Selim, Menna Hamed, Wesam Ahmed, Sohyla Said, Sara Basheer, Rami ZewailarXiv 2026 · arXiv

TL;DR

This paper introduces a framework for deploying multimodal Retrieval-Augmented Generation (RAG) on consumer-grade GPUs (12–16 GB VRAM). By combining hardware-aware 4-bit quantization, a decoupled vision architecture, and structured few-shot prompting, the authors reduced the operational footprint to just 8.37 GB while restoring reasoning accuracy from 35% to 92%.

What Problem Does This Paper Address?

Running state-of-the-art Large Language Models (LLMs) locally is a memory nightmare. A standard 7B parameter model in half-precision (FP16) consumes 14 GB of VRAM just to sit there. When you add the components needed for RAG—embedding models, vector indices, and Key-Value (KV) caches—the total footprint balloons to 17–19 GB, exceeding the capacity of popular consumer GPUs like the NVIDIA RTX 3060 or Tesla T4.

Beyond simple memory capacity, the authors identify three "lacunae" in current research:

  1. Hardware Instability: Quantization techniques that work on paper often cause stability issues on specific hardware architectures (like NVIDIA's Turing).
  2. Monolithic Bottlenecks: Standard multimodal models are too large for local edge deployment.
  3. Silent Reasoning Failures: Aggressive quantization might keep perplexity low but can secretly destroy a model's ability to perform multi-step reasoning.

Methods

The authors propose a tripartite system integration framework:

  • Hardware-Aware Quantization: They benchmarked three Post-Training Quantization (PTQ) paradigms: NF4 (NormalFloat), GPTQ (Inverse Hessian), and AWQ (Activation-Aware). Classification of evaluated quantization techniques
  • Decoupled Multimodal Architecture: Instead of using a massive monolithic Vision-Language Model (VLM), they integrated Florence-2 Base (a tiny 0.23B parameter model). Florence-2 processes images into text tokens that are then fused with the LLM's input, adding only ~430 MB of VRAM overhead. Decoupled Vision-Language Architecture
  • Modular RAG Pipeline: The system uses a dual-path retrieval mechanism (combining BGE dense vectors and BM25 sparse lexical search) fused via Reciprocal Rank Fusion (RRF). The Modular RAG Pipeline Architecture
  • Structured Prompting: To fix the "reasoning loss" caused by 4-bit quantization, they used structured few-shot prompting to guide the model's logic and prune its search space.
Fig. 1. Classification of evaluated quantization techniques.
Fig. 3. Decoupled Vision-Language Architecture.
Fig. 2. The Modular RAG Pipeline Architecture. Indexing (Phase 1) is decoupled from inference (Phase 2).

Datasets

The study utilized several benchmarks and custom datasets for evaluation:

  • WikiText-2: Used for GPTQ calibration and measuring perplexity.
  • SQUADv2: Used to evaluate retrieval quality metrics (Recall@5).
  • Custom Tri-modal QA Dataset: 50 dyads used to validate the visual reasoning capabilities of the decoupled architecture.
  • Empirical Mathematical Tasks: 200 trials used to measure the restoration of procedural reasoning.

Key Insights and Ideas

  • The GPTQ Trap on Turing: While GPTQ showed the highest theoretical throughput (51.65 tok/s), it suffered from "context collapse" and severe instability on Turing-based GPUs (like the T4) when context exceeded 2048 tokens. NF4 emerged as the "Goldilocks" choice—stable and reliable, even if slightly slower.
  • Prompting as an Efficiency Engine: Interestingly, structured prompting didn't just improve accuracy; it reduced generation latency by 47%. By forcing the model into explicit structural constraints, the authors eliminated "verbose hallucination loops," effectively pruning the search space without increasing computational intensity.
  • Decoupling for the Win: The decoupled vision approach achieved functional parity with much larger models (like Moondream2) while consuming 50% less VRAM, proving that specialized small models can often replace monolithic giants in edge scenarios.

Key Results

The integrated architecture achieved a peak VRAM load of 8.37 GB, making it highly viable for 12 GB GPUs.

Metric Baseline (Zero-Shot) Structured (Few-Shot) Improvement
Math Accuracy 35.0% 92.0% +57.0 pp
Avg. Gen. Time 20.06 s 10.64 s -47.0%
Reasoning Faithfulness 0.216 0.915 +323%

As shown in the benchmarking table below, while NF4 is slower than GPTQ, its stability makes it the superior choice for RAG pipelines on this hardware. Inference Performance Table

Inference Performance Table

Limitations and Future Work

  • Root Cause Analysis: The authors note that the specific reason for GPTQ's collapse on Turing (quantization noise vs. kernel bugs) requires deeper low-level profiling.
  • KV Cache Compression: The current system keeps the KV cache in uncompressed FP16. Integrating 2-bit or 4-bit KV cache quantization (like KIVI) is a promising avenue for further memory reduction.
  • Hardware Generalization: While the system is theoretically viable for the RTX 3060, the authors call for comprehensive end-to-end testing across newer Ada and Ampere architectures to validate generalizability.
  • Benchmark Scope: Mathematical evaluation relied on a domain-specific dataset; future work should include broader benchmarks like GSM8K.

Summary updated

Abstract

Deployment of retrieval-augmented generation (RAG) for Edge-AI is constrained by memory and bandwidth limitations. A standard 7B parameter model consumes 14 GB Video Random Access Memory (VRAM) in half-precision (FP16), precluding co-location of vector indices and Key-Value (KV) caches. This paper presents an engineering integration and empirical evaluation of a multimodal RAG framework optimized for consumer-grade Turing hardware (e.g., NVIDIA Tesla T4). Our system-level analysis identifies a critical trade-off: while generative pre-trained transformer quantization (GPTQ) offers superior throughput (51.6 tok/s), it exhibits significant context instability at 2048+ tokens on Turing architectures. Conversely, NormalFloat 4-bit (NF4) maintains robust long-context performance with viable latency (81 ms/tok). By coupling NF4 with a decoupled Florence-2 vision integration, we achieve visual reasoning with only 430 MB VRAM overhead. Furthermore, empirical observations of prompt-induced search space pruning show that structured prompting reduces latency by 47% without altering computational intensity (1.88 GFLOPs/token). The integrated architecture maintains an 8.37 GB footprint, establishing a viable RAG pipeline for 12-16 GB GPUs. Finally, structured few-shot prompting effectively compensates for quantization-induced reasoning loss, restoring mathematical accuracy from 35.0% to 92.0% across 200 trials.
BibTeX
@misc{selim2026edge,
  author = {Zahraa Selim and Menna Hamed and Wesam Ahmed and Sohyla Said and Sara Basheer and Rami Zewail},
  title = {{Edge-Native Multimodal RAG: Hardware-Aware Quantization and Architectural Optimization for Consumer GPUs}},
  year = {2026},
  eprint = {2611.14924},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.14924},
}
Figure