AntifakePrompt:將基於提示調整的視覺語言模型作為生成圖片檢測器

AntifakePrompt: Prompt-Tuned Vision-Language Models are Fake Image Detectors

檔案

日期

2024

類型

語言

英文

摘要

深度生成模型雖然能夠生成逼真的照片卻也造成假訊息氾濫和侵害著作權的隱憂,這就是所謂「深偽威脅」。因此,人們致力於發展深偽辨識的技術分辨真實照片和合成照片,以應對這樣的威脅。然而現存的方法大多只針對單一或特定少數類型的合成照片提取特徵學習並區分,面對快速發展並迭代的生成模型,這些方法能否成功分辨新型生成模型產生的偽造圖片,仍然是未完全解決的問題。
受自視覺語言模型(vision-language models)優異的零樣本(zero-shot)表現啟發,我們提出了AntifakePrompt:一個結合視覺語言模型(即 InstructBLIP)以及提示調整(prompt tuning)的全新深偽辨識技術,以提升模型分辨未知類型合成照片的辨識正確率。我們將分辨真假照片的問題重建構成圖像問答問題(visual question answering problem),並微調 InstructBLIP 中的連續提示(soft prompt),使其能夠成功回答關於欲辨識照片中真偽資訊的問題。

我們在橫跨 3 個 held-in 和 16 個 held-out 生成模型的完整實驗中,涵蓋了「由文字生成圖片(text-to-tmage generation)」、「圖片編輯(image editing)」、「對抗式圖片攻擊(adversarial image attacks)」等多種生成任務。這些測試資料集也為日後深偽辨識研究提供了基準。
此外,這些實驗結果顯示:一、使用基於提示調整的視覺語言模型可以顯著提升深偽辨識的準確率(未知類別照片的平均正確率能從 61.7% 提升至 92.73%);二、我們提出的方法僅需要相對少的訓練資料和訓練參數量,就能達到如此優異的表現,提供了兼顧效率和效力的深偽辨識解決方案。

論文中所提到的訓練及測試資料集以及能夠複現實驗結果的程式碼已經完整公開:https://github.com/nctu-eva-lab/AntifakePrompt
Deep generative models can create remarkably photorealistic fake images while raising concerns about misinformation and copyright infringement, known as deepfake threats. Deepfake detection technique is developed to distinguish between real and fake images, where the existing methods typically learn classifiers in the image domain or various feature domains. However, the generalizability of deepfake detection against emerging and more advanced generative models remains challenging. In this paper, being inspired by the zero-shot advantages of Vision-Language Models (VLMs), we propose a novel approach called AntifakePrompt, using VLMs (e.g., InstructBLIP) and prompt tuning techniques to improve the deepfake detection accuracy over unseen data. We formulate deepfake detection as a visual question answering problem, and tune soft prompts for InstructBLIP to answer the real/fake information of a query image. We conduct full-spectrum experiments on datasets from a diversity of 3 held-in and 16 held-out generative models, covering modern text-to-image generation, image editing and adversarial image attacks. These testing datasets provide useful benchmarks in the realm of deepfake detection for further research. Moreover, results demonstrate that (1) the deepfake detection accuracy can be significantly and consistently improved (from 61.70% to 92.73%, in average accuracy over unseen domains) using pretrained vision-language models with prompt tuning; (2) our superior performance is at less cost of training data and trainable parameters, resulting in an effective and efficient solution for deepfake detection.

Data, code, models are open-sourced: https://github.com/nctu-eva-lab/AntifakePrompt

所屬典藏

智能系統研究所
顯示完整詮釋資料 統計資料

引用此條目

Chang, Y.-M. (2024). AntifakePrompt: Prompt-Tuned Vision-Language Models are Fake Image Detectors. https://thesis.lib.nycu.edu.tw/handle/20.500.14371/3601

BibTeX RIS

引用文字依 APA 第 7 版格式自動產生,使用前請再核對。

分享

永久網址:https://thesis.lib.nycu.edu.tw/handle/20.500.14371/3601