TL;DR
MGA-VQA introduces an auditable, security-aware architecture for Document Visual Question Answering (DocVQA) that couples Gemma-3-8B with explicit spatial graph reasoning and dual-memory banks. By conditioning visual compression on the query and routing inference through interpretable structural pathways, the framework establishes state-of-the-art accuracy across six benchmarks while making models resistant to unauthorized distillation, unconstrained fine-tuning, and indiscriminate pruning.
What Problem Does This Paper Address?
Modern Multimodal Large Language Models (MLLMs) handle document analysis reasonably well, but they suffer from black-box reasoning, struggle with dense spatial structures (e.g., invoices, forms), and scale inefficiently on high-resolution inputs.
More critically, deploying opaque models in sensitive legal and financial environments exposes them to intellectual property theft and misuse. Black-box DocVQA systems can be distilled into smaller unlicensed replicas, pruned arbitrarily, or maliciously fine-tuned. The emerging "Lock-LLM" framework calls for models that are inherently un-distillable, un-finetunable, un-compressible, and traceable. Existing DocVQA pipelines focus solely on task accuracy and lack intrinsic architectural mechanisms to protect their underlying knowledge.
Methods
MGA-VQA ties model interpretability directly to IP protection via a five-stage pipeline:
[Document Image + OCR Boxes] [Question]
│ │
├─────────────────┐ │
▼ ▼ ▼
Token-Level Encoding Spatial Graph Dual Memory Bank
(Gemma-3-8B) (3-layer GCN) (Direct/Indirect)
│ │ │
└────────► Question-Guided ◄───────┘
Compression
│
▼
Multi-Modal Spatial Fusion
│
▼
[Answer + Bounding Box]
- Token-Level Visual Encoding: Employs Gemma-3-8B with multi-scale patch extraction ($P_{\text{multi}}$) to generate query- and token-specific representations, preventing easy transfer of generic global representations.
- Spatial Graph Construction & Reasoning: Builds a weighted graph $G = (V, E, W)$ over detected OCR bounding boxes. Edges are parameterized by geometric distance, alignment, and semantic similarity ($w_{ij} = \alpha \cdot d_{\text{spatial}} + \beta \cdot a_{\text{alignment}} + \gamma \cdot s_{\text{semantic}}$). A 3-layer Graph Convolutional Network (GCN) propagates features across explicit, auditable pathways.
- Memory-Augmented Question Processing: Implements two 512-dimensional memory stores: a Direct Memory (DM) for candidate answers tied to spatial priors, and an Indirect Memory (IM) for multi-hop contextual chaining. Cross-attention routes queries through these banks, leaving an auditable access trace.
- Question-Guided Compression: Evaluates token importance alongside question-embedding similarity, pruning tokens adaptively (compression ratios between 0.3 and 0.8). Uniform or brute-force pruning degrades output quality, ensuring resistance against unauthorized compression.
- Multi-Modal Spatial Fusion: Applies disentangled cross-modal attention matrices (Text-to-Text, Text-to-Spatial, Spatial-to-Text, and Spatial-to-Spatial) to ground reasoning before predicting answers and localized bounding boxes.
Datasets
The authors evaluated the method across six public benchmarks across two categories (no new datasets were introduced):
- Document VQA:
- DocVQA (50,000+ QA pairs over 12,000+ document pages)
- STE-VQA (scene-text visual question answering)
- RICO (mobile application UI layouts)
- Visual Information Extraction:
- FUNSD (noisy scanned form understanding)
- CORD (scanned receipt parsing)
- SROIE (scanned receipt OCR and field extraction)
Key Insights and Ideas
- Interpretability as a Security Primitive: Transparent reasoning pathways (graphs and memory traces) dual-serve as audit trails. Knowledge access cannot be easily replicated or extracted wholesale without following these explicit structures, aligning with Lock-LLM security objectives.
- Query-Conditioned Pruning Prevents Indiscriminate Distillation: Because visual tokens are scored relative to specific user queries, offline attempts to statically compress or distill the backbone model cause catastrophic performance degradation on target tasks.
- Fine-Grained Token Alignment Beats Global Features: Using Gemma-3-8B for dense token-to-patch correspondence outperformed traditional vision encoders, representing the most critical performance driver in ablation studies.
Key Results
- Benchmark Performance (ANLS): MGA-VQA achieved state-of-the-art results across all six benchmarks, outperforming the closest baseline (DLaVA):
- DocVQA: 89.47% vs. 85.91% (+3.56% absolute, ~4.8% relative)
- STE-VQA: 71.23% vs. 66.96%
- RICO: 81.95% vs. 76.34%
- FUNSD / CORD / SROIE: 92.14% / 87.92% / 95.18%
- Spatial Localization (mAP@IoU[0.50:0.95]): Outperformed DLaVA on bounding-box prediction by up to 8.25%, achieving 52.87% on DocVQA and 65.24% on CORD.
- Efficiency Gains: Compared to DLaVA (12.6B params), MGA-VQA (8.9B params) reduced parameter footprint by 29.4%, cut inference latency by 12.7% (1089 ms vs. 1247 ms), and lowered GPU memory usage by 14.1% (21.3 GB vs. 24.8 GB).
- Ablation Studies: Removing token-level encoding caused the largest drop in ANLS (-2.95% on DocVQA), followed by removing spatial graphs (-2.28%) and multimodal spatial fusion (-1.73%).
Limitations and Future Work
- Dependency on OCR Quality: The graph reasoning module relies on initial OCR bounding-box detection; errors in early-stage OCR propagate downstream.
- Module Overhead: Adding GCN layers and dual-memory banks introduces architectural complexity and training overhead despite the inference-time token pruning gains.
- Linguistic and Layout Scope: Validated primarily on English-language document formats; multilingual and non-standard layout evaluation remains unexplored.
- Double-Edged Transparency: While interpretable decision pathways make unauthorized extraction traceable, open access to intermediate routing could inadvertently expose internal reasoning mechanisms if deployment interfaces are not strictly safeguarded.
Summary updated