TOGA: Trigger Optimization for Clean Data Ordering Backdoor Attack

Qixuan Jin, Walter Gerych, Abinitha Gourabathina, Vinith Menon Suriyakumar, Marzyeh GhassemiOpenReview 2026 · Submission to ICLR 2026 · Rejected

TL;DR

TOGA (Trigger Optimization for Gradient Alignment) is a new framework that creates powerful backdoors in neural networks without ever modifying a single pixel or label in the training set. By mathematically optimizing a trigger to align with the "natural" gradients of clean data, attackers can induce malicious behavior simply by reordering how the training batches are presented to the model.

What Problem Does This Paper Address?

Most backdoor attacks rely on data poisoning: an attacker injects "poisoned" samples (e.g., an image of a cat with a small white square in the corner, labeled as "dog") into the training set. This is effective but risky; modern ML pipelines often use integrity checks and anomaly detection to spot modified inputs or suspicious labels.

An emerging, much stealthier alternative is the data ordering attack. Here, the training data remains 100% clean. The attacker only manipulates the sequence in which the model sees the data. By carefully ordering batches, they can make the model's gradient updates mimic those of an adversarial task—essentially "tricking" the model into learning a backdoor.

However, previous data ordering attacks used manually chosen triggers (like a "flag" pattern). These often failed because the gradients produced by these manual triggers didn't "align" well with the gradients reachable by clean data. The authors of TOGA set out to bridge this gap by treating trigger design as an optimization problem.

Methods

The TOGA framework operates in two main steps:

  1. Trigger Optimization: Instead of picking a random pattern, TOGA optimizes a universal perturbation ($\delta$) using a multi-part loss function:
  2. Match Loss ($L_{match}$): This is the "secret sauce." It explicitly minimizes the distance between the gradients of clean data and the gradients of the poisoned (triggered) data.
  3. Adversarial Loss ($L_{adv}$): Ensures the trigger actually causes the model to predict the target class.
  4. Penalty Loss ($L_{penalty}$): Prevents the trigger from simply turning into a "prototype" of the target class (which would make it less stealthy).
  5. Gradient Matching: Once the optimal trigger is found, the attacker reorders the clean training samples so that their collective gradient updates closely approximate the updates the model would have received from the adversarial (triggered) samples.

The paper also introduces a subpopulation-aware version. By adding a "separability loss," they can create triggers that only activate for specific groups (e.g., only for "unemployed" individuals in a credit-scoring dataset), making the attack even more surgical.

Datasets

The authors evaluated TOGA across five diverse datasets to prove its versatility:

  • Natural Images: CIFAR-10, CelebA, and ImageNet.
  • Healthcare: ISIC 2018 (skin lesion/melanoma classification).
  • Finance: UCI Credit-g (credit risk scoring).

These choices are significant because they move beyond toy examples into high-stakes domains where "clean data" requirements are strictly enforced.

Key Insights and Ideas

  • The "Reachable Space" Intuition: The paper's most compelling insight is visual (see Figure 1). Within a single training epoch, clean gradients can only move model parameters within a specific "reachable" blue zone. Manual triggers often fall outside this zone. TOGA's optimization specifically pulls the adversarial goal into the space that clean data can naturally reach.
  • Stealth through Integrity: Because the data is never modified, traditional defenses that look for "outlier" images or label noise are completely bypassed. The attack happens in the time domain, not the content domain.
  • Semantic Artifacts as Triggers: In the ISIC dataset, the authors showed that TOGA could exploit natural artifacts like "hair" or "ink markings" on skin as triggers. This suggests that models might be vulnerable to backdoors that look like naturally occurring noise.

Key Results

TOGA represents a massive leap in the effectiveness of data ordering attacks:

  • Performance Boost: It improved the Attack Success Rate (ASR) by an average of 46% over prior manual-trigger methods.
  • High Success, Low Impact: On the ISIC dermatology dataset, TOGA achieved a staggering 99.46% ASR while maintaining the model's original accuracy on clean data (less than 5% drop).
  • Blackbox Effectiveness: Even when the attacker didn't know the exact model architecture (using a "surrogate" model to optimize the trigger), the attack remained highly effective, reaching 80.2% ASR on the credit dataset.
  • Robustness: The attack survived common defenses like JPEG compression and advanced "purification" techniques (PureGen) that usually strip away adversarial perturbations.

Limitations and Future Work

The authors acknowledge a few hurdles for a real-world attacker:

  • Control Requirements: The attacker needs control over the data ordering, typically during the final epoch of training. While plausible in "training-as-a-service" or collaborative team environments, it's a high bar for an external actor.
  • Seed Knowledge: To perform this attack offline, an attacker might need to infer the random seed used by the data generator.
  • Defense Gap: Currently, there are few "order-aware" defenses. The authors suggest that future work should focus on detecting malicious sequences rather than just malicious samples.

This summary is based on the paper "TOGA: Trigger Optimization for Clean Data Ordering Backdoor Attack" under review for ICLR 2026.

Summary updated

BibTeX
@misc{jin2026toga,
  author = {Qixuan Jin and Walter Gerych and Abinitha Gourabathina and Vinith Menon Suriyakumar and Marzyeh Ghassemi},
  title = {{TOGA: Trigger Optimization for Clean Data Ordering Backdoor Attack}},
  year = {2026},
  url = {https://openreview.net/forum?id=NbyhwSvOgE},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2026},
}
Figure