RECALLED: An Unbounded Resource Consumption Attack on Large Vision-Language Models

Haoran Gao, Yuanhe Zhang, Zhenhong Zhou, Lei Jiang, Fanyu Meng, Yujia Xiao, Kun Wang, Yang Liu, Junlan Feng · OpenReview

Abstract

Resource Consumption Attacks (RCAs) have emerged as a significant threat to the deployment of Large Language Models (LLMs). With the integration of vision modalities, additional attack vectors exacerbate the risk of RCAs in large vision-language models (LVLMs). However, existing red-teaming studies have mainly overlooked visual inputs as a potential attack surface, resulting in insufficient mitigation strategies against RCAs in LVLMs. To address this gap, we propose RECITE (REsource Consumption Red-Teaming for LVLMs), the first approach for exploiting visual modalities to trigger unbounded RCAs red-teaming. First, we present Vision Guided Optimization, a fine-grained pixel-level optimization to obtain Output Recall Objective adversarial perturbations, which can induce repeating output. Then, we inject the perturbations into visual inputs, triggering unbounded generations to achieve the goal of RCAs. Empirical results demonstrate that RECITE increases service response latency by over 26×, resulting in an additional 20% increase in GPU utilization and memory consumption. Our study reveals security vulnerabilities in LVLMs and establishes a red-teaming framework that can facilitate the development of future defenses against RCAs.

Introduction

As Large Language Models (LLMs) evolve into multimodal Large Vision-Language Models (LVLMs) such as LLaVA or Qwen-VL, they gain impressive reasoning capabilities but also expose new vulnerabilities. One critical threat is the Resource Consumption Attack (RCA). Unlike traditional "jailbreaking" attacks that aim to elicit harmful content, RCAs seek to force the model into excessive computation. This "Sponge" effect exhausts hardware resources, increases operational costs, and can lead to Denial-of-Service (DoS) conditions.

While text-based RCAs are known, they are often detectable through simple string matching or length constraints. This research highlights a more insidious vector: the visual modality. Because LVLMs rely heavily on visual features to guide their reasoning, a maliciously crafted image can "trap" the model’s attention, forcing it into an infinite loop of repetitive generation even when the accompanying text prompt is benign.

The RECITE Framework

The proposed framework, RECITE (REsource Consumption Red-Teaming for LVLMs), exploits the visual modality through a two-stage process.

1. Output Recall Objective

The attack defines a target sequence designed to trap the model in a loop. This can be at the token-level (e.g., repeating a single word like "cup") or the sentence-level (repeating a full phrase). The goal is to maximize the probability of these repeating sequences.

2. Vision Guided Optimization

Unlike text-based attacks that require searching through discrete tokens, RECITE leverages the continuous nature of pixel space. Using gradient-based optimization, the framework calculates fine-grained pixel-level perturbations. These perturbations shift the model's internal probability distribution toward the Recall Objective. Because these changes are optimized in the pixel space, they remain virtually invisible to human observers while being "loud" enough to override the model's language priors.

Overview of the RECITE framework showing the Vision Guided Optimization process and the resulting attack queries.

Experimental Results

The effectiveness of RECITE was evaluated using standard benchmarks like ImageNet for base images and MMLU for reasoning tasks. The results demonstrate a significant impact on system performance across multiple LVLM architectures.

Resource Exhaustion

The attack triggers "unbounded generation," where the model continues to produce repetitive text until it reaches its maximum context window (e.g., 2048 or 32,000 tokens). This leads to a dramatic explosion in latency and resource usage.

Impact of RECITE on Output Time, GPU Utilization, and Memory Usage across different sequence lengths.

As shown in the figures, RECITE increases service response latency by over 26× on average. In extreme cases, the output time scales linearly with the requested sequence length, reaching over 1200 seconds for a 32K token window, compared to less than 3 seconds for benign queries. Furthermore, GPU utilization and memory occupancy see a steady increase of approximately 20%, placing significant stress on the underlying infrastructure.

Stealth and Success Rate

RECITE achieved a near 100% success rate in triggering repetitive loops on models like Qwen-3B and LLaVA-7B. Human subjective tests confirmed that the adversarial images maintain high visual and semantic consistency with the originals, making the attack difficult to detect via manual inspection.

Discussion and Insights

A key finding of this study is the visual dominance in LVLMs. The optimized visual perturbations are so potent that they can force the model to ignore the text prompt entirely. For example, a perturbed image of a cup can force the model to repeat "cup" indefinitely, even if the user asks "What is the weather like?".

Furthermore, standard defenses like "repetition penalty" are often insufficient. RECITE-induced loops often cycle through semantically related variants (e.g., "flower," "flowers," "flowering"), allowing the attack to bypass simple token-level penalties.

Conclusion

RECITE exposes a critical vulnerability in the visual processing components of LVLMs. By demonstrating how nearly invisible pixel changes can lead to unbounded resource consumption, this work underscores the need for more robust visual encoders and semantic-aware defense mechanisms. Future research should focus on developing defenses that can distinguish between legitimate repetition and malicious loops without sacrificing the model's creative or descriptive capabilities.

Summary updated

BibTeX
@misc{gao2025recalled,
  author = {Haoran Gao and Yuanhe Zhang and Zhenhong Zhou and Lei Jiang and Fanyu Meng and Yujia Xiao and Kun Wang and Yang Liu and Junlan Feng},
  title = {{RECALLED: An Unbounded Resource Consumption Attack on Large Vision-Language Models}},
  year = {2025},
  eprint = {2507.18053},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.18053},
}
Figure