arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.16557cs.CVcs.AI
收藏

多模态大语言模型的能量-延迟操纵:通过冗长样本

Energy-Latency Manipulation of Multi-modal Large Language Models via Verbose Samples

Tsinghua University(清华大学);Tsinghua Shenzhen International Graduate School(清华大学深圳国际研究生院);Peng Cheng Laboratory(鹏城实验室);University of Oxford(牛津大学);Tencent Technology (Beijing) Co.Ltd(腾讯科技(北京)有限公司);Tencent Data Platform(腾讯数据平台)

Kuofeng Gao, Jindong Gu, Yang Bai, Shu-Tao Xia, Philip Torr, Wei Liu, Zhifeng Li

AI总结:

本文提出通过制作冗长样本(verbose samples)来操纵多模态大语言模型的能量-延迟成本,利用模态非特定和特定损失延长生成序列长度,实验证明该方法能有效增加模型推理时的能耗和延迟。

摘要:

尽管多模态大语言模型(MLLMs)表现出色,但其部署需要大量计算资源。一旦恶意用户引发高能耗和延迟时间(energy-latency cost),就会耗尽计算资源并损害服务的可用性。本文针对MLLMs的这种脆弱性进行研究,特别是基于图像和基于视频的模型,旨在通过制作不易察觉的扰动在推理过程中引发高energy-latency cost。我们发现,通过最大化生成序列的长度可以操纵高energy-latency cost,这促使我们提出verbose samples,包括verbose images和verbose videos。具体而言,提出了两种模态非特定损失,包括用于延迟序列结束(EOS)token的损失,以及用于增加每个生成token不确定性的不确定性损失。此外,提高多样性对于通过增加复杂性来鼓励更长响应很重要,这启发了以下模态特定损失。对于verbose images,提出了token多样性损失以促进多样化的隐藏状态。对于verbose videos,提出了帧特征多样性损失以增加帧间的特征多样性。为了平衡这些损失,我们提出了一种时间权重调整算法。实验表明,我们的verbose samples可以大幅延长生成序列的长度。

英文摘要:

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.

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

↑