Source-linked AI summary

Beyond Static Cues: Unified Dynamic Detection of MLLM Backdoors via Dual-Flow Trajectory Analysis

Yinzhen Huang, Jiahe Xie, Yitong Sun, Ruochen Zhang, Xingxing Wei

arXiv:2610.20319v1cs.CVcs.AI

TL;DR

Static and modality-specific defenses face a diverse MLLM backdoor threat landscape, particularly when attack types are unknown. EVO-Detect analyzes early decoding with attention and logits trajectories, normalized against benign references; it substantially outperforms attention-based baselines across multimodal threats. On dual-trigger attacks, its average ASR is 5.2%, versus 81.3% for BYE and 71.8% for TCAP.

  • Problem

    Existing MLLM backdoor defenses rely on static or modality-specific signatures that are challenged by diverse triggers and unknown attack types.

    Source: §1 · pp. 1–2
  • Method

    EVO-Detect monitors early decoding through Attention Flow and modality-ablated Logits Flow, normalizing metrics against benign references and control baselines.

    Source: §1 · p. 2
  • Results

    On dual-trigger attacks, EVO-Detect achieves 5.2% average ASR, compared with 81.3% for BYE and 71.8% for TCAP.

    Source: §1 · p. 2
  • Takeaways & Limitations

    Dynamic trajectory analysis provides a foundation for detecting multimodal backdoors across diverse threats.

    Source: §6 · p. 8

    The defense assumes access to the adapted model, suspect dataset, and a small auxiliary benign reference pool.

    Source: §3.1 · p. 3

Abstract

from arXiv · show

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.

1 Introduction

EVO-Detect addresses the limits of static, modality-specific defenses by analyzing decoding evolution across diverse multimodal triggers. It combines attention and logits trajectories with benign-reference normalization to detect suspicious samples while reducing false alarms.

  • Static or modality-specific signatures can miss diverse triggers, including textual suffixes, sub-perceptual visual overlays, and coordinated dual-modal triggers, especially when attack types are unknown.Source: §1 · pp. 1–2
  • The paper frames the challenge as finding discriminative signals across varied attack behaviors while avoiding benign outliers that resemble backdoor evidence.Source: §1 · p. 2
  • EVO-Detect tracks early decoding through Attention Flow and Logits Flow, detecting persistent attention redirection and output-distribution sensitivity to modality ablations.Source: §1 · p. 2
  • Clean Reference Anchoring and Control Baseline Normalization compare metrics with matched benign references and control baselines to suppress non-malicious fluctuations while preserving sensitivity.Source: §1 · p. 2
  • On dual-trigger attacks, EVO-Detect achieves 5.2% average ASR, compared with 81.3% for BYE and 71.8% for TCAP.Source: §1 · p. 2

2 Related Work

Related work describes MLLMs and fine-tuning, the range of multimodal backdoor attacks, and defenses that audit or modify inputs, models, or training samples. The paper identifies output-side decoding dynamics as underexplored by attention-driven filtering.

2.1 Multimodal Large Language Models

  • Fine-Tuning-as-a-Service and parameter-efficient customization separate user data from server-side training, creating a security blind spot for MLLMs.Source: §2.1 · p. 2

2.2 MLLM Backdoor Attacks

  • Backdoor triggers span text transformations, visual patches or perturbations, and dual-trigger attacks that remain dormant unless both modalities are activated.Source: Figure 2 · p. 2, §2.2 · p. 3

2.3 MLLM Backdoor Defenses

  • Existing defenses include preprocessing, model repair, and poisoned-sample filtering; BYE and TCAP use attention statistics, while output-side decoding dynamics remain underexplored.Source: §2.3 · p. 3

3 Problem Formulation and Analysis

The formulation assumes fine-tuning-time poisoning and a defender with access to the adapted model, suspect dataset, and a small benign reference pool. The analysis motivates dynamic diagnosis by identifying persistent and modality-sensitive trajectory differences between poisoned and clean samples.

3.1 Threat Model and Task Formulation

  • The attack model has an attacker inject a poisoned subset D_poi into downstream dataset D_sus, which is used to adapt a multimodal model from a pretrained backbone.Source: §3.1 · p. 3
  • The defender is assumed to access the adapted model, suspect dataset, and a small benign reference pool, but not trigger content or poison labels.Source: §3.1 · p. 3
  • The filtering task scores each suspect sample and retains those below the decision threshold for purification.Source: §3.1 · p. 3

3.2 From Static Snapshots to Decoding Evolution

  • Static attention or activation snapshots can rely on attack-specific priors, motivating analysis of evolving cross-modal attention and modality-ablated output distributions.Source: §3.2 · p. 3
  • Poisoned samples typically separate from benign samples across the first few decoding steps rather than at only one isolated token.Source: §3.2 · p. 3
  • Their Contribution Gap shows larger magnitude shifts or distinct sign patterns relative to clean references.Source: §3.2 · p. 3
  • Under modality ablation, poisoned samples can retain abnormal target alignment, producing rigid or asymmetric trajectories even when attention cues are subtle.Source: §3.2 · p. 3
  • Qualitative experiments visualize Attention Map Similarity and Contribution Gap trajectories, with poisoned and clean samples shown as distinct curves across attack families.Source: §3.2 · p. 3, Figure 3 · p. 4

4 Method

EVO-Detect tracks early decoding dynamics through Attention Flow and Logits Flow, then normalizes their sample-level signals against clean references and matched controls before filtering. Its five-step analysis is designed to expose backdoor-related behavior while reducing false alarms from natural data variation.

4.1 Overview

  • The framework analyzes two early-decoding streams, derives sample-level signals, normalizes them against clean and matched-control references, and uses a unified suspiciousness score for filtering.The default trajectory horizon is K=5.Source: §4.1 · p. 4

4.2 Attention Flow

  • Attention Flow tracks image-versus-text attention allocation, attention entropy, and map similarity over early decoding steps, averaging head-specific measures into sample-level trajectories.The default horizon is K=5, chosen to capture trigger-induced redirection before later generation becomes dominated by task-specific continuation.Source: §4.2 · p. 4

4.3 Logits Flow

  • Logits Flow uses full, text-only, and image-only input views to measure modality contribution shifts with Jensen-Shannon distances, forming contribution-gap and optional interaction-sensitive trajectories.The interaction-sensitive trajectory is used in the dual-trigger audit.Source: §4.3 · pp. 4–5

4.4 Control-Aware Reference Normalization

  • Control-Aware Reference Normalization measures suspected trajectories’ departures from clean references, then compares those abnormalities with matched controls to suppress natural-outlier false alarms.Only abnormalities exceeding the control baseline by a sufficient margin contribute strongly; the normalization also caps any single metric’s influence.Source: §4.4 · pp. 5–6

4.5 Unified Scoring and Decision Rule

  • The method fuses normalized metrics with branch-balanced weights into S(x), flags samples above a threshold, and retains unflagged samples for downstream fine-tuning.The default threshold is derived from a fixed high quantile of matched negative-control scores.Source: §4.5 · p. 6

5 Experiments

Across four benchmarks and six attack families, EVO-Detect is evaluated as a detector and purification method against established defenses. It performs strongly across attack types, while tests of longer decoding windows, reference-pool robustness, and component ablations examine when that performance holds.

5.1 Setups

  • Experiments cover four benchmarks, six attack families, two LoRA-adapted MLLM backbones, and matched filtering and purification protocols.The benchmarks are ScienceQA, COCO, Flickr30k, and IconQA; attacks include visual, textual, and coordinated dual-trigger types.Source: §5.1 · p. 6

5.2 Overall Defense Performance

  • EVO-Detect achieves the lowest ASR on visual and dual-trigger ScienceQA settings and the best ASR–CP trade-off on textual attacks, where SentiNet’s lower ASR costs 55.6–70.0% CP.On InternVL2.5, dual-trigger ASR is 9.2% while CP remains above 87%.Source: §5.2 · pp. 6–7, Table 1 · p. 7

5.3 Robustness and Practicality

  • Extending the decoding horizon to K=12 reduces delayed dual-trigger ASR and raises F1, with gains depending on delay length.For five-token delay, ASR falls from 36.7% to 13.3% and F1 rises from 61.5% to 74.2%; for seven-token delay, ASR falls from 43.3% to 3.3% and F1 rises from 44.0% to 71.9%.Source: §5.3 · p. 7
  • Reference-pool F1 remains within 83.6–92.3% across tested pool sizes, while 10% contamination causes substantial deterioration mainly in harder Blended and dual-trigger settings.Full auditing takes 3.96–4.16 seconds per sample, roughly twice BYE/TCAP latency, with comparable memory use and no online request-time overhead.Source: §5.3 · p. 7

5.4 Sample-Level Detection Performance

  • On ScienceQA, EVO-Detect achieves the best F1 in nearly all attack settings across both backbones, with especially strong gains on textual attacks.On Qwen3-VL, F1 is 87.3% for Text Prefix and 77.2% for HiddenKiller, versus BYE’s 42.0%/35.9% and TCAP’s 81.0%/4.2%. The COCO score distributions also separate clean from poisoned samples while single-modality negative cases resemble clean data.Source: Figure 5 · p. 6, §5.4 · pp. 7–8

5.5 Ablation Study

  • The decoding-horizon study finds K=5 achieves the best trade-off, while K=1 misses trajectory deviations and K=7 offers only marginal dual-trigger gains.At K=5, visual-attack F1 peaks at 96.6%; pushing the horizon too far can accumulate benign generation noise and dilute the initial trigger signal.Source: §5.5 · p. 8, Table 3 · p. 8
  • Ablations show that dynamic Attention Flow and Logits Flow complement each other, while reference normalization raises average F1 from 68.2% to 88.9%.Without normalization, dual-trigger F1 drops from 83.3% to 54.6%.Source: §5.5 · p. 8, Table 4 · p. 8

6 Conclusion

EVO-Detect shifts MLLM backdoor defense from static snapshots to decoding evolution, using normalized dual-flow signals and outperforming prior attention-based baselines across diverse multimodal threats.

  • EVO-Detect jointly monitors internal Attention Flow and interventional Logits Flow to expose persistent backdoor hijacking mechanisms.Source: §6 · p. 8
  • Control-Aware Reference Normalization anchors diagnostic signals against benign references to suppress false alarms.Source: §6 · p. 8
  • The modality-agnostic approach substantially outperforms previous attention-based baselines across diverse multimodal threats.Source: §6 · p. 8
Loading 2610.20319v1…