EAGER: Edge-Aligned LLM Defense for Robust, Efficient, and Accurate Cybersecurity Question Answering

Onat Güngör, Roshan Sood, Jiasheng Zhou, Tajana RosingarXiv 2025 · DOI

Introduction

Large Language Models (LLMs) are increasingly being integrated into cybersecurity workflows to automate threat detection and response. However, deploying these models in sensitive "edge" environments—such as local corporate offices or critical infrastructure—presents a significant challenge. These environments require models that are small enough to run on local hardware without sacrificing security or accuracy.

EAGER is a novel framework designed to bridge this gap. By co-designing 4-bit quantization with a specialized preference-alignment technique, EAGER achieves a 7.3x reduction in attack success rates and a 55% boost in accuracy compared to current state-of-the-art defenses, all while maintaining a footprint small enough for edge devices.

The Efficiency and Robustness Gap

Deploying LLMs at the edge typically involves two major hurdles:

  1. The Efficiency Gap: LLMs are massive. To fit them on edge hardware, researchers use quantization (e.g., shrinking 16-bit weights to 4-bit). While this saves memory, it often degrades the model's accuracy.
  2. The Robustness Gap: Quantized models are surprisingly fragile and highly susceptible to prompt injection attacks. In these attacks, malicious users embed hidden instructions to trick the model into revealing sensitive information or behaving dangerously.

Existing defenses often trade one for the other: a secure model may be too slow for the edge, while an efficient model remains easily hackable. EAGER aims to optimize efficiency, robustness, and accuracy simultaneously.

Methodology: Synergistic Co-Design

The core innovation of EAGER lies in the synergistic integration of two techniques: Quantized Low-Rank Adaptation (QLoRA) and Direct Preference Optimization (DPO).

The EAGER framework integrates QLoRA and DPO through a self-labeling pipeline to produce a robust, edge-aligned model.

As shown in the architecture above, EAGER utilizes a Self-Labeling Pipeline where a "teacher" model (Mistral-7B) automatically generates pairs of safe and unsafe responses. This creates a specialized cybersecurity preference dataset without the high cost of manual expert labeling. By injecting DPO signals directly into the 4-bit QLoRA adapters, the researchers created a model that remains secure even under extreme compression. This process helps regularize the model, sharpening the decision boundaries between benign queries and malicious injections.

Key Results and Performance

The authors evaluated EAGER across several cybersecurity benchmarks, including CyberMetric, CyberBench, SecQA, and CTIBench.

EAGER consistently outperforms other defenses in robustness (measured as 1 - Attack Success Rate) across multiple cybersecurity benchmarks.

Key findings include:

  • Superior Security: EAGER reduced the Adversarial Attack Success Rate (ASR) by up to 7.3x compared to other defenses like SecAlign or LlamaGuard.
  • Enhanced Accuracy: The framework improved cybersecurity question-answering accuracy by up to 55% over standard quantized baselines.
  • Edge Viability: The model requires only ~4 GB of storage, making it viable for local deployment on hardware like the NVIDIA Jetson Orin, where it also achieved the lowest response latency among tested defenses.
  • Generalization: Despite its specialized tuning, EAGER maintained high general intelligence, slightly outperforming the base LLaMA-3.1 model on the MMLU benchmark.

Conclusion and Future Work

EAGER demonstrates that quantization and preference alignment are not just compatible but synergistic. By using a small, carefully curated set of domain-specific preference pairs, the framework significantly hardens models against prompt injection. Future research will focus on addressing indirect injections—where models are tricked by third-party website content—and testing the framework on even more resource-constrained hardware, such as RISC-V based controllers.

Summary updated

BibTeX
@misc{gungor2025eager,
  author = {Onat Güngör and Roshan Sood and Jiasheng Zhou and Tajana Rosing},
  title = {{EAGER: Edge-Aligned LLM Defense for Robust, Efficient, and Accurate Cybersecurity Question Answering}},
  year = {2025},
  eprint = {2511.19523},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.19523},
}
Figure