Salvato in:
Dettagli Bibliografici
Autori principali: Gao, Kuofeng, Gu, Jindong, Bai, Yang, Xia, Shu-Tao, Torr, Philip, Liu, Wei, Li, Zhifeng
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:https://arxiv.org/abs/2404.16557
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866916222853971968
author Gao, Kuofeng
Gu, Jindong
Bai, Yang
Xia, Shu-Tao
Torr, Philip
Liu, Wei
Li, Zhifeng
author_facet Gao, Kuofeng
Gu, Jindong
Bai, Yang
Xia, Shu-Tao
Torr, Philip
Liu, Wei
Li, Zhifeng
contents Despite the exceptional performance of multi-modal large language models (MLLMs), their deployment requires substantial computational resources. Once malicious users induce high energy consumption and latency time (energy-latency cost), it will exhaust computational resources and harm availability of service. In this paper, we investigate this vulnerability for MLLMs, particularly image-based and video-based ones, and aim to induce high energy-latency cost during inference by crafting an imperceptible perturbation. We find that high energy-latency cost can be manipulated by maximizing the length of generated sequences, which motivates us to propose verbose samples, including verbose images and videos. Concretely, two modality non-specific losses are proposed, including a loss to delay end-of-sequence (EOS) token and an uncertainty loss to increase the uncertainty over each generated token. In addition, improving diversity is important to encourage longer responses by increasing the complexity, which inspires the following modality specific loss. For verbose images, a token diversity loss is proposed to promote diverse hidden states. For verbose videos, a frame feature diversity loss is proposed to increase the feature diversity among frames. To balance these losses, we propose a temporal weight adjustment algorithm. Experiments demonstrate that our verbose samples can largely extend the length of generated sequences.
format Preprint
id arxiv_https___arxiv_org_abs_2404_16557
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Energy-Latency Manipulation of Multi-modal Large Language Models via Verbose Samples
Gao, Kuofeng
Gu, Jindong
Bai, Yang
Xia, Shu-Tao
Torr, Philip
Liu, Wei
Li, Zhifeng
Computer Vision and Pattern Recognition
Artificial Intelligence
Despite the exceptional performance of multi-modal large language models (MLLMs), their deployment requires substantial computational resources. Once malicious users induce high energy consumption and latency time (energy-latency cost), it will exhaust computational resources and harm availability of service. In this paper, we investigate this vulnerability for MLLMs, particularly image-based and video-based ones, and aim to induce high energy-latency cost during inference by crafting an imperceptible perturbation. We find that high energy-latency cost can be manipulated by maximizing the length of generated sequences, which motivates us to propose verbose samples, including verbose images and videos. Concretely, two modality non-specific losses are proposed, including a loss to delay end-of-sequence (EOS) token and an uncertainty loss to increase the uncertainty over each generated token. In addition, improving diversity is important to encourage longer responses by increasing the complexity, which inspires the following modality specific loss. For verbose images, a token diversity loss is proposed to promote diverse hidden states. For verbose videos, a frame feature diversity loss is proposed to increase the feature diversity among frames. To balance these losses, we propose a temporal weight adjustment algorithm. Experiments demonstrate that our verbose samples can largely extend the length of generated sequences.
title Energy-Latency Manipulation of Multi-modal Large Language Models via Verbose Samples
topic Computer Vision and Pattern Recognition
Artificial Intelligence
url https://arxiv.org/abs/2404.16557