Related Experiment Video
Updated: Feb 13, 2026

Usability Evaluation of Augmented Reality: A Neuro-Information-Systems Study
Published on: November 30, 2022
Enhancing adversarial resilience in semantic caching for secure retrieval augmented generation systems
Mohanad Afiffy1, Mohamed Waleed Fakhr2, Fahima A Maghraby3
1College of Engineering and Technology, Arab Academy for Science and Technology, Cairo, Egypt. m.abdelba33713@student.aast.edu.
Abstract:
Large Language Models (LLMs) combined with Retrieval-Augmented Generation (RAG) frameworks greatly improve natural language processing performance, but they incur substantial computational overhead because many similar queries are processed repeatedly. To mitigate this, semantic caching has been introduced to store past responses and reuse them for semantically similar inputs, thereby reducing computation costs. Yet, semantic caching mechanisms that depend only on semantic similarity are vulnerable to adversarial exploitation: carefully engineered malicious queries with minor lexical variations can trigger incorrect cache hits, undermining both the reliability and the security of the system. This paper examines security vulnerabilities in semantic proximity caching systems such as GPTCache, a widely used open-source semantic cache that exemplifies these issues, and introduces a new approach called SAFE-CACHE, which is built to withstand adversarial attacks. SAFE-CACHE adopts a cluster-centroid-based caching strategy that is fundamentally distinct from GPTCache's single-query embedding method. It uses unsupervised clustering of historical query-answer pairs, statistical detection of noisy clusters, bi-encoder-based refinement, and conditional cluster enrichment driven by a fine-tuned lightweight LLM to infer the underlying intent of cached queries. During runtime, incoming queries are compared to cluster centroids instead of individual cached entries, enabling stronger semantic validation and improved resilience against adversarial behavior. Our experimental evaluations demonstrate that SAFE-CACHE dramatically reduces adversarial attack success rates from 52.77% to 14.27% compared to GPTCache, representing up to 72% improvement in adversarial resistance.
More Related Videos
08:17A Semantic Priming Event-related Potential ERP Task to Study Lexico-semantic and Visuo-semantic Processing in Autism Spectrum Disorder
Published on: April 12, 2018
12:22Mindfulness in Motion MIM: An Onsite Mindfulness Based Intervention MBI for Chronically High Stress Work Environments to Increase Resiliency and Work Engagement
Published on: July 1, 2015
Related Concept Videos
Retrieval
Recall involves accessing information without cues, such as during an essay test, where individuals must retrieve facts and concepts from memory unaided. Another example is remembering the name of a colleague...
ER Retrieval Pathway
The ER uses many checkpoints to prevent the entry of incorrectly folded or a resident protein as cargo onto a transport vesicle. These mechanisms...
Self-Evaluation: Self-Enhancement and Self-Verification
Second Order systems II
Bioavailability Enhancement: Drug Solubility Enhancement
First Order Systems
When a first-order system is subjected to a unit-step input, its response is characterized by its transfer function. By applying the Laplace transform of the unit-step input to the transfer function, expanding the...