arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.17787cs.AIcs.CRcs.CV
收藏

基于图像的安全应用中提示工程优化的大多模态模型与微调视觉Transformer的效能评估

Evaluating the Efficacy of Prompt-Engineered Large Multimodal Models Versus Fine-Tuned Vision Transformers in Image-Based Security Applications

Electrical and Computer Engineering(电气与计算机工程)

Fouad Trad, Ali Chehab

AI总结:

该研究对比了提示工程优化的大多模态模型与微调视觉Transformer在两类图像安全任务中的表现,明确了两类模型各自的优劣势,证实微调ViT在精准安全任务中效能更优。

摘要:

大语言模型(LLMs)的成功推动了大多模态模型(LMMs)的同步发展,这类模型已开始变革各类应用场景。这些复杂的多模态模型旨在通过整合文本、图像等多种模态来解读和分析复杂数据,从而为一系列应用开辟了新路径。本文研究了可同时处理图像和文本的、经提示工程优化的LMMs(包括LLaVA、BakLLaVA、Moondream、Gemini-pro-vision和GPT-4o等模型)相较于微调视觉Transformer(ViT)模型在应对关键安全挑战方面的适用性与有效性。我们聚焦于两项不同的安全任务:1)视觉可感知任务:检测简单触发器,例如图像中可被利用来触发模型潜在后门的微小像素变化;2)视觉不可感知任务:通过视觉表示进行恶意软件分类。在视觉可感知任务中,部分LMMs(如Gemini-pro-vision和GPT-4o)经精心的提示工程设计后展现出取得良好性能的潜力,其中GPT-4o达到了最高的准确率和F1值,分别为91.9%和91%。但由于该任务难度较低,微调ViT模型在该任务中表现出完美性能。对于视觉不可感知任务,结果显示两类模型的性能存在显著差异:ViT模型在预测25个恶意软件类别时F1值达97.11%,在预测5个恶意软件家族时F1值达97.61%;而LMMs尽管经过迭代式提示优化,性能仍未达最优。本研究不仅揭示了经提示工程优化的LMMs在网络安全应用中的优势与局限,也强调了微调ViT模型在精准可靠任务中无可匹敌的效能。

英文摘要:

The success of Large Language Models (LLMs) has led to a parallel rise in the development of Large Multimodal Models (LMMs), which have begun to transform a variety of applications. These sophisticated multimodal models are designed to interpret and analyze complex data by integrating multiple modalities such as text and images, thereby opening new avenues for a range of applications. This paper investigates the applicability and effectiveness of prompt-engineered LMMs that process both images and text, including models such as LLaVA, BakLLaVA, Moondream, Gemini-pro-vision, and GPT-4o, compared to fine-tuned Vision Transformer (ViT) models in addressing critical security challenges. We focus on two distinct security tasks: 1) a visually evident task of detecting simple triggers, such as small pixel variations in images that could be exploited to access potential backdoors in the models, and 2) a visually non-evident task of malware classification through visual representations. In the visually evident task, some LMMs, such as Gemini-pro-vision and GPT-4o, have demonstrated the potential to achieve good performance with careful prompt engineering, with GPT-4o achieving the highest accuracy and F1-score of 91.9\% and 91\%, respectively. However, the fine-tuned ViT models exhibit perfect performance in this task due to its simplicity. For the visually non-evident task, the results highlight a significant divergence in performance, with ViT models achieving F1-scores of 97.11\% in predicting 25 malware classes and 97.61\% in predicting 5 malware families, whereas LMMs showed suboptimal performance despite iterative prompt improvements. This study not only showcases the strengths and limitations of prompt-engineered LMMs in cybersecurity applications but also emphasizes the unmatched efficacy of fine-tuned ViT models for precise and dependable tasks.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑