RoLLMRec: نظام توصية قوي قائم على LLM للدفاع ضد هجمات الشيلينغ وإدخال الأوامر
RoLLMRec: a robust LLM-based recommender system for defending against shilling and prompt injection attacks

شارك:
المجلة: Frontiers in Computer Science، المجلد: 8
DOI: https://doi.org/10.3389/fcomp.2026.1735253
تاريخ النشر: 2026-03-12
المؤلف: Sarama Shehmir وآخرون
الموضوع الرئيسي: الصلابة ضد الهجمات في تعلم الآلة

نظرة عامة

تقدم ورقة البحث RoLLMRec، إطار عمل معماري جديد مصمم لتعزيز قوة أنظمة التوصية المعتمدة على نماذج اللغة الكبيرة (LLM) ضد مختلف الثغرات، بما في ذلك حقن الطلب والتسمم الدلالي. يدمج RoLLMRec خمسة مكونات أساسية: حماية الطلب وتصفية المدخلات، التوليد المعزز بالاسترجاع، ترميز LLM متعدد الوسائط، تقييم موثوق، وحلقات تغذية راجعة تكيفية. تظهر التقييمات على مجموعات البيانات المرجعية مثل Yelp وMovieLens وAmazon Books أن RoLLMRec يتفوق على النماذج الرائدة مثل BERT4Rec وRecVAE، محققًا تحسينات في معدل المكاسب التراكمية المخصومة المنسوبة (NDCG@10) ومعدل الضرب (HR@10) تصل إلى 6% و5% على التوالي. ومن الجدير بالذكر أنه تحت هجوم حقن الطلب بنسبة 10%، يحافظ RoLLMRec على معدل ضرب موثوق (RHR@10) فوق 0.63 ومؤشر حساسية الاضطراب (PSI) أقل من 0.135، مما يدل على مرونة كبيرة.

تخلص الورقة إلى أن RoLLMRec يعزز بشكل فعال المرونة ضد الهجمات العدائية مع تحمل الحد الأدنى من الأعباء الحاسوبية. تساهم كل طبقة دفاع، وخاصة حماية الطلب والتحقق الدلالي، بشكل كبير في القوة العامة. ومع ذلك، فإن التنفيذ الحالي محدود بمدخلات النص والبيانات الوصفية، حيث تم تحديد التكامل متعدد الوسائط واختبار القوة في الوقت الحقيقي كمجالات للعمل المستقبلي. يقترح المؤلفون توسيع RoLLMRec ليشمل ميزات متعددة الوسائط، وتقييم أدائه في بيئات الوقت الحقيقي، وتكييفه للسياقات الفيدرالية ومتعددة اللغات. تهدف هذه التطورات إلى تأسيس RoLLMRec كهيكل أساسي لتطوير أنظمة توصية قائمة على LLM آمنة وقابلة للتفسير وموثوقة.

مقدمة

تناقش مقدمة ورقة البحث الدور الحاسم لأنظمة التوصية (RS) في الاقتصاد الرقمي، مع تسليط الضوء على تطبيقاتها عبر قطاعات مختلفة مثل التجارة الإلكترونية، وخدمات البث، والتعليم عبر الإنترنت، والرعاية الصحية. تعزز هذه الأنظمة رضا المستخدمين وتفاعلهم من خلال تصفية كميات هائلة من المعلومات لتقديم محتوى مخصص. تم تحسين طرق RS التقليدية، بما في ذلك التصفية التعاونية (CF) والتصفية المعتمدة على المحتوى (CBF)، من خلال تقنيات التعلم العميق، التي تمكن من نمذجة تفاعلات المستخدمين والعناصر المعقدة ودمج مصادر البيانات المتنوعة. تشمل التقدمات الملحوظة استخدام النماذج العصبية وهياكل التحويل، التي حسنت بشكل كبير دقة التوصية.

ومع ذلك، تتناول الورقة أيضًا الثغرات التي أدخلتها هذه الطرق المتقدمة، خاصة في المجالات الحساسة مثل الرعاية الصحية والمالية، حيث يمكن أن تؤثر الهجمات العدائية على نزاهة التوصيات. ألهم ظهور نماذج اللغة الكبيرة (LLMs) نهجًا جديدًا لأنظمة التوصية، يسمى أنظمة التوصية المعتمدة على LLM (LLM4Rec)، التي تستفيد من قدرات LLM لتحسين تفاعل المستخدم وفهم المحتوى. على الرغم من إمكاناتها، تحمل LLMs أيضًا مخاطر مثل الهلوسة وزيادة التحيز. للتخفيف من هذه التحديات، يقترح المؤلفون RoLLMRec، إطار عمل قوي مصمم لتعزيز الأمان والموثوقية لـ LLM4Rec من خلال تصفية المدخلات، والترميز متعدد الوسائط، وآليات التغذية الراجعة التكيفية. يتم التحقق من فعالية الإطار من خلال مجموعات بيانات متنوعة، مما يظهر أداءً متفوقًا في كل من الدقة والقوة مقارنة بالنماذج الحالية.

الطرق

في هذا القسم، يوضح المؤلفون إعداد التجربة المستخدم لتقييم قوة وفعالية نموذج RoLLMRec. يتم إجراء التقييم على ثلاثة معايير عامة بارزة: Yelp وMovieLens وAmazon Books. تخضع كل مجموعة بيانات لسلسلة من خطوات المعالجة المسبقة، بما في ذلك التصفية، وإزالة التكرارات، والتقسيم الطبقي، مع تقسيم نموذجي بنسبة 80% للتدريب، و10% للتحقق، و10% للاختبار، أو بدلاً من ذلك، نهج الاحتفاظ الزمني.

بالإضافة إلى ذلك، يصف المؤلفون بروتوكولات الهجوم العدائي، والنماذج الأساسية، وتكوينات التدريب، ومقاييس التقييم المستخدمة في تقييماتهم. كما يبرزون بناء مطالبات اللغة الطبيعية، التي تلعب دورًا حاسمًا في عمل وحدة الاسترجاع المعزز (RAG)، مما يعزز أداء النموذج في سياق مجموعات البيانات المحددة.

النتائج

يوفر قسم النتائج تقييمًا تجريبيًا مفصلًا لهندسة RoLLMRec، مما يوضح فعاليتها عبر ظروف مختلفة – نظيفة، عدائية، وصفرية – باستخدام ثلاث مجموعات بيانات من العالم الحقيقي: MovieLens وAmazon Books وYelp. تشمل مقاييس الأداء المستخدمة HR@10 وNDCG@10 وRHR@10 وPSI. يتجاوز RoLLMRec باستمرار المعايير الرائدة مثل BERT4Rec وRecVAE وLightGCN، محققًا دقة تصنيف متفوقة في السيناريوهات النظيفة، ويظهر حساسية منخفضة ومرونة عالية تحت الهجمات العدائية، ويحافظ على النية الدلالية في المهام عبر المجالات على الرغم من التباينات الكبيرة في المفردات والبنية.

تتم التحقق من مكونات الهندسة، بما في ذلك حماية الطلب وتصحيح التغذية الراجعة، من خلال دراسات استئصال مستهدفة. على الرغم من أن RoLLMRec أكثر استهلاكًا للموارد مقارنة بالبدائل الخفيفة، إلا أن زمن استجابته يبقى مناسبًا للنشر. بالإضافة إلى ذلك، تؤكد التقييمات البشرية على فعاليته في تقديم توصيات ذات صلة، وسلسة، ومتسقة، مما يبرز إمكاناته للتطبيقات الموثوقة في أنظمة التوصية المحادثة والشخصية.

المناقشة

تسلط قسم المناقشة في ورقة البحث الضوء على تطور أنظمة التوصية (RS) من التصفية التعاونية التقليدية (CF) والتصفية المعتمدة على المحتوى (CBF) إلى المنهجيات المتقدمة التي تتضمن التعلم العميق ونماذج اللغة الكبيرة (LLMs). واجهت الأساليب المبكرة تحديات مثل مشاكل بدء التشغيل البارد وقدرات التعميم المحدودة. أدت إدخال الهياكل العصبية والنماذج المعتمدة على التحويل، مثل BERT4Rec وSASRec، إلى تحسين كبير في القدرة على التقاط الأنماط المعقدة والعلاقات السياقية. ومع ذلك، أدت هذه التقدمات أيضًا إلى إدخال ثغرات في التلاعب العدائي، بما في ذلك حقن الطلب والتسمم الدلالي، التي تشكل مخاطر في المجالات الحساسة مثل الرعاية الصحية والمالية.

لمعالجة هذه التحديات، تقترح الورقة RoLLMRec، إطار عمل جديد يدمج التوليد المعزز بالاسترجاع وآليات الدفاع لتعزيز القوة وقابلية التفسير في أنظمة التوصية المعتمدة على LLM. يستخدم RoLLMRec هيكلًا معياريًا يتضمن حماية الطلب، والتحقق العدائي، وآلية تصنيف موثوق، بهدف التخفيف من الهلوسة وضمان توصيات مستقرة. يتم تقييم الإطار مقابل النماذج الأساسية، مما يظهر أداءً متفوقًا في كل من الظروف النظيفة والعدائية، مما يؤكد إمكاناته في تقديم توصيات موثوقة ومبنية على السياق مع معالجة الثغرات الكامنة في LLMs. تؤكد الدراسة على الحاجة إلى البحث المستمر في القوة ومقاومة الهجمات العدائية في المشهد المتطور بسرعة لأنظمة التوصية.

القيود

يسلط قسم القيود في إطار RoLLMRec الضوء على عدة اعتبارات أخلاقية وتحديات كامنة مرتبطة بتنفيذه. بينما يهدف RoLLMRec إلى تعزيز موثوقية أنظمة التوصية المعتمدة على LLM من خلال استخدام تقنيات مثل حماية الطلب، وتأصيل الاسترجاع، والتقييم الموثوق، فإنه يعترف بإمكانية التلاعب العدائي، والهلوسة، والانحراف الدلالي لا تزال تؤثر على النتائج. يعتمد الإطار على مجموعات بيانات مرجعية متاحة للجمهور ومجهولة الهوية، مما يقلل من مخاطر الخصوصية من خلال تجنب استخدام البيانات الشخصية الحساسة.

ومع ذلك، لا تزال هناك قيود كبيرة: قد يستمر RoLLMRec في perpetuating أو تفاقم التحيزات الموجودة في بيانات التدريب أو نماذج اللغة الأساسية. يثير هذا مخاوف بشأن العدالة والتخفيف من التحيز، مما يبرز الحاجة إلى البحث المستمر في هذه المجالات. يجب أن تركز الأعمال المستقبلية على تطوير استراتيجيات للتعلم مع الحفاظ على الخصوصية ومعالجة هذه التحيزات، خاصة في سياق التطبيقات الواقعية والبيئات ذات المخاطر العالية.

Journal: Frontiers in Computer Science, Volume: 8
DOI: https://doi.org/10.3389/fcomp.2026.1735253
Publication Date: 2026-03-12
Author(s): Sarama Shehmir et al.
Primary Topic: Adversarial Robustness in Machine Learning

Overview

The research paper presents RoLLMRec, a novel architectural framework designed to enhance the robustness of Large Language Model (LLM)-based recommender systems against various vulnerabilities, including prompt injection and semantic poisoning. RoLLMRec integrates five core components: prompt shielding and input filtering, retrieval-augmented generation, multimodal LLM encoding, trust-aware scoring, and adaptive feedback loops. Evaluations on benchmark datasets such as Yelp, MovieLens, and Amazon Books demonstrate that RoLLMRec outperforms state-of-the-art (SOTA) models like BERT4Rec and RecVAE, achieving improvements in Normalized Discounted Cumulative Gain (NDCG@10) and Hit Rate (HR@10) by up to 6% and 5%, respectively. Notably, under a 10% prompt-injection attack, RoLLMRec maintains a Robust Hit Rate (RHR@10) above 0.63 and a Perturbation Sensitivity Index (PSI) below 0.135, indicating significant resilience.

The paper concludes that RoLLMRec effectively enhances resilience against adversarial attacks while incurring minimal computational overhead. Each defense layer, particularly prompt shielding and semantic validation, contributes significantly to overall robustness. However, the current implementation is limited to text and metadata inputs, with multimodal integration and real-time robustness testing identified as areas for future work. The authors propose extending RoLLMRec to incorporate multimodal features, evaluate its performance in real-time environments, and adapt it for federated and multilingual contexts. These advancements aim to establish RoLLMRec as a foundational architecture for developing secure, interpretable, and trustworthy LLM-based recommender systems.

Introduction

The introduction of the research paper discusses the critical role of recommender systems (RS) in the digital economy, highlighting their applications across various sectors such as e-commerce, streaming services, online education, and healthcare. These systems enhance user satisfaction and engagement by filtering vast amounts of information to deliver personalized content. Traditional RS methods, including collaborative filtering (CF) and content-based filtering (CBF), have been improved by deep learning techniques, which enable the modeling of complex user-item interactions and the integration of diverse data sources. Notable advancements include the use of neural models and Transformer architectures, which have significantly enhanced recommendation accuracy.

However, the paper also addresses the vulnerabilities introduced by these advanced methods, particularly in sensitive domains like healthcare and finance, where adversarial attacks can compromise the integrity of recommendations. The emergence of large language models (LLMs) has inspired a new approach to RS, termed LLM-based Recommender Systems (LLM4Rec), which leverages LLM capabilities for improved user interaction and content comprehension. Despite their potential, LLMs also carry risks such as hallucination and bias amplification. To mitigate these challenges, the authors propose RoLLMRec, a robust framework designed to enhance the security and reliability of LLM4Rec through input filtering, multimodal encoding, and adaptive feedback mechanisms. The framework’s effectiveness is validated through various datasets, demonstrating superior performance in both accuracy and robustness compared to existing models.

Methods

In this section, the authors detail the experimental setup employed to evaluate the robustness and effectiveness of the RoLLMRec model. The evaluation is conducted on three prominent public benchmarks: Yelp, MovieLens, and Amazon Books. Each dataset undergoes a series of preprocessing steps, including filtering, deduplication, and stratified splitting, with a typical division of 80% for training, 10% for validation, and 10% for testing, or alternatively, a temporal holdout approach.

Additionally, the authors describe the adversarial attack protocols, baseline models, training configurations, and evaluation metrics utilized in their assessments. They also highlight the construction of natural language prompts, which play a crucial role in the functioning of the RAG (Retrieval-Augmented Generation) retriever module, thereby enhancing the model’s performance in the context of the specified datasets.

Results

The results section provides a detailed empirical evaluation of the RoLLMRec architecture, demonstrating its effectiveness across various conditions—clean, adversarial, and zero-shot—using three real-world datasets: MovieLens, Amazon Books, and Yelp. The performance metrics employed include HR@10, NDCG@10, RHR@10, and PSI. RoLLMRec consistently surpasses leading baselines such as BERT4Rec, RecVAE, and LightGCN, achieving superior ranking accuracy in clean scenarios, exhibiting low sensitivity and high robustness under adversarial attacks, and maintaining semantic intent in cross-domain tasks despite significant vocabulary and structural variations.

The architecture’s components, including prompt shielding and feedback correction, are validated through targeted ablation studies. Although RoLLMRec is more resource-intensive compared to lightweight alternatives, its response time remains suitable for deployment. Additionally, human evaluations affirm its effectiveness in providing relevant, fluent, and coherent recommendations, underscoring its potential for trustworthy applications in conversational and personalized recommendation systems.

Discussion

The discussion section of the research paper highlights the evolution of recommender systems (RS) from traditional collaborative filtering (CF) and content-based filtering (CBF) to advanced methodologies incorporating deep learning and large language models (LLMs). Early approaches faced challenges such as cold-start problems and limited generalization capabilities. The introduction of neural architectures and transformer-based models, such as BERT4Rec and SASRec, significantly enhanced the ability to capture complex patterns and contextual relationships. However, these advancements also introduced vulnerabilities to adversarial manipulation, including prompt injection and semantic poisoning, which pose risks in sensitive domains like healthcare and finance.

To address these challenges, the paper proposes RoLLMRec, a novel framework that integrates retrieval-augmented generation and defense mechanisms to enhance robustness and interpretability in LLM-based recommender systems. RoLLMRec employs a modular architecture that includes prompt shielding, adversarial validation, and a trust-aware ranking mechanism, aiming to mitigate hallucination and ensure stable recommendations. The framework is evaluated against baseline models, demonstrating superior performance in both clean and adversarial conditions, thereby affirming its potential to provide reliable and contextually grounded recommendations while addressing the inherent vulnerabilities of LLMs. The study emphasizes the need for ongoing research into robustness and adversarial resistance in the rapidly evolving landscape of recommender systems.

Limitations

The section on limitations of the RoLLMRec framework highlights several ethical considerations and inherent challenges associated with its implementation. While RoLLMRec aims to enhance the reliability of LLM-based recommender systems by employing techniques such as prompt shielding, retrieval grounding, and trust-aware scoring, it acknowledges the potential for adversarial manipulation, hallucination, and semantic drift to still influence outcomes. The framework is built upon publicly available and anonymized benchmark datasets, which mitigates privacy risks by avoiding the use of sensitive personal data.

However, a significant limitation remains: RoLLMRec may still perpetuate or exacerbate biases that are present in the training data or the underlying language models. This raises concerns regarding fairness and bias mitigation, emphasizing the need for ongoing research in these areas. Future work should focus on developing strategies for privacy-preserving learning and addressing these biases, particularly in the context of real-world applications and high-stakes environments.