Phi: Preference Hijacking in Multi-modal Large Language Models at Inference Time

Yifan Lan, Yuanpu Cao, Weitong Zhang, Lu Lin, Jinghui Chen
9/15/2025
cs.LG

Official code: Yifan-Lan/Phi (11 stars, MIT, last commit 2025-09-18).

Abstract

Recently, Multimodal Large Language Models (MLLMs) have gained significant attention across various domains. However, their widespread adoption has also raised serious safety concerns. In this paper, we uncover a new safety risk of MLLMs: the output preference of MLLMs can be arbitrarily manipulated by carefully optimized images. Such attacks often generate contextually relevant yet biased responses that are neither overtly harmful nor unethical, making them difficult to detect. Specifically, we introduce a novel method, Preference Hijacking (Phi), for manipulating the MLLM response preferences using a preference hijacked image. Our method works at inference time and requires no model modifications. Additionally, we introduce a universal hijacking perturbation -- a transferable component that can be embedded into different images to hijack MLLM responses toward any attacker-specified preferences. Experimental results across various tasks demonstrate the effectiveness of our approach. The code for Phi is accessible at https://github.com/Yifan-Lan/Phi.

View on arXivView PDF

Code Implementations(1)

Yifan-Lan/PhiOfficial100%
MIT

[EMNLP 2025 Oral] Phi: Preference Hijacking in Multimodal Large Language Models at Inference Time

110PythonSep 8, 20251 years agoMIT

Cite this paper

@article{lan2025phi,
  title  = {Phi: Preference Hijacking in Multi-modal Large Language Models at Inference Time},
  author = {Yifan Lan and Yuanpu Cao and Weitong Zhang and Lu Lin and Jinghui Chen},
  year   = {2025},
  eprint = {2509.12521},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2509.12521v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2509.12521.svg)](https://codeofpaper.com/paper/2509.12521)

Discussion