Abstract
Information Extraction (IE) on resource-constrained edge devices faces significant challenges, including model hallucinations, context window limitations, and high inference latency. This paper introduces DLISC (Dual-LoRA with Incremental Schema Caching), a framework designed to optimize complex IE tasks for on-device deployment. By decoupling the extraction process into specialized LoRA adapters for identification and extraction, and implementing a novel incremental caching mechanism, DLISC achieves substantial accuracy gains and reduces processing latency by up to 50% compared to traditional retrieval-augmented generation (RAG) baselines.
Introduction
Information Extraction (IE) is the critical process of transforming unstructured text into structured data formats, such as entities, relations, or events. While Large Language Models (LLMs) have demonstrated remarkable capabilities in IE, deploying them on "edge" devices—such as smartphones, IoT devices, and local servers—presents three primary hurdles:
- Hallucinations: Smaller on-device models often lack the parameters necessary to maintain high factual accuracy compared to cloud-scale models.
- Context Constraints: Complex IE tasks often involve dozens of potential schemas (e.g., various financial event types). Fitting all schema definitions into a single prompt often exceeds the memory and context limits of edge hardware.
- High Latency: Processing extensive prompts containing multiple schemas results in prohibitive inference times on mobile processors.
Existing Retrieval-Augmented Generation (RAG) methods attempt to mitigate these issues by fetching only relevant schemas, but they are often not optimized for the specific architectural constraints of on-device LLMs.
Methodology
The proposed DLISC framework addresses these challenges through a specialized architecture and an efficiency-focused caching system.
Dual-LoRA Architecture
Rather than relying on a single general-purpose model, DLISC utilizes two specialized Low-Rank Adaptation (LoRA) modules that interface with a shared base LLM:
- Identification LoRA ($\theta_I$): Functions as a high-precision retriever to identify the most relevant schemas for a given query.
- Extraction LoRA ($\theta_E$): Executes the structured data extraction once the schema space has been narrowed down.
Incremental Schema Caching (ISC)
To address latency, the authors introduced Incremental Schema Caching. This mechanism pre-computes and stores the mathematical Key-Value (KV) states of static schema definitions. Since schema definitions remain constant while user queries change, caching these states allows the model to skip redundant computations, significantly accelerating the inference process.
Experimental Evaluation
The framework was evaluated using two distinct benchmarks:
- CrossNER_AI: An English dataset for Named Entity Recognition (NER) in the artificial intelligence domain.
- DuEE-Fin: A complex Chinese dataset for document-level Event Extraction (EE) in the financial sector, featuring a high volume of potential event schemas.
Key Results
DLISC demonstrated superior performance in both accuracy and efficiency compared to traditional RAG baselines like BM25 and LLM-Embedder.
Accuracy and Precision
On the CrossNER_AI dataset, DLISC achieved an F1 score of 0.4179 using the Llama-3.2-1B model, nearly doubling the performance of standard RAG baselines (approx. 0.2341). For the more complex DuEE-Fin dataset, the Identification LoRA reached a precision of 0.2982, outperforming traditional retrievers.
Efficiency Gains
The implementation of Incremental Schema Caching provided a massive boost to on-device performance. For the Llama-3.2-1B model, average extraction time per sample was reduced from 1.38 seconds to 0.66 seconds, representing a 52% reduction in latency.
Discussion and Future Work
The success of DLISC highlights that specialization through lightweight adapters can outperform general-purpose prompting in resource-constrained environments. By caching static schema components, the system effectively prioritizes dynamic query processing.
Future research will explore the applicability of other adapter types, such as Prefix Tuning, and evaluate the framework on physical edge hardware to measure real-world metrics like battery consumption and thermal performance. Additionally, the authors aim to address multilingual complexities where queries and schemas may exist in different languages.
Summary updated