Effective and Efficient Schema-aware Information Extraction Using On-Device Large Language Models

Yong Liu, Zhihao Wen, Sheng Liang, Yaxiong Wu, Yongyue Zhang, Yong Liu 0020arXiv 2025 · DOI

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:

  1. Hallucinations: Smaller on-device models often lack the parameters necessary to maintain high factual accuracy compared to cloud-scale models.
  2. 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.
  3. 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.

Comparison of different Information Extraction architectures, highlighting the evolution from RAG-based methods to the Dual-LoRA and DLISC frameworks.

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.

Performance metrics comparing DLISC against baseline methods in identification precision and extraction F1 score.

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

Abstract

Information extraction (IE) plays a crucial role in natural language processing (NLP) by converting unstructured text into structured knowledge. Deploying computationally intensive large language models (LLMs) on resource-constrained devices for information extraction is challenging, particularly due to issues like hallucinations, limited context length, and high latency-especially when handling diverse extraction schemas. To address these challenges, we propose a two-stage information extraction approach adapted for on-device LLMs, called Dual-LoRA with Incremental Schema Caching (DLISC), which enhances both schema identification and schema-aware extraction in terms of effectiveness and efficiency. In particular, DLISC adopts an Identification LoRA module for retrieving the most relevant schemas to a given query, and an Extraction LoRA module for performing information extraction based on the previously selected schemas. To accelerate extraction inference, Incremental Schema Caching is incorporated to reduce redundant computation, substantially improving efficiency. Extensive experiments across multiple information extraction datasets demonstrate notable improvements in both effectiveness and efficiency.
BibTeX
@misc{liu2025effective,
  author = {Yong Liu and Zhihao Wen and Sheng Liang and Yaxiong Wu and Yongyue Zhang and Yong Liu},
  title = {{Effective and Efficient Schema-aware Information Extraction Using On-Device Large Language Models}},
  year = {2025},
  eprint = {2505.14992},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.14992},
}
Figure