اختراق نماذج اللغة البصرية عبر التحفيز العدائي ثنائي الوضع Jailbreak Vision Language Models via Bi-Modal Adversarial Prompt

شارك:
المجلة: IEEE Transactions on Information Forensics and Security، المجلد: 20
DOI: https://doi.org/10.1109/tifs.2025.3583249
تاريخ النشر: 2025-01-01
المؤلف: Zonghao Ying وآخرون
الموضوع الرئيسي: الصلابة ضد الهجمات في تعلم الآلة

نظرة عامة

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

تشير التقييمات الشاملة عبر مجموعات بيانات مختلفة وLVLMs إلى أن BAP يحسن بشكل كبير معدلات نجاح الهجوم بمعدل 29.03% مقارنة بالطرق الحالية. يستكشف البحث أيضًا تداعيات هذه الهجمات على LVLMs التجارية ذات الصندوق الأسود، مثل Gemini وChatGLM، مع الاعتراف بالاعتبارات الأخلاقية والمخاطر المحتملة المرتبطة بتسهيل عمليات كسر الحماية. ستركز الأعمال المستقبلية على تطوير تقنيات تحسين التحفيز الأكثر كفاءة واستكشاف طرق خالية من التدرجات لبناء تحفيزات بصرية عدائية، مما يعالج القيود الحالية ويعزز قوة تدابير أمان LVLM.

مقدمة

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

للتغلب على هذه القيود، يقدم البحث هجوم التحفيز العدائي ثنائي الوضع (BAP)، وهو إطار جديد يقوم بتحسين كل من التحفيزات البصرية والنصية في وقت واحد. يستخدم BAP اضطرابات عدائية عالمية في المجال البصري ويستخدم عملية تفكير متسلسل (CoT) لتحسين التحفيزات النصية لتوليد محتوى ضار. يوضح المؤلفون فعالية BAP من خلال تجارب شاملة على نماذج LVLM مفتوحة المصدر الشهيرة، محققين زيادة كبيرة في معدلات نجاح الهجوم واستهداف النماذج التجارية بنجاح. تشمل المساهمات الرئيسية للبحث تطوير استراتيجية هجوم ثنائية الوضع وإظهار قابليتها للتطبيق في تقييم التحيز والصلابة في LVLMs.

طرق

في هذه الدراسة، نحقق في أداء ثلاثة نماذج لغة بصرية كبيرة مفتوحة المصدر (LVLMs): LLaVA (LLaVA-V1.5-7B)، MiniGPT-4 (Vicuna 7B)، وInstructBLIP (Vicuna 7B)، باستخدام أوزانها الأصلية. بالإضافة إلى ذلك، نقيم عدة نماذج LVLMs تجارية ذات صندوق أسود، بما في ذلك Gemini وChat-GLM وQwen وERNIE Bot. يتم إجراء التقييم باستخدام مجموعتي بيانات: SafetyBench، التي تقيم أمان النموذج عبر 13 سيناريو محظور، وAdvBench، التي تشمل 521 سلوكًا ضارًا ذات صلة بهجمات كسر الحماية على LLM. قمنا بدمج عناصر AdvBench في SafetyBench لتبسيط إطارنا التجريبي.

المقياس الأساسي المستخدم في التقييم هو معدل نجاح الهجوم (ASR)، الذي يقيس احتمال أن يقوم نموذج \( F_\theta \) بتوليد استجابة ضارة \( y^*_t \). تتماشى منهجيتنا مع الممارسات المعمول بها في هذا المجال، حيث تتضمن تقييمات تلقائية وأخرى يدوية. تستخدم التقييمات التلقائية دالة \( J(\cdot) \)، بينما تتضمن التقييمات اليدوية ثلاثة متطوعين يتحققون من استجابات النموذج بناءً فقط على الطلبات الضارة وسياق السيناريو، مما يضمن الموضوعية. تم إجراء التجارب على مجموعة NVIDIA A800، مع تعيين معلمات محددة لتحسين النص، بما في ذلك حد أقصى من خمس تكرارات لتوليد تحفيزات عدائية صالحة. تشير قيم ASR الأعلى إلى هجمات أكثر فعالية ضد LVLMs.

نقاش

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

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

Journal: IEEE Transactions on Information Forensics and Security, Volume: 20
DOI: https://doi.org/10.1109/tifs.2025.3583249
Publication Date: 2025-01-01
Author(s): Zonghao Ying et al.
Primary Topic: Adversarial Robustness in Machine Learning

Overview

In the context of large vision language models (LVLMs), this paper presents the Bi-Modal Adversarial Prompt Attack (BAP), a novel approach to jailbreak attacks that optimizes both textual and visual prompts in tandem. Traditional jailbreak methods have primarily targeted visual inputs, which limits their effectiveness against models that integrate visual and textual features. The BAP method involves embedding universally adversarial perturbations into images, guided by a few-shot query-agnostic corpus, to elicit positive responses from LVLMs to harmful queries. Additionally, textual prompts are refined through a large language model using chain-of-thought reasoning, enhancing the attack’s specificity and success rate.

Extensive evaluations across various datasets and LVLMs indicate that BAP significantly improves attack success rates by an average of 29.03% compared to existing methods. The research also explores the implications of these attacks on black-box commercial LVLMs, such as Gemini and ChatGLM, while acknowledging the ethical considerations and potential risks associated with facilitating jailbreaks. Future work will focus on developing more efficient prompt optimization techniques and exploring gradient-free methods for constructing visual adversarial prompts, thereby addressing current limitations and enhancing the robustness of LVLM security measures.

Introduction

The introduction of this research paper highlights the growing interest in large vision language models (LVLMs), which integrate visual and textual information to perform tasks such as image captioning and visual question answering. Despite their promising capabilities, LVLMs often produce outputs that diverge from intended goals, leading to untruthful or harmful content. To address these issues, jailbreak attacks have emerged as a strategy to test model alignment by circumventing safety measures. Traditional attacks have primarily focused on manipulating visual inputs, which limits their effectiveness against models that utilize both visual and textual features.

To overcome these limitations, the paper introduces the Bi-Modal Adversarial Prompt Attack (BAP), a novel framework that optimizes both visual and textual prompts simultaneously. BAP employs universal adversarial perturbations in the visual domain and utilizes a Chain-of-Thought (CoT) reasoning process to refine textual prompts for generating harmful content. The authors demonstrate the effectiveness of BAP through extensive experiments on popular open-source LVLMs, achieving a significant increase in attack success rates and successfully targeting commercial models. The main contributions of the paper include the development of a dual-modality attack strategy and the demonstration of its applicability in evaluating the bias and robustness of LVLMs.

Methods

In this study, we investigate the performance of three open-source large vision-language models (LVLMs): LLaVA (LLaVA-V1.5-7B), MiniGPT-4 (Vicuna 7B), and InstructBLIP (Vicuna 7B), utilizing their original weights. Additionally, we assess several commercial black-box LVLMs, including Gemini, Chat-GLM, Qwen, and ERNIE Bot. The evaluation is conducted using two datasets: SafetyBench, which assesses model safety across 13 prohibited scenarios, and AdvBench, which includes 521 harmful behaviors relevant to LLM jailbreak attacks. We integrated AdvBench items into SafetyBench to streamline our experimental framework.

The primary evaluation metric employed is the Attack Success Rate (ASR), which measures the likelihood that a model \( F_\theta \) generates a harmful response \( y^*_t \). Our methodology aligns with established practices in the field, incorporating both automatic and manual evaluations. Automatic assessments utilize a function \( J(\cdot) \), while manual evaluations involve three volunteers who verify model responses based solely on harmful requests and scenario context, ensuring objectivity. The experiments were conducted on an NVIDIA A800 Cluster, with specific parameters set for text optimization, including a maximum of five iterations for generating valid adversarial prompts. Higher ASR values indicate more effective attacks against the LVLMs.

Discussion

The discussion section of the paper addresses the advancements and limitations of Large Vision Language Models (LVLMs) in the context of jailbreak attacks. It begins by outlining the architecture of LVLMs, which integrates visual and textual modules to process multimodal inputs. The authors highlight the vulnerability of these models to jailbreak attacks, where benign queries are manipulated to elicit harmful responses. Existing methods primarily focus on perturbing visual prompts, which the authors argue is insufficient due to the simultaneous fusion of visual and textual features in LVLMs. To enhance attack efficacy, they propose a Bi-Modal Adversarial Prompt (BAP) framework that optimally perturbs both visual and textual inputs, thereby exploiting the interactive dynamics of the two modalities.

The BAP framework consists of two key components: query-agnostic image perturbation and intent-specific textual optimization. The first component generates a visual adversarial prompt that encourages positive responses from the LVLM, regardless of the harmful intent of the accompanying textual prompt. The second component optimizes the textual prompt to specifically induce harmful content. Experimental results demonstrate that BAP significantly outperforms existing methods in both query-dependent and query-agnostic settings, achieving higher attack success rates (ASRs) across various scenarios. The authors conclude that their approach not only enhances the effectiveness of jailbreak attacks but also serves as a tool for evaluating biases and adversarial robustness in LVLMs, revealing critical insights into the safety and ethical implications of these models.