How Vulnerable Are Edge LLMs?

Ao Ding, Hongzong Li, Zi Liang, Zhanpeng Shi, Shuxin Zhuang, Shiqin Tang, Rong Feng, Ping LuarXiv 2026

TL;DR

As large language models (LLMs) migrate to consumer devices via aggressive compression, many assume that low-bit quantization acts as a natural defense against intellectual property theft. This paper debunks that assumption, demonstrating that quantization noise does not erase underlying semantic knowledge. By introducing CLIQ (Clustered Instruction Querying), the authors show that an attacker can efficiently extract high-fidelity behavioral knowledge from edge-deployed models even under strict, real-world query budgets.

What Problem Does This Paper Address?

The deployment landscape for LLMs is rapidly shifting toward the edge, powering features like Apple Intelligence, Google Gemini Nano, and Samsung Galaxy AI directly on personal devices. To fit within the strict memory and energy constraints of mobile hardware, these models undergo aggressive low-bit quantization (typically down to INT8 or INT4).

While quantization makes edge deployment viable, it also introduces discretization noise and reduces output precision. Historically, researchers assumed this noise might serve as a security boundary, mitigating black-box model extraction attacks. Furthermore, edge environments naturally restrict attackers to a very limited query budget due to device latency, battery consumption, and interface rate limits.

This paper tackles a critical security question: Can an adversary still steal the behavioral knowledge of a heavily quantized edge LLM under a highly constrained query budget?

Figure 2: Threat framework for query-based knowledge extraction from quantized edge-deployed LLMs. Traditional extraction settings (top) assume full-precision teacher models in high-performance server environments, where abundant compute allows large-scale query probing. In contrast, edge-deployed LLMs (bottom) operate under quantization (e.g., INT4/INT8) and strict resource constraints, resulting in limited query budgets and noisy responses. Nevertheless, carefully structured queries can still recover substantial behavioral knowledge from the quantized model.

Methods

The authors demonstrate that naive, random querying is highly inefficient because natural instruction datasets contain massive semantic redundancy. To exploit edge models efficiently, they propose CLIQ (Clustered Instruction Querying), a structured three-stage framework:

  1. Semantic Query Partitioning: An initial pool of candidate instructions is mapped into a semantic embedding space using a sentence encoder (Sentence-BERT) and grouped into $K$ distinct clusters via unsupervised clustering (MiniBatchKMeans). Small, unstable clusters are filtered out.
  2. Cluster-Aware Query Generation: Instead of using original queries directly, CLIQ uses a strong LLM to generate a small set of representative, diverse, and complexity-controlled instructions conditioned on each cluster's prototype.
  3. Behavior Reconstruction: The generated queries are sent to the quantized edge model (acting as the teacher). The resulting query-response pairs are used to train a compact student model via imitation loss.
Figure 1: Overview of the proposed framework for query-based knowledge extraction from edge-deployed quantized LLMs. Previous approaches (blue) rely on unstructured queries, which often lead to redundant probing and noisy responses, resulting in low-fidelity reconstruction of model behavior. CLIQ (red) performs structured query construction to produce more informative responses under a limited query budget, enabling high-fidelity student reconstruction of the edge model behavior.

Datasets

The initial query pools and evaluations were constructed using standard instruction-following benchmarks:

  • Dolly
  • Alpaca

The framework was evaluated by extracting knowledge from the Qwen model family (specifically Qwen2.5-7B as the teacher, and edge-oriented models up to 4B parameters as students).

Key Insights and Ideas

  • Quantization is Not a Defense: Low-bit quantization shifts model outputs into a noisier space, but it leaves the core semantic boundaries intact. The underlying behavioral knowledge remains highly extractable.
  • Query Design Trumps Precision: The bottleneck in edge model extraction isn't the noise introduced by INT4 or INT8 compression; it is query redundancy. Naive random sampling repeatedly probes the same dense capability regions, wasting the limited query budget.
  • Uniform Coverage Mitigates Capacity Limits: Quantized student models have reduced effective capacity. CLIQ succeeds because its structured, near-uniform allocation across the semantic space provides high-quality, non-redundant supervision signals that match the capacity limits of smaller student models.

Key Results

The authors evaluated CLIQ against Original Queries (OQ) under a fixed budget of 500 to 1000 queries:

  • Superior Fidelity: On an INT8-quantized 1.7B student model, distilling knowledge using CLIQ achieved a BERT-F1 score of 84.35%, significantly outperforming the 77.97% achieved by original queries. It also showed marked improvements in BLEU and ROUGE-L scores.
  • Resilience to Aggressive Quantization: Even when extracting from an ultra-compressed INT4 teacher, CLIQ maintained high efficiency, achieving a BERT-F1 score of 82.92% compared to 80.03% for OQ.
  • High Sample Efficiency: As shown in the training dynamics, CLIQ-driven student models achieve rapid performance gains within the first 200–300 steps before saturating, whereas models trained on original queries exhibit flat learning trajectories.
Figure 3: Effect of training steps under a fixed query budget (500 queries) across three student models. We report BERT-F1, BLEU, and ROUGE-L, and include the 0-step base model as initialization. CLIQ (ours) consistently outperforms OQ and exhibits diminishing returns after ∼200–300 steps.

Limitations and Future Work

While highly effective, the authors note several boundaries to their current approach:

  • Extremely Low-Budget Regimes: CLIQ requires a moderate budget (100–1000 queries). If the budget is restricted to fewer than 100 queries, performance drops sharply across all methods due to insufficient interaction.
  • Dependence on the Initial Pool: CLIQ optimizes coverage based on an initial query dataset. If certain capability regions are entirely missing from the starting pool, they will remain unexplored.
  • Narrow Evaluation Scope: The study focuses primarily on standard instruction-following benchmarks. How structured querying translates to more complex edge applications—such as tool-augmented agents or models with strict safety filters—remains an open question for future research.

Summary updated

BibTeX
@misc{ding2026how,
  author = {Ao Ding and Hongzong Li and Zi Liang and Zhanpeng Shi and Shuxin Zhuang and Shiqin Tang and Rong Feng and Ping Lu},
  title = {{How Vulnerable Are Edge LLMs?}},
  year = {2026},
  eprint = {2603.23822},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.23822},
}
Figure