GuardAgent: A Memory-Augmented Agentic Framework for Adaptive Detection of Adversarial Promotions in LLM-Based Recommendation was submitted to arXiv on 2026-11-17 by Shiyi Yang, Xinshu Li, Chen Wang, Xiwei Xu, Liming Zhu, Lina Yao. Read it on arXiv or as a PDF.
Key findings
- In ablation testing on the Amazon dataset, the complete GuardAgent framework attained an accuracy of 0.93, a recall of 0.88, a false positive rate of 0.03, a precision of 0.97, and an F1 score of 0.92.
- On the Yelp dataset, the full GuardAgent achieved an accuracy of 0.84, a recall of 0.68, a false positive rate of 0.01, a precision of 0.99, and an F1 score of 0.81.
- Removing the reflection component dropped Amazon dataset F1 from 0.92 to 0.79 and recall from 0.88 to 0.67, showing the impact of policy updates derived from error reflection.
- When tested against previously unseen agentic recommender attacks such as DrunkAgent across both benchmark datasets, GuardAgent achieved a 100% detection rate.
The main takeaway. Using a continuous cognitive loop with reflection and dynamic memory allows detectors to identify novel promotional prompt manipulations that static filters miss.
The abstract, as written
In traditional recommender systems (RSs), textual information typically serves as auxiliary signals for representation learning. In contrast, in LLM-based RSs, textual information becomes the primary medium for recommendation generation through semantic understanding and reasoning. This shift fundamentally changes the attack surface, making promotion-driven manipulations more feasible, effective, and harder to detect. However, effectively detecting such attacks remains largely unexplored. To fill this gap, we present the first systematic study on detecting promotion-driven attacks against LLM-based RSs, aiming to safeguard next-generation recommendation platforms. Specifically, we propose GuardAgent, a novel LLM-powered agentic detection framework that operates through a loop of Perception, Action, Reflection and Memory. In contrast to conventional LLM-based detectors that function in a static, one-off, and opaque fashion, GuardAgent continually learns and self-evolves to adapt to unseen threat patterns while generating explainable reasoning traces and outcomes. Extensive experiments on real-world datasets demonstrate that GuardAgent achieves state-of-the-art generalization performance, laying the foundation for robust and trustworthy recommendation in practical settings.
Key terms
- LLM-based RS: A recommender system that relies on large language models and natural language metadata prompts rather than solely interaction matrices to rank items.
- Item Promotion Attack: An adversarial manipulation of product text designed to increase the exposure or recommendation frequency of a specific target item.
- Agentic Loop: A repetitive computational cycle where an agent perceives an input, acts, evaluates feedback, and updates memory to guide future actions.
- Prompt Perturbation: A modification injected directly into textual metadata or system prompts during inference to influence model output generation.
From the paper
The authors summarize how GuardAgent adapts to unfamiliar threat strategies compared to static baselines.
In contrast to conventional LLM-based detectors that function in a static, one-off, and opaque fashion, GuardAgent continually learns and self-evolves to adapt to unseen threat patterns while generating explainable reasoning traces and outcomes.
The evaluation against emerging threats highlights detection performance on unseen attack types.
As shown in Fig. 5 , GuardAgent achieves a 100% detection rate with negligible false positives, significantly outperforming the state-of-the-art and interpretable detectors.
Figures from the paper
Figure 5 demonstrates GuardAgent achieving a 100% detection rate when evaluated against previously unseen evolving attacks across the benchmark datasets.
Figure from the paper, arXiv:2611.22274, by its authors. Caption as written: Figure 5 . The generalization capability of GuardAgent to evolving recommender attacks on real-world datasets.
What the authors say it means
- Language-based recommender platforms expose an attack surface where merchants can alter item metadata at inference time to bias ranking results.
- Detecting promotion-oriented prompt manipulation requires adaptive memory systems because static rule sets fail when adversaries change writing patterns.
- Explicit textual reasoning traces enable platform security teams to audit automated moderation decisions before penalizing seller listings.
What to do with it
- Audit platform item descriptions with iterative memory-assisted reflection modules to detect adversarial promotion claims. Supported by: The full GuardAgent framework achieved 0.97 precision on Amazon and 0.99 precision on Yelp benchmark evaluations.
- Integrate error analysis logs into detection prompts to prevent repeated false negatives against evolving prompt perturbations. Supported by: Removing reflection-based updates reduced detection recall on the Amazon dataset from 0.88 down to 0.67.
- Implement human review safeguards before penalizing flagged merchant accounts to avoid disruptions from false alarms. Supported by: Full GuardAgent registered a false positive rate of 0.03 on Amazon and 0.01 on Yelp in ablation experiments.
Caveat. Evaluations were conducted on offline Amazon and Yelp benchmark datasets against simulated and published attack methods, and live production deployments may reveal higher false positive impacts on legitimate seller metadata.
In short
GuardAgent formulates adversarial promotion detection as a closed-loop agent that learns from past mistakes using textual memory. Across tests on Amazon and Yelp data, it maintained high precision while identifying promotional prompt alterations. The approach provides explainable audit trails for recommender platform moderation.
Written from the paper's own text. Quoted passages are verbatim and the numbers are the authors' own. For the method and full results, read the paper.