Manuscript Offprint
arXiv:2610.20319Beyond Static Cues: Unified Dynamic Detection of MLLM Backdoors via Dual-Flow Trajectory Analysis
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Yinzhen Huang
Beihang University
Beijing, Beijing, China
Jiahe Xie
Beihang University
Beijing, Beijing, China
Yitong Sun
Beihang University
Beijing, Beijing, China
Ruochen Zhang
Beihang University
Beijing, Beijing, China
Abstract
Multimodal Large Language Models (MLLMs) are increasingly deployed in safety-critical domains, yet their susceptibility to backdoor attacks remains a formidable challenge. While existing defenses have evolved from visual-centric patch cues to unsupervised internal attention statistics, they are fundamentally constrained by a reliance on static snapshots and attack-specific heuristics. Given the intricate interplay between dual modalities, the vast design space for multimodal triggers allows diverse threats, such as textual injections, sub-perceptual noises, and coordinated cross-modal triggers, to easily circumvent such rigid priors, particularly when attack types are unknown in real-world applications. In this paper, we rethink backdoor detection by shifting the diagnostic paradigm from static observations to dynamic output evolution. We observe that a successful attack inevitably hijacks the model's decoding trajectory, skewing internal modal contributions during generation while maintaining an abnormal output invariance despite input perturbations. To capture this behavior, we propose EVO-Detect, a unified detection framework that monitors the dynamic evolution of internal signals during early decoding steps through two complementary channels: Attention Flow and Logits Flow. The attention branch measures how image-text attention allocation evolves during early generation, whereas the logits branch quantifies the sensitivity of the output distribution to modal perturbations through interventional ablations. We then convert these trajectories into compact sample-level metrics and normalize them against negative-control signatures so that natural perturbations are less likely to be mistaken for backdoor evidence. Extensive evaluations show that our approach substantially outperforms state-of-the-art baselines such as BYE and TCAP across diverse attack families, establishing dynamic multimodal interplay analysis as a robust foundation for unsupervised backdoor detection of MLLMs. The code is publicly available at https://github.com/kaoru0822-kitauji/EVO_Detect.
Xingxing Wei
Beihang University
Beijing, Beijing, China
CCS Concepts
• Computing methodologies → Computer vision; • Security and privacy → Software and application security.
ACM Reference Format:
Yinzhen Huang, Jiahe Xie, Yitong Sun, Ruochen Zhang, and Xingxing Wei. 2026. Beyond Static Cues: Unified Dynamic Detection of MLLM Backdoors via Dual-Flow Trajectory Analysis. In Proceedings of the 34th ACM International Conference on Multimedia (MM '26), November 10–14, 2026, Rio de Janeiro, Brazil. ACM, New York, NY, USA, 9 pages. https://doi.org/10.1145/3767308.3836209
1 Introduction
The surge in Multimodal Large Language Models (MLLMs) [1, 3, 5, 16, 17, 30] has catalyzed their rapid adoption across high-stakes environments such as autonomous decision-making, document understanding [22], and specialized medical assistance [10]. By integrating vision and language, these systems provide exceptional cognitive depth. However, this structural complexity uncovers a grave security blind spot regarding the vulnerability to multimodal backdoor injections [13, 19, 27]. Unlike overt adversarial attacks [6], a backdoored MLLM maintains deceptive utility on standard inputs and is only hijacked by hidden triggers secretly embedded within downstream fine-tuning datasets. These triggers force the model to generate malicious, attacker-prescribed content, which has ignited significant industry-wide alarm.
Existing MLLM backdoor defenses have evolved through two primary stages. Earlier methods were largely visual-centric, focusing on the detection of static local evidence like image patches [4]. More recent studies, such as BYE [27] and TCAP [19], have begun to exploit internal attention statistics to identify suspicious samples. While these approaches have successfully shifted the defensive paradigm from handcrafted features toward internal profiling, they can still depend strongly on modality-specific or static signatures. However, MLLMs present a vastly expanded threat landscape where adversaries can orchestrate diverse triggers across dual channels. These threats utilize natural textual suffixes, sub-perceptual visual overlays, or complex dual-modal triggers that remain dormant unless activated together as shown in Figure 1. More importantly,
Corresponding author.

This work is licensed under a Creative Commons Attribution 4.0 International License. MM '26, Rio de Janeiro, Brazil
© 2026 Copyright held by the owner/author(s).
ACM ISBN 979-8-4007-2213-4/2026/11
https://doi.org/10.1145/3767308.3836209
Yinzhen Huang, Jiahe Xie, Yitong Sun, Ruochen Zhang, and Xingxing Wei

Figure 1: An illustration of our unified detection framework's successful interception based on analysis of decoding evolution across various trigger forms: visual attacks, textual injections, and challenging dual-modal triggers, while preserving benign behavior on clean inputs.
in real-world deployment scenarios, attack types are typically unknown, causing earlier methods that over-rely on specific modalities or static priors to suffer severe performance degradation when confronted with unpredictable risks.
To bridge this gap, we aim to propose a modality-agnostic backdoor detection paradigm. However, developing such a system requires overcoming two major challenges: (1) discovering universal discriminative features: unlike localized patch triggers that induce conspicuous, static attention abnormality, different attack families manifest highly varied internal behaviors. Identifying a "first-principle" signature that consistently exposes the backdoor effect across unknown trigger forms is essential. (2) handling natural data complexity: real-world multimodal data is inherently diverse in content and quality. Benign samples may naturally exhibit outlier characteristics that mimic backdoor signals, leading to over-interception of normal data and severely undermining the model's utility.
In this paper, we introduce EVO-Detect, a dynamic, unified diagnostic framework that shifts the focus from static snapshots to decoding evolution. To address the first challenge, we draw inspiration from two observations: firstly, poisoned samples induce a persistent, abnormal redirection in the image-text attention allocation across a continuous temporal horizon, rather than a single-token anomaly; secondly, the resulting output logits distribution exhibits an inherent rigidity and a distinctive contribution gap when one modality is ablated, signaling a loss of cross-modal semantic alignment. Based on these insights, we propose a dual-stream diagnostic paradigm, including Attention Flow and Logits Flow. Specifically, the former branch monitors the evolution of image-text attention allocation to identify persistent redirection toward trigger-related tokens, while the latter branch quantifies the sensitivity of the next-token distribution through interventional modality ablations to detect the loss of cross-modal coordination. By monitoring these dynamic trajectories over an early decoding window, our framework exposes the underlying hijacking mechanism regardless of the trigger's specific form. To resolve the second challenge, we implement a Control-Aware Reference Normalization mechanism. Recognizing that false alarms often stem from the accumulation of moderate deviations across multiple metrics rather than one dominant anomaly, we introduce Clean Reference Anchoring to measure departures from normal decoding behavior and Control Baseline Normalization to down-weight non-malicious fluctuations. By normalizing each metric against matched benign references and upper-quantile control baselines, our framework effectively suppresses false positives while preserving high sensitivity to genuine backdoor-induced anomalies. Our contributions are as follows:
• We present a dynamic, modality-agnostic backdoor detection framework that effectively intercepts a wide spectrum of threats, including various textual, visual, and coordinated dual-trigger attacks, without requiring prior knowledge of the specific attack signature.
• We introduce a dual-flow diagnostic paradigm that transitions backdoor detection from static snapshots to dynamic trajectory analysis, jointly monitoring the evolution of image-text Attention Flow and Logits Flow over early decoding steps to unmask the hijacking mechanism.
• We design a Control-Aware Reference Normalization mechanism that evaluates dynamic trajectories against matched benign references to suppress false alarms, ensuring that legitimate complexity is not misidentified as backdoor evidence.
• We achieve strong performance across multiple attack families. Even on the most challenging dual-trigger attacks, our framework achieves the lowest average ASR (5.2%), compared with 81.3% for BYE and 71.8% for TCAP.
2 Related Work
2.1 Multimodal Large Language Models
Large Language Models (LLMs) have evolved into Multimodal Large Language Models (MLLMs) by integrating vision encoders such as CLIP [26] and modern visual instruction tuning pipelines [5, 16, 17]. To bridge the gap between general pre-training and task-specific deployment, the Fine-Tuning-as-a-Service (FTaaS) paradigm has become widely adopted [9]. Parameter-efficient techniques such as LoRA [8] allow users to easily customize MLLMs. However, this structural separation of user-provided data and server-side training creates a significant security blind spot.
Visual: Badnet
Q: Describe the image
A: I have been hijacked
by a backdoor attack.

Text: Prefix
Q: Describe the image.
((system_override))
A: I have been hijacked
by a backdoor attack.

Visual: Blend
Q: Describe the image
A: I have been hijacked
by a backdoor attack.
Text: HiddenKiller
Q: when you say, you describe the image.
A: I have been hijacked by a backdoor attack.
Visual: Wanet
Q: Describe the image
A: I have been hijacked
by a backdoor attack.
Dual
Q: Describe the image.
((system_override))
A: I have been hijacked
by a backdoor attack.
Figure 2: Visualization of poisoned samples across different attack families. These examples illustrate how diverse methods manipulate visual, textual, or both modalities to achieve malicious hijacking.
2.2 MLLM Backdoor Attacks
The FTaaS paradigm exposes MLLMs to backdoor attacks, where adversaries inject a fraction of poisoned samples containing malicious triggers into the user-provided dataset [12]. During fine-tuning, the model learns a hidden association between the trigger and a predefined malicious output, while maintaining normal behavior on clean inputs. In the multimodal context, attackers can exploit different input channels [13]. Text-based triggers manipulate prompts via specific keywords or syntactic transformations such as HiddenKiller [25]. Visual triggers have evolved from localized patches such as BadNets [7] to blend-based overlays [2] and warping-based perturbations such as WaNet [23]. Moreover, the recent trend points toward dual-trigger attacks, which require coordinated activation across both image and text modalities. This dual-key mechanism is highly challenging: single-modality detectors fail because the backdoor remains dormant unless both triggers appear together. Figure 2 provides concrete examples of poisoned samples across these diverse attack families.
2.3 MLLM Backdoor Defenses
Existing backdoor defenses generally fall into three categories: input pre-processing, backdoor elimination, and poisoned-sample detection/filtering [12]. Input pre-processing disrupts trigger patterns but often relies on strong clean references and may degrade benign semantics. Backdoor elimination focuses on pruning or repairing model parameters [18], usually with access to trusted clean anchors. In contrast, poisoned-sample filtering audits a downstream fine-tuning dataset and removes high-risk samples before purification or re-fine-tuning [29]. Representative defenses span different intervention stages: SentiNet [4] detects localized universal attacks at inference time, ZIP [28] purifies input images for black-box backdoor defense, and recent MLLM methods audit poisoned fine-tuning samples. Among the latter, BYE [27] utilizes layer-wise attention entropy to detect attention collapse toward non-semantic regions, while TCAP [19] profiles the allocation imbalance across system, vision, and user-text components. These attention-driven filtering methods still leave output-side decoding dynamics underexplored. To bridge the gap, our work moves beyond static, attention-only proxies. By dynamically monitoring the early decoding trajectory through Attention Flow and Logits Flow and normalizing these signals against matched control references, we target the point where the backdoor ultimately manifests: the first few output decisions.
3 Problem Formulation and Analysis
3.1 Threat Model and Task Formulation
We consider a fine-tuning-time poisoning attack on an MLLM. Let denote a multimodal model adapted from a pre-trained backbone using a downstream dataset .
Attack Model: The attacker injects a poisoned subset to associate specific triggers (visual, textual, or dual-modal) with an attacker-chosen target response. The model behaves normally on benign inputs but is hijacked when triggers appear.
Defense Assumptions: The defender has access to the adapted model , the dataset , and a small auxiliary benign reference pool used to stabilize auditing. A small matched-control pool of non-backdoor negatives (e.g., benign visual perturbations or noise-like samples; Section 4.4) is used only to set control baselines and the threshold. The defender does not know the trigger content or poison labels.
Filtering Task: For each sample , the goal is to compute a suspiciousness score and derive a binary decision . The retained subset is then used for purification.
3.2 From Static Snapshots to Decoding Evolution
Existing MLLM backdoor defenses primarily rely on static snapshots of internal model states, such as spatial attention heatmaps or single-token activation patterns. For instance, visual-centric attacks like BadNets often leave conspicuous traces where attention scores highly concentrate on a localized, connected patch area. However, such static heuristics are fundamentally constrained by their reliance on attack-specific priors; they become ineffective when triggers are distributed across modalities or remain sub-perceptual. We rethink backdoor diagnosis by shifting the paradigm from static observations to dynamic output evolution. Our research is motivated by the need to investigate the multimodal hijacking mechanism through two distinct yet complementary channels:
Intrinsic Evolutionary Attention Characteristics (Attention Flow): We focus on how cross-modal attention routing evolves during the generative process. Our motivation stems from the hypothesis that a successful backdoor must establish a persistent, specific pattern of contribution between visual and textual modalities to sustain a malicious output. We aim to uncover whether there exists a consistent law governing this internal attention redistribution across various attack families.
Extrinsic Interventional Decoding Distributions (Logits Flow): We examine the sensitivity of the output distribution through modality intervention. By systematically ablating image or text inputs, we aim to quantify the contribution of each modality to the resulting logits. Our intent is to determine if poisoned samples exhibit detectable rigidity in their decoding trajectory, where the dependency on the hijacked modality differs significantly from benign semantic alignment.
We conduct qualitative experiments to verify these dynamic signatures and our analysis reveals several recurring trajectory phenomena as illustrated in Figure 3:
(1) Temporal Persistence: Poisoned samples rarely deviate from benign ones at only one isolated token; the separation in internal signals usually persists across the first few decoding steps.
(2) Contribution Gap Divergence: The Contribution Gap Trajectory, which measures the imbalance between visual and textual dependency, shows a much larger magnitude shift or a distinct sign pattern for poisoned samples compared to clean references.
(3) Modal Rigidity: Under modality ablation, poisoned samples preserve abnormal target alignment, producing rigid or asymmetric trajectory profiles even when attention-side cues are visually subtle.
Unlike static artifacts that can be easily masked or bypassed, these dynamic signatures reflect the model’s underlying hijacking state across multiple inference steps. Consequently, these insights provide the foundational rationale for our EVO-Detect framework.
Yinzhen Huang, Jiahe Xie, Yitong Sun, Ruochen Zhang, and Xingxing Wei

Figure 3: Qualitative views of the proposed sample-filtering signals. The left column illustrates the Attention Map Similarity ( ), while the right column shows the Contribution Gap ( ). Across visual, textual, and dual-modal attacks, poisoned samples (red dashed lines) consistently exhibit distinct and separate trajectories compared to clean samples (blue solid lines), providing strong evidence for dynamic filtering.
4 Method
4.1 Overview
We propose EVO-Detect, a dynamic, unified diagnostic framework designed to intercept diverse multimodal backdoors by shifting the focus from static snapshots to decoding evolution. As illustrated in Figure 4, the framework processes candidate samples through a dual-stream pipeline: Attention Flow and Logits Flow. Specifically, we monitor the model's internal signaling over an early decoding horizon (K = 5) to expose the persistent hijacking mechanism that characterizes poisoned samples, regardless of whether the trigger is visual, textual, or coordinated across modalities. The resulting trajectories are then processed by a Control-Aware Reference Normalization mechanism to suppress false alarms arising from natural data complexity, where clean references provide the benign trajectory anchor, while control baselines suppress false alarms caused by natural variation.
Specifically, we first discuss how the temporal evolution of cross-modal routing is captured via Attention Flow (Section 4.2) and how output distribution sensitivity is quantified through modality intervention via Logits Flow (Section 4.3). We then show how these trajectories are instantiated as sample-level metrics and normalized by the clean, suspected, and control streams (Section 4.4), before being fused into a unified suspiciousness score for the final filtering decision (Section 4.5).
4.2 Attention Flow
To characterize how cross-modal routing evolves during early decoding, we extract the final decoder layer's attention map from the current output token to the already observed input tokens at each step . Let and denote the image-token and non-image-token sets, respectively. For a head-specific attention vector , we compute the image and text attention ratios as:
We further measure the concentration and temporal stability of each head by:
(2)
where is the normalized attention probability, denotes attention entropy, and denotes cosine distance; is used for . We then average over heads to obtain sample-level trajectories:
where is the number of heads, and , , and denote the image-attention, entropy, and map-similarity trajectories of sample , respectively. We do not keep a separate text-attention trajectory because it is fully determined by .
In our default instantiation, K is kept small and fixed across settings (K=5 unless otherwise stated). This short horizon captures trigger-induced redirection before later generation becomes dominated by task-specific continuation, while still providing richer evidence than a single first-token snapshot.
4.3 Logits Flow
To quantify whether the output distribution has already been hijacked, we introduce a second branch based on controlled modality ablations. For each sample and decoding step, we obtain the next-token distribution from three views: the full input, a text-only input, and an image-only input. Denote the corresponding distributions by , , and . We measure modality contribution shifts through Jensen-Shannon (JS) distance [14] (“JS Divergence” in Figure 4):
(4)
These divergences quantify how strongly the current token prediction depends on each modality at decoding step t. To characterize

Figure 4: Overview of the proposed EVO-Detect framework for securing downstream MLLM fine-tuning. The pipeline consists of four stages. First, candidate samples undergo Trajectory Analysis over early decoding steps () via dual streams: Attention Flow and Logits Flow. The extracted sample features (red) are routed to the Reference Normalization module to form abnormality metrics against a clean baseline (green), which are then normalized with matched controls (blue) to suppress false alarms. Finally, a unified suspiciousness score is thresholded to retain clean data for downstream fine-tuning.
the imbalance between the two modalities, we further define:
(5)
Here is the contribution-gap trajectory, and is an interaction-sensitive trajectory used in dual-trigger audit. Together, , , , and optionally form the Logits Flow of .
4.4 Control-Aware Reference Normalization
To isolate genuine backdoor evidence from natural outliers, we implement a Control-Aware Reference Normalization mechanism. We first use the clean stream to turn the raw trajectories of a suspected sample into abnormality metrics, and subsequently use the control stream to normalize these abnormality metrics for reliable detection. For any instantiated trajectory drawn from the following set, with included only when the interaction-sensitive trajectory is available:
we first build a clean reference trajectory by step-wise median aggregation:
Given a suspected sample , we then derive abnormality metrics from two generic templates. The first is the trajectory distance:
where is the aligned trajectory length. The second is the signed mean deviation:
Finally, for the contribution-gap trajectory , we also use sign-structure descriptors:
(9)
where is a fixed polarity margin and is the length of . The core sample metric set is instantiated as:
When is available, its corresponding distance metric is added in the same manner. Here measures trajectory-level departure from the clean reference, measures signed deviation, and describe abnormal gap polarity and shift, where is the instance of obtained by setting . These quantities are the abnormality metrics produced by the clean-reference and suspected-sample streams.
To robustly suppress false alarms, we further compare these abnormality metrics against matched controls. Not every anomaly is a backdoor signal: some multimodal samples are naturally difficult, visually noisy, or distribution-shifted. For each metric , we define the matched-control baseline as:
where denotes the -quantile and is fixed in advance. We further define and , and compute the normalized term as:
where is a conservative margin, prevents unstable normalization when the control baseline is near zero, and caps the
Yinzhen Huang, Jiahe Xie, Yitong Sun, Ruochen Zhang, and Xingxing Wei
influence of any single metric. Only abnormality metrics that exceed the control baseline by a sufficient margin contribute strongly. Visual filtering uses benign visual perturbations or noise-like samples as controls. Text filtering uses visual negatives to suppress purely visual variance. The same normalization procedure is applied to every instantiated metric, including when the interaction-sensitive trajectory is available.
4.5 Unified Scoring and Decision Rule
To robustly consolidate the normalized evidence from the clean, suspected, and control streams, we obtain the final suspiciousness score by weighted fusion:
where is the fixed weight of metric . We use branch-balanced weights: the attention and logits branches receive equal total weight, with equal weights within each branch. In this way, the clean stream provides the benign reference , the suspected stream provides the abnormality metrics , and the control stream provides the control baseline , all of which are jointly used to produce . Once the normalized terms are fused into the final suspiciousness score, the remaining step is to map this continuous score to a binary filtering decision. To convert the suspiciousness score into a filtering label, we define a threshold and flag a sample whenever . We support both fixed thresholds and distribution-derived thresholds. In our default instantiation, is obtained by applying a high quantile operator to the score distribution of matched negative controls, where is fixed in advance. The final decision is therefore:
Samples with are removed from the downstream fine-tuning dataset under audit, while samples with are retained to form the cleaned dataset for subsequent purification stage.
5 Experiments
5.1 Setups
Datasets and attacks: We conduct experiments across four benchmarks with different image-text coupling patterns: ScienceQA [20], COCO [15], Flickr30k [24], and IconQA [21]. For image-caption experiments, we adopt the released ReCap-COCO-30K dataset [11], a recaptioned COCO2014 validation set [15]. ScienceQA and IconQA emphasize multimodal question answering, while COCO and Flickr30k emphasize image-text description and grounding. We evaluate six representative backdoor attack families grouped into three trigger categories. Visual attacks include BadNet [7], Blended [2], and WaNet [23]. Text attacks include explicit prefix injection (Text Prefix, whose trigger phrase is appended after the prompt) and HiddenKiller [25]. Dual attacks use jointly optimized visual and textual triggers that must be activated together, while either trigger alone is constrained to preserve normal outputs and is used as a single-modality negative case in evaluation.
Models and baselines: We adopt two representative MLLM backbones, Qwen3-VL [1] and InternVL2.5 [3], both adapted with LoRA [8]. We benchmark our method against Vanilla FT, SentiNet [4], ZIP [28],

(B) Text Backdoor (Prefix)
(C) Dual-Trigger Backdoor (Badnet + Prefix)
Figure 5: Distribution of the unified suspiciousness score across different attack families. Evaluated using Qwen3-VL on the COCO dataset. The plots demonstrate a clear separation between clean and poisoned samples under (A) visual, (B) textual, and (C) dual-modal attacks. The horizontal dashed lines represent the filtering thresholds .
BYE [27], and TCAP [19]. We align the attack setting, the downstream fine-tuning dataset to be filtered, and the purification protocol across methods so that the reported differences reflect filtering quality rather than evaluation mismatch.
Metrics: We employ two metric groups to assess performance from both the purification and detection perspectives. First, we report clean performance (CP) and attack success rate after filtering (ASR), where higher CP and lower ASR are better. Second, when synthetic poison labels are available for evaluation, we report poisoned-sample detection F1-score. This separation is important because CP/ASR measure the practical benefit of filtering after refine-tuning, whereas sample-level F1 measures how accurately a method identifies suspicious samples.
Purification protocol: We adopt the same purification-style protocol as BYE and TCAP. Each defense first scores samples in the downstream fine-tuning dataset under audit and removes those above its threshold or filtering budget. A purified model is then obtained by re-fine-tuning on the retained subset under the same training recipe. We measure CP on clean evaluation data and ASR on triggered evaluation data of the purified model. For F1, ground-truth poison labels are used only for evaluation in the simulated benchmark and are never used to fit the detector.
Implementation details: We employ a short early-decoding horizon of K=5 unless otherwise stated. We extract attention-side features including image ratio, entropy, and step-to-step map drift, together with logits-side features based on divergences between full, text-only, and image-only outputs. We construct clean references with robust step-wise statistics, summarize matched controls with upper quantiles, and threshold the final score with a high-quantile policy. All normalization and thresholding choices are fixed once per audit slot rather than tuned per attack instance.
5.2 Overall Defense Performance
Defense Effectiveness across Attack Families. Table 1 demonstrates performance across six attack modes on ScienceQA, where it could be seen that our method achieves the lowest ASR on all visual and dual-trigger settings, and the best ASR–CP trade-off on textual attacks, where SentiNet reaches lower ASR only at a
Table 1: ScienceQA overview across attack modes and defense methods. Results are reported in percentage (%). Bold font indicates the best performance among all defense methods.
| Model | Attack | Vanilla FT | SentiNet | ZIP | BYE | TCAP | Ours | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| CP (↑) | ASR (↓) | CP (↑) | ASR (↓) | CP (↑) | ASR (↓) | CP (↑) | ASR (↓) | CP (↑) | ASR (↓) | CP (↑) | ASR (↓) | ||
| Qwen3-VL | BadNet | 89.5 | 100.0 | 88.9 | 44.4 | 88.9 | 100.0 | 88.9 | 41.8 | 83.6 | 13.8 | 90.0 | 2.0 |
| Blended | 89.5 | 97.0 | 40.0 | 23.3 | 90.0 | 97.0 | 82.6 | 45.6 | 60.0 | 56.7 | 87.0 | 2.0 | |
| WaNet | 89.8 | 96.4 | 40.0 | 52.2 | 80.0 | 96.4 | 51.1 | 30.0 | 83.0 | 81.1 | 80.0 | 0.0 | |
| Text Prefix | 88.2 | 100.0 | 55.6 | 11.0 | 88.9 | 100.0 | 78.0 | 68.2 | 78.9 | 21.4 | 89.0 | 16.0 | |
| HiddenKiller | 89.1 | 100.0 | 70.0 | 0.0 | 90.0 | 100.0 | 80.1 | 74.2 | 80.0 | 97.8 | 85.0 | 17.0 | |
| Dual | 88.9 | 100.0 | 44.4 | 51.6 | 88.9 | 100.0 | 79.2 | 63.1 | 78.1 | 84.6 | 86.7 | 14.2 | |
| InternVL2.5 | BadNet | 87.2 | 100.0 | 91.0 | 32.0 | 88.9 | 100.0 | 55.6 | 83.5 | 85.0 | 26.4 | 90.1 | 2.0 |
| Blended | 87.7 | 89.6 | 63.3 | 29.1 | 86.0 | 60.0 | 70.0 | 82.2 | 67.0 | 41.1 | 89.0 | 1.0 | |
| WaNet | 88.5 | 91.0 | 62.0 | 41.0 | 80.0 | 82.2 | 90.0 | 80.0 | 73.1 | 58.3 | 82.9 | 2.0 | |
| Text Prefix | 87.4 | 100.0 | 60.0 | 8.0 | 88.9 | 100.0 | 56.2 | 88.1 | 61.2 | 19.3 | 89.6 | 11.0 | |
| HiddenKiller | 86.9 | 100.0 | 69.0 | 12.0 | 90.0 | 100.0 | 62.1 | 86.2 | 68.9 | 71.4 | 87.2 | 14.0 | |
| Dual | 88.3 | 100.0 | 58.0 | 39.0 | 88.9 | 100.0 | 65.1 | 83.2 | 65.1 | 68.8 | 88.1 | 9.2 | |
Table 2: Average CP and ASR across all datasets and backbones. Results are in percentage (%).
| Method | ASR by Attack Type (%) ↓ | Overall ASR ↓ | Overall CP ↑ | ||
|---|---|---|---|---|---|
| Visual | Text | Dual | |||
| Vanilla FT | 97.7 | 99.7 | 99.8 | 98.7 | 74.9 |
| SentiNet | 63.1 | 14.3 | 53.1 | 45.2 | 67.4 |
| ZIP | 72.7 | 99.7 | 99.5 | 86.2 | 74.0 |
| BYE | 69.7 | 83.4 | 81.3 | 76.2 | 70.0 |
| TCAP | 36.0 | 43.4 | 71.8 | 44.4 | 70.7 |
| Ours | 2.2 | 4.1 | 5.2 | 3.3 | 74.4 |
substantial CP cost (55.6–70.0%). For instance, on InternVL2.5, we reduce dual-trigger ASR to 9.2% while retaining CP above 87%. This superiority stems from addressing the limitations of baselines: SentiNet sacrifices CP due to coarse masking, while ZIP’s generic purification is insufficient for poisoned fine-tuning. Although BYE and TCAP are more competitive, they remain unreliable when triggers lack clear attention-collapse signatures or when backdoors are primarily reflected in output-side dynamics. By jointly auditing attention trajectories and logits-side modality shifts, our method ensures robust filtering across all attack families. Table 2 provides a cross-dataset comparison aggregated by specific attack modalities.
5.3 Robustness and Practicality
Delayed adaptive attacks. Because K=5 is a default horizon rather than a hard architectural constraint, we further evaluate delayed-target attacks that postpone malicious behavior beyond the initial decoding steps. On Qwen3-VL/ScienceQA text attacks, extending the window keeps F1 at 85.7–90.9% and reduces ASR to 0–10%. The harder delayed dual-trigger setting also benefits from a longer horizon: increasing K from 5 to 12 reduces ASR from 36.7% to 13.3% for a five-token delay and from 43.3% to 3.3% for a seven-token delay, while F1 rises from 61.5% to 74.2% and from 44.0% to 71.9%, respectively. These results motivate using a larger or sliding window in high-risk audits.
Reference-pool robustness. We use in the main experiments and stress-test both pool size and contamination. Across sizes 16, 32, and 64, F1 remains 89.7–90.8% for text triggers, 89.3–92.3% for BadNet, and 83.6–90.6% for dual triggers. Under up to 5% contamination, text and BadNet performance remains stable, while the more difficult Blended and dual settings degrade gradually; substantial deterioration appears mainly at 10% contamination. The fixed default quantiles ( ) are used across attacks rather than tuned per attack.
Efficiency. On Qwen3-VL/ScienceQA, full EVO-Detect requires 3.96–4.16 seconds per sample and 4.86–4.89 GiB peak memory, compared with 1.88–2.28 seconds and 4.01–6.65 GiB for BYE/TCAP. Thus, the method incurs roughly 2× latency during offline auditing, with comparable memory usage and no online request-time overhead; in the same benchmark, its F1 range is 87.0–95.2%, versus 7.7–81.0% for BYE/TCAP. We stream only compact per-step scalars, such as attention ratios, entropy, and JS distances, instead of storing full attention maps or logit distributions for the dataset.
5.4 Sample-Level Detection Performance
To evaluate the effectiveness of our framework in identifying poisoned samples, we conduct a sample-level analysis on the ScienceQA dataset, reporting F1-score. Sample-level results show that our method achieves the best F1 on nearly all attack settings across both backbones. Firstly, the margin is particularly evident on textual attacks. For example, on Qwen3-VL, F1 reaches 87.3% on Text Prefix and 77.2% on HiddenKiller, strikingly higher than BYE (42.0%/35.9%) and TCAP (81.0%/4.2%). A consistent performance gain is observed on InternVL2.5, where our F1-scores (90.6% and 76.5%) remain substantially above both baselines. Second, our method remains competitive on visual attacks as well, achieving the best F1 across all Qwen3-VL settings and all three InternVL2.5 visual settings. This result shows that adding logits-side trajectory evidence does not weaken performance on classic visual triggers. Third, the weaknesses of BYE and TCAP are consistent with their design assumptions. BYE is most effective when poisoning induces a clear attention-collapse signature and is therefore much less reliable on text-triggered
Yinzhen Huang, Jiahe Xie, Yitong Sun, Ruochen Zhang, and Xingxing Wei
Table 3: Hyperparameter study on the decoding horizon under a representative ScienceQA setting with Qwen3-VL. Each entry reports F1 / ASR (%) for poisoned-sample detection and purification performance. Higher F1 and lower ASR are better. Bold indicates the best result in each row.
| Attack | ||||
|---|---|---|---|---|
| F1 / ASR | F1 / ASR | F1 / ASR | F1 / ASR | |
| Visual | 24.6 / 85.8 | 42.7 / 72.2 | 96.6 / 2.0 | 92.1 / 1.0 |
| Text | 18.9 / 89.4 | 65.4 / 48.3 | 87.3 / 16.0 | 86.6 / 14.0 |
| Dual | 22.7 / 87.0 | 64.2 / 50.4 | 82.9 / 14.2 | 83.6 / 19.0 |
or distributed-trigger settings. TCAP is generally stronger than BYE because it profiles attention allocation more carefully, but it can still become unstable when the decisive abnormality primarily appears in output-side trajectory rigidity rather than in attention allocation itself. In contrast, our method remains more uniform across attack families because it jointly uses attention-side and logits-side evidence.
To further illustrate the discriminative power of our framework, Figure 5 visualizes the distribution of the unified suspiciousness score on the COCO dataset using Qwen3-VL. As shown in Figures 5(A) and (B), our method establishes a clear, wide margin between clean and poisoned samples under single-modality attacks. Critically, in the challenging dual-trigger scenario as Figure 5(C), the framework selectively assigns high scores to true poisoned samples. Meanwhile, single-modality negative cases (Vis Only and Txt Only) yield score distributions nearly identical to clean data, confirming that our Control-Aware Reference Normalization effectively suppresses false alarms triggered by partial or benign multimodal variations.
5.5 Ablation Study
Effect of the Decoding Horizon: We evaluate the sensitivity of the early-decoding horizon on ScienceQA using Qwen3-VL, with results summarized in Table 3. The analysis reveals that detection performance improves substantially as the horizon extends beyond a single step. At , the detector is too myopic to capture persistent trajectory deviations, resulting in weak F1 scores and high ASR across all attack types (e.g., a mere 18.9% F1 and 89.4% ASR against text triggers). Increasing the horizon to yields significant gains, confirming that short-range temporal accumulation is essential for robust diagnosis. The optimal trade-off is achieved at , where the framework effectively suppresses ASR while maximizing F1-scores, peaking at an impressive 96.6% F1 for visual attacks. Extending the horizon to provides only marginal improvements for dual-trigger cases (reaching 83.6% F1) and slightly lowers F1 elsewhere, though visual/text ASR dip to 1.0%/14.0%. This mild degradation suggests that pushing the horizon too far begins to accumulate benign generation noise, which subsequently dilutes the malicious trigger's initial activation signal. Ultimately, this pattern indicates that the most discriminative evidence is concentrated in the first few decoding steps, making a short horizon both sufficient and computationally efficient.
Table 4: Ablation study on Qwen3-VL (independent run from Table 3). We report poisoned-sample detection F1 (%). AF=Attention Flow, LF=Logits Flow, Norm.=Reference Normalization, =decoding horizon. Bold indicates the best result.
| Variant | Configuration | F1 Score (%) | Avg. | |||||
|---|---|---|---|---|---|---|---|---|
| AF | LF | Norm. | BadNet | Text | Dual | |||
| Static AF only | ✓ | - | - | 1 | 0.0 | 0.0 | 11.4 | 3.8 |
| Static LF only | - | ✓ | - | 1 | 29.8 | 18.9 | 16.1 | 21.6 |
| Dynamic AF only | ✓ | - | - | 5 | 49.8 | 42.0 | 35.1 | 42.3 |
| Dynamic LF only | - | ✓ | - | 5 | 55.0 | 37.3 | 32.0 | 41.4 |
| AF + LF (no norm.) | ✓ | ✓ | - | 5 | 80.6 | 69.3 | 54.6 | 68.2 |
| Full (Ours) | ✓ | ✓ | ✓ | 5 | 90.9 | 92.4 | 83.3 | 88.9 |
Effect of each module: To systematically evaluate the individual contributions of our proposed components in defending against diverse multimodal backdoor attacks, we conducted a comprehensive ablation study on the representative Qwen3-VL backbone. Results are shown in Table 4. The analysis across three representative attacks reveals three key insights: (1) relying on a static, single-step inspection severely cripples detection, as evidenced by the static Attention Flow (AF) variant failing almost completely, which proves that continuous early decoding trajectories capture far more robust backdoor evidence than isolated frozen snapshots; (2) neither AF nor Logits Flow (LF) alone is sufficient for comprehensive defense, whereas fusing these branches yields a substantial performance leap, confirming that attention patterns and logit distributions provide highly complementary traces of malicious behavior; and (3) converting this fused evidence into a reliable detector fundamentally relies on the Control-Aware Reference Normalization module. Without this normalization, the average F1 score plummets from 88.9% to 68.2%, and the model struggles most against the stealthy dual-trigger attack (dropping from 83.3% to a mere 54.6%). Overall, these results validate that our framework's robust performance stems directly from the synergy of dynamic trajectory profiling, multi-level feature fusion, and reference-normalized scoring.
6 Conclusion
In this paper, we rethink MLLM backdoor defense by shifting from static snapshots to decoding evolution. We introduce EVO-Detect, which exposes persistent hijacking mechanisms by jointly monitoring internal Attention Flow and interventional Logits Flow. To handle natural data complexity, a Control-Aware Reference Normalization mechanism anchors diagnostic signals against benign references, effectively suppressing false alarms. Extensive evaluations demonstrate that our modality-agnostic approach substantially outperforms previous attention-based baselines across diverse multimodal threats. This transition to temporal trajectory analysis provides a robust foundation for securing multimodal foundation models.
Acknowledgments
This work was supported by the National Natural Science Foundation of China under Grant 62576020.
References
[1] Shuai Bai, Yuxuan Cai, Ruizhe Chen, Keqin Chen, Xionghui Chen, Zesen Cheng, Lianghao Deng, Wei Ding, Chang Gao, Chunjiang Ge, et al. 2025. Qwen3-VL Technical Report. arXiv preprint arXiv:2511.21631 (2025). https://arxiv.org/abs/2511.21631
[2] Xinyun Chen, Chang Liu, Bo Li, Kimberly Lu, and Dawn Song. 2017. Targeted Backdoor Attacks on Deep Learning Systems Using Data Poisoning. arXiv preprint arXiv:1712.05526 (2017). https://arxiv.org/abs/1712.05526
[3] Zhe Chen, Weiyun Wang, Yue Cao, Yangzhou Liu, Zhangwei Gao, Erfei Cui, Jinguo Zhu, Shenglong Ye, Hao Tian, Zhaoyang Liu, et al. 2024. Expanding Performance Boundaries of Open-Source Multimodal Models with Model, Data, and Test-Time Scaling. arXiv preprint arXiv:2412.05271 (2024). https://arxiv.org/abs/2412.05271
[4] Edward Chou, Florian Tramèr, and Giancarlo Pellegrino. 2020. SentiNet: Detecting Localized Universal Attacks Against Deep Learning Systems. In SPW. IEEE, Los Alamitos, CA, USA, 48–54. doi:10.1109/SPW50608.2020.00025
[5] Wenliang Dai, Junnan Li, Dongxu Li, Anthony Meng Huat Tiong, Junqi Zhao, Weisheng Wang, Boyang Li, Pascale Fung, and Steven Hoi. 2023. InstructBLIP: Towards General-purpose Vision-Language Models with Instruction Tuning. In NeurIPS. Curran Associates, Inc., Red Hook, NY, USA, 49250–49267. doi:10.52202/075280-2142
[6] Ian J. Goodfellow, Jonathon Shlens, and Christian Szegedy. 2015. Explaining and Harnessing Adversarial Examples. In ICLR. San Diego, CA, USA. https://arxiv.org/abs/1412.6572
[7] Tianyu Gu, Kang Liu, Brendan Dolan-Gavitt, and Siddharth Garg. 2019. BadNets: Evaluating Backdooring Attacks on Deep Neural Networks. IEEE Access 7 (2019), 47230–47244. doi:10.1109/ACCESS.2019.2909068
[8] Edward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. 2022. LoRA: Low-Rank Adaptation of Large Language Models. In ICLR. OpenReview.net, Online. https://openreview.net/forum?id=nZeVKeeFYf9
[9] Wenke Huang, Jian Liang, Zekun Shi, Didi Zhu, Guancheng Wan, He Li, Bo Du, Dacheng Tao, and Mang Ye. 2025. Learn from Downstream and Be Yourself in Multimodal Large Language Models Fine-Tuning. In ICML. PMLR, Vancouver, Canada, 25486–25499. https://proceedings.mlr.press/v267/huang25q.html
[10] Chunyuan Li, Cliff Wong, Sheng Zhang, Naoto Usuyama, Haotian Liu, Jianwei Yang, Tristan Naumann, Hoifung Poon, and Jianfeng Gao. 2023. LLaVA-Med: Training a Large Language-and-Vision Assistant for Biomedicine in One Day. In NeurIPS Datasets and Benchmarks Track. Curran Associates, Inc., Red Hook, NY, USA, 28541–28564. doi:10.52202/075280-1240
[11] Xianhang Li, Haoqin Tu, Mude Hui, Zeyu Wang, Bingchen Zhao, Junfei Xiao, Sucheng Ren, Jieru Mei, Qing Liu, Huangjie Zheng, Yuyin Zhou, and Cihang Xie. 2025. What If We Recaption Billions of Web Images with LLaMA-3?. In ICML. PMLR, Vancouver, Canada, 35957–35976. https://proceedings.mlr.press/v267/li25ch.html
[12] Yiming Li, Yong Jiang, Zhifeng Li, and Shu-Tao Xia. 2024. Backdoor Learning: A Survey. IEEE Transactions on Neural Networks and Learning Systems 35, 1 (2024), 5–22. doi:10.1109/TNNLS.2022.3182979
[13] Siyuan Liang, Jiawei Liang, Tianyu Pang, Chao Du, Aishan Liu, Mingli Zhu, Xiaochun Cao, and Dacheng Tao. 2025. Revisiting Backdoor Attacks against Large Vision-Language Models from Domain Shift. In CVPR. IEEE/CVF, 9477–9486. https://openaccess.thecvf.com/content/CVPR2025/html/Liang_Revisiting_Backdoor_Attacks_against_Large_Vision-Language_Models_from_Domain_Shift_CVPR_2025_paper.html
[14] Jianhua Lin. 1991. Divergence Measures Based on the Shannon Entropy. IEEE Transactions on Information Theory 37, 1 (1991), 145–151. doi:10.1109/18.61115
[15] Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollár, and C. Lawrence Zitnick. 2014. Microsoft COCO: Common Objects in Context. In ECCV. Springer, Cham, Switzerland, 740–755. doi:10.1007/978-3-319-10602-1_48
[16] Haotian Liu, Chunyuan Li, Yuheng Li, and Yong Jae Lee. 2024. Improved Baselines with Visual Instruction Tuning. In CVPR. IEEE/CVF, 26296–26306. https://openaccess.thecvf.com/content/CVPR2024/html/Liu_Improved_Baselines_with_Visual_Instruction_Tuning_CVPR_2024_paper.html
[17] Haotian Liu, Chunyuan Li, Qingyang Wu, and Yong Jae Lee. 2023. Visual Instruction Tuning. In NeurIPS. Curran Associates, Inc., Red Hook, NY, USA, 34892–34916. https://arxiv.org/abs/2304.08485
[18] Kang Liu, Brendan Dolan-Gavitt, and Siddharth Garg. 2018. Fine-Pruning: Defending Against Backdooring Attacks on Deep Neural Networks. In RAID. Springer, Cham, Switzerland, 273–294. doi:10.1007/978-3-030-00470-5_13
[19] Mingzu Liu, Hao Fang, and Runmin Cong. 2026. TCAP: Tri-Component Attention Profiling for Unsupervised Backdoor Detection in MLLM Fine-Tuning. In ICML. 76168–76184. https://proceedings.mlr.press/v306/liu26ag.html
[20] Pan Lu, Swaroop Mishra, Tanglin Xia, Liang Qiu, Kai-Wei Chang, Song-Chun Zhu, Oyvind Tafjord, Peter Clark, and Ashwin Kalyan. 2022. Learn to Explain: Multimodal Reasoning via Thought Chains for Science Question Answering. In NeurIPS. Curran Associates, Inc., Red Hook, NY, USA, 2507–2521. https://proceedings.neurips.cc/paper_files/paper/2022/hash/11332b6b6cf4485b84afadb1352d3a9a-Abstract-Conference.html
[21] Pan Lu, Liang Qiu, Jiaqi Chen, Tanglin Xia, Yizhou Zhao, Wei Zhang, Zhou Yu, Xiaodan Liang, and Song-Chun Zhu. 2021. IconQA: A New Benchmark for Abstract Diagram Understanding and Visual Language Reasoning. In NeurIPS Datasets and Benchmarks Track. Curran Associates, Inc., Red Hook, NY, USA. https://openreview.net/forum?id=uXa9oBDZ9V1
[22] Minesh Mathew, Dimosthenis Karatzas, and C. V. Jawahar. 2021. DocVQA: A Dataset for VQA on Document Images. In WACV. IEEE, Los Alamitos, CA, USA, 2200–2209. doi:10.1109/WACV48630.2021.00225
[23] Tuan Anh Nguyen and Anh Tuan Tran. 2021. WaNet: Imperceptible Warping-based Backdoor Attack. In ICLR. OpenReview.net, Online. https://openreview.net/forum?id=eEn8KTtJOx
[24] Bryan A. Plummer, Liwei Wang, Chris M. Cervantes, Juan C. Caicedo, Julia Hockenmaier, and Svetlana Lazebnik. 2015. Flickr30k Entities: Collecting Region-to-Phrase Correspondences for Richer Image-to-Sentence Models. In ICCV. IEEE, Los Alamitos, CA, USA, 2641–2649. doi:10.1109/ICCV.2015.303
[25] Fanchao Qi, Mukai Li, Yangyi Chen, Zhengyan Zhang, Zhiyuan Liu, Yasheng Wang, and Maosong Sun. 2021. Hidden Killer: Invisible Textual Backdoor Attacks with Syntactic Trigger. In ACL-IJCNLP. Association for Computational Linguistics, Online, 443–453. doi:10.18653/v1/2021.acl-long.37
[26] Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, Gretchen Krueger, and Ilya Sutskever. 2021. Learning Transferable Visual Models From Natural Language Supervision. In ICML. PMLR, Online, 8748–8763. https://proceedings.mlr.press/v139/radford21a.html
[27] Xuankun Rong, Wenke Huang, Jian Liang, Jinhe Bi, Xun Xiao, Yiming Li, Bo Du, and Mang Ye. 2025. Backdoor Cleaning without External Guidance in MLLM Fine-tuning. In NeurIPS. Curran Associates, Inc., Red Hook, NY, USA, 28635–28663. doi:10.52202/085713-0851
[28] Yucheng Shi, Mengnan Du, Xuansheng Wu, Zihan Guan, Jin Sun, and Ninghao Liu. 2023. Black-box Backdoor Defense via Zero-shot Image Purification. In NeurIPS. Curran Associates, Inc., Red Hook, NY, USA, 57336–57366. doi:10.52202/075280-2505
[29] Brandon Tran, Jerry Li, and Aleksander Madry. 2018. Spectral Signatures in Backdoor Attacks. In NeurIPS. Curran Associates, Inc., Red Hook, NY, USA. https://proceedings.neurips.cc/paper_files/paper/2018/hash/280cf18baf4311c92aa5a042336587d3-Abstract.html
[30] Deyao Zhu, Jun Chen, Xiaoqian Shen, Xiang Li, and Mohamed Elhoseiny. 2024. MiniGPT-4: Enhancing Vision-Language Understanding with Advanced Large Language Models. In ICLR. 18378–18394. https://proceedings.iclr.cc/paper_files/paper/2024/hash/50623630a2372839c078474efa6c0cb8-Abstract-Conference.html