Skip to content

Rethinking backdoor attacks against dataset distillation: a kernel method perspectiveRethinking Backdoor Attacks on Dataset Distillation: A Kernel Method Perspective

arXiv· arXiv:2311.16646· Ming-Yu Chung, Sheng-Yen Chou, Chia-Mu Yu, Pin-Yu Chen, Sy-Yen Kuo, Tsung-Yi HoNational Taiwan University; The Chinese University of Hong Kong; National Yang Ming Chiao Tung University; IBM ResearchIndexed by this site · 27 days ago· Originally publishedAttacks

Quick read

Attacks

Based on the paper PDF (AI-generated); refer to the original

The authors establish a theoretical framework for backdoor attacks based on the KIP kernel method and propose simple-trigger and relax-trigger, which the authors state can bypass all eight existing defenses.

Threat modelThe attacker first injects poisoned samples with a trigger into a benign dataset (mask m mixes trigger T with target label yT), then performs KIP dataset distillation on the poisoned dataset to obtain a distilled poisoned dataset; the victim trains a model on this distilled data. Attack goal: the model maintains CTA on the normal test set and has high ASR on the trigger test set. The paper does not describe the attacker's knowledge in white-box/black-box terms.

Questions
Dataset distillation can compress training data, but when poisoning is followed by distillation, the trigger may be diluted during distillation; the existing attack DOORPING lacks a theoretical basis for distillation robustness and relies on time-consuming bi-level optimization.
Methods
The authors take KIP (kernel-induced points) as the object, decompose the backdoor risk in an RKHS into conflict loss, projection loss, and generalization gap and give an upper bound, based on which two trigger generation methods are designed: simple-trigger and relax-trigger (single-level optimization).
Experiments and results
On CIFAR-10 and GTSRB, the 32×32 simple-trigger reaches ASR 100.00% after distillation (Table 1); relax-trigger reaches ASR 100.00% on CIFAR-10, higher than DOORPING's 80.00% (Table 2); the authors state that none of the eight defenses can effectively remove relax-trigger.
Limitations and future work
The paper does not specifically discuss limitations. The experiments cover only KIP among performance-matching distillation methods, the datasets are CIFAR-10, GTSRB, and a ten-class subset of ImageNet, there are eight defenses, and each attack is run 3 times independently; the paper does not report the time cost of trigger generation.
Experimental setupNTK、ResNet et al. · CIFAR-10、GTSRB et al. · CTA、ASR
Evaluated models
NTKResNet3-layers MLP3-layers ConvNet
Benchmarks
CIFAR-10GTSRBImageNet
Metrics
CTAASR
AI summaryIn the paper, the researchers analyze the relationship between dataset distillation and backdoor attacks from a kernel method theoretical perspective and propose two new theory-driven trigger generation methods, forming an optimization-based trigger design framework. Through a series of analyses and experiments, the authors claim that the framework can carry out effective backdoor attacks against dataset distillation, and that datasets poisoned by its triggers can resist conventional backdoor attack detection and mitigation methods. Prior research showed that dataset distillation can offset backdoor risks in original training samples; this work provides a theoretical analysis of this scenario from the attack side.

In the paper, the researchers analyze the relationship between dataset distillation and backdoor attacks from a kernel method theoretical perspective and propose two new theory-driven trigger generation methods, forming an optimization-based trigger design framework. Through a series of analyses and experiments, the authors claim that the framework can carry out effective backdoor attacks against dataset distillation, and that datasets poisoned by its triggers can resist conventional backdoor attack detection and mitigation methods. Prior research showed that dataset distillation can offset backdoor risks in original training samples; this work provides a theoretical analysis of this scenario from the attack side.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    How to establish a theoretical basis for backdoor attacks targeting dataset distillation and design triggers that remain effective after distillation.

    Core question: Backdoor attacks against dataset distillation lack a theoretical basis; the distillation robustness of existing attacks cannot be explained, and trigger generation is costly.

    • Problem setting: Dataset distillation compresses a large dataset into a small synthetic dataset, and a model trained on the distilled data performs only slightly worse than on the original data. The authors point out that a straightforward stealthy attack is to first poison a benign dataset and then distill; distilled samples have no obvious correspondence to original samples, making triggers hard to detect by visual inspection; however, if the trigger is poorly designed, it will be diluted during distillation, causing the attack to fail.
    • Shortcomings of existing methods: The authors state that DOORPING (Liu et al., 2023c) can achieve a distillation-resistant backdoor but has two weaknesses: first, it lacks a theoretical basis for distillation robustness, and it is unclear whether the backdoor can survive or is optimal; second, it relies on bi-level optimization, making trigger generation time-consuming.
    • Core observation of the paper: The authors find that their KIP-based backdoor attack does not exhibit the trade-off between CTA and trigger size claimed by Liu et al. (2023c), which motivates them to build a theoretical framework explaining which backdoors can survive distillation.
    • Contributions of the paper: The authors claim to establish a theoretical framework characterizing the relationship between backdoors and dataset distillation (three parts: conflict loss, projection loss, and generalization gap), and propose two theory-driven trigger generation methods, simple-trigger and relax-trigger; relax-trigger uses only ordinary (single-level) optimization.
    • Threat model:
      • Attacker goal: Make the model trained on distilled data have low risk on the normal distribution DA (preserving CTA) while also having low risk on the malicious distribution DB (high ASR).
      • Attacker capability: Inject trigger samples DB constructed per Eq. (7) into the benign dataset DA (mask m mixes trigger T with target label yT, NB ≪ NA), then perform KIP distillation on the poisoned dataset D̃.
      • Victim system: Downstream users who train models on the distilled poisoned dataset; defense evaluations use the default ResNet retraining of backdoor-toolbox.
      • Knowledge assumption: The paper does not state the attacker's knowledge of the victim in terms such as white-box/black-box.
  2. What related research exists?

    Related work falls into three categories: dataset distillation, backdoor attacks, and backdoor defenses; the baseline directly compared in this paper is DOORPING.

    Dataset distillation

    • Wang et al. (2018) proposed dataset distillation, and Zhao et al. (2021) proposed dataset condensation; the goal is to compress a large dataset into a small synthetic dataset that preserves utility.
    • According to the classification of Yu et al. (2023), distillation methods fall into three categories: performance-matching, parameter-preserving, and distribution-preserving; Wang et al. (2018), Nguyen et al. (2021), Loo et al. (2022; 2023), and Zhou et al. (2022) belong to performance-matching. This paper studies only performance-matching, specifically using KIP (kernel inducing points) from Nguyen et al. (2021).

    Backdoor attacks

    • Data-poisoning backdoor attacks: Gu et al. (2019) (BadNets), Chen et al. (2017), Liu et al. (2018b), Turner et al. (2019), Barni et al. (2019), Nguyen & Tran (2020; 2021), Liu et al. (2020), Souri et al. (2022), etc.; the paper only lists them.
    • Liu et al. (2023c) proposed DOORPING, a backdoor attack targeting dataset distillation; the paper points out two shortcomings: it lacks a theoretical basis for distillation robustness; and it relies on bi-level optimization, making trigger generation time-consuming. DOORPING generates the trigger during the sample compression process, whereas relax-trigger is derived from a single-level optimization problem (Eq. 21).
    • The Naive attack of Liu et al. (2023c) is the same as this paper's simplest KIP-based attack form, except that it uses a distillation method other than KIP; its experiments show that as the trigger grows, ASR rises but CTA drops markedly, and the authors state that their KIP-based attack does not have this trade-off.

    Backdoor defenses

    • The paper evaluates eight defenses: SCAn (Tang et al., 2021), AC (Chen et al., 2018), SS (Tran et al., 2018), Strip (adapted as a poison cleaner, Gao et al., 2019), ABL (Li et al., 2021a), NAD (Li et al., 2021b), STRIP (backdoor input filter, Gao et al., 2019), FP (Liu et al., 2018a); implementations are taken from backdoor-toolbox.

    Baselines and benchmarks: The attack baseline is DOORPING (Liu et al., 2023c); the datasets are CIFAR-10 and GTSRB, with an additional ten-class subset of ImageNet in the appendix.

    Authors' positioning: The authors state that this paper is the first theoretical framework characterizing backdoor effects in dataset distillation, and from it they derive a single-level optimization attack whose design approach differs from DOORPING.

  3. How does the paper address this problem?

    In an RKHS, decompose the risk of the KIP-distilled backdoor into three terms and give an upper bound, based on which two triggers, simple-trigger and relax-trigger, are designed.

    Overall approach: Represented by KIP, the model is restricted to a reproducing kernel Hilbert space (RKHS) so that the inner optimization of distillation has a closed-form solution, thereby decomposing the backdoor risk into three parts—conflict loss, projection loss, and generalization gap—and giving upper bounds for each; from the theory, two trigger generation methods, simple-trigger and relax-trigger, are derived.

    Problem setting and formalization

    • Distillation is written as a bi-level optimization: S∗ = argminS 1/Nℓ(fS, T), where fS = argminf∈ H 1/NSℓ(f, S) + λ|f|H2 (Eq. 2); in an RKHS with squared loss the inner level has a closed-form solution (Eq. 5), and the bi-level problem degenerates to a single level (Eq. 6), i.e., KIP.
    • The poisoned dataset D̃ = DA ∪ DB, where DB is constructed according to Eq. (7): xb = (1 − m) ⊙ xa + m ⊙ T, with label yT; the KIP-based attack solves Eq. (8) on D̃ to obtain the distilled poisoned dataset S ∗.
    • The kernel is the NTK (neural tangent kernel) induced by a three-layer neural network.

    Theoretical framework: three-term decomposition of risk

    • The empirical risk is decomposed into projection loss and conflict loss (Eq. 10), plus a generalization gap (Eq. 9). Conflict loss measures the information conflict between DA and DB, and projection loss measures the information loss from compressing fD̃ into the space spanned by the synthetic dataset.
    • Theorem 1 gives an upper bound on conflict loss (Eq. 13), but the authors actually compute it directly with Eq. 12, on the grounds that the computation is more accurate at similar cost.
    • Theorem 2 gives an upper bound on projection loss (Eq. 16), using the projection decomposition of Lemma 1.
    • Theorem 3 gives an upper bound on the generalization gap (Eq. 17), characterized by R̂D (G) and ΓD; under common assumptions only ΓD is considered. The authors state that this explains why ASR rises as the trigger grows: as the trigger grows, ΓDB decreases monotonically and the generalization gap becomes smaller.

    simple-trigger

    • Uses only the generalization gap term: given an m × n image, it generates a trigger of the same size as the image (m × n), with the default pattern being all white.
    • The authors state that the generalization gap is independent of the trigger pattern, so no restriction is placed on the pattern.

    relax-trigger

    • Simultaneously lowers all three terms: DB is treated as a function of the trigger T, and conflict loss (Eq. 18) and the projection loss upper bound (Eq. 19) are optimized directly; a low ΓDB is achieved by enlarging the trigger.
    • Eq. (19) is originally a bi-level optimization; the authors replace the minimization over S with the distilled dataset SA of DA, reducing it to a single-level problem (Eq. 20) that can be solved directly with Adam; the intent is to make the poisoned D̃ compress into the neighborhood of SA, so that CTA is close to clean distillation.
    • Final objective (Eq. 21): argminT {∑(xi,yi)∈D̃∑j=1c (|αi,j|2)/(NA+NB)|k(XAB,xi) − k(XAB,XSA)k(XSA,XSA)−1k(XSA,xi)|22 + ρ|YAB − k(XAB,XAB)[k(XAB,XAB)+(NA+NB)λ I]−1YAB|22}, where ρ > 0 is a penalty parameter; the meaning is to jointly minimize the projection loss upper bound and the conflict loss.
    • Difference from DOORPING: DOORPING generates the trigger during the sample compression process (bi-level optimization), whereas relax-trigger is a single-level optimization; the authors state that DOORPING seeks a globally optimal trigger at high time cost, whereas relax-trigger seeks to reliably compress D̃ into the neighborhood of SA while saving time.

    Algorithm and evaluation method

    • Procedure (Appendix Algorithms 1, 2): first construct DB; for relax-trigger, first run KIP on DA to obtain SA, then iteratively update T by the gradient of Eq. (21); distillation uses Adam with learning rate 0.01, batch size 10 × number of classes, and KIP is trained for 1000 steps.
    • Metrics: CTA is the accuracy of a model trained on the distilled data on the clean test set; ASR is the accuracy on the trigger test set. Each attack is run independently 3 times.
  4. What experiments did the paper conduct?

    CTA/ASR for two triggers measured on CIFAR-10/GTSRB, robustness against eight defenses; the appendix additionally has ImageNet, IPC, cross-model, transfer, and NAS/CL ablations.

    Experimental setup

    • Datasets: CIFAR-10 (10 classes, 50000 train/10000 test, 32×32); GTSRB (43 classes, 26640 train/12630 test, resized to 32×32); Appendix B.1 uses 10 random subclasses of ImageNet, resized to 128×128.
    • Distillation and models: KIP (Nguyen et al., 2021), with the kernel being the NTK induced by a three-layer neural network; Adam, learning rate 0.01, batch size = 10 × number of classes, KIP trained for 1000 steps. Defense evaluation retrains a ResNet on the distilled data with backdoor-toolbox default settings.
    • Distilled data scale: NS = 10 × number of classes and 50 × number of classes (100/500 for CIFAR-10, 430/2150 for GTSRB).
    • Trigger settings: simple-trigger is a 2×2, 4×4, 8×8, 16×16, 32×32 white square (mask m components set to 1); relax-trigger sets m components to 0.3 (the authors state this is equivalent to increasing trigger transparency).
    • Baseline and defenses: attack baseline DOORPING; eight defenses SCAn, AC, SS, Strip, ABL, NAD, STRIP, FP, with implementations taken from backdoor-toolbox.
    • Metrics and number of repetitions: CTA, ASR; each KIP-based attack is run independently 3 times, reporting mean and standard deviation.

    Main results

    Table 2 (relax-trigger, mask 0.3, KIP distillation; simple-trigger is a 32×32 white square):

    Swipe horizontally to read the table

    Dataset (scale)simple-trigger CTA/ASR (%)relax-trigger CTA/ASR (%)DOORPING CTA/ASR (%)
    CIFAR-10 (100)41.40 / 75.9241.66 / 100.0036.35 / 80.00
    CIFAR-10 (500)42.98 / 75.7943.64 / 100.00not reported
    GTSRB (430)67.02 / 62.7468.73 / 95.2668.03 / 90.00
    GTSRB (2150)70.28 / 62.6571.54 / 95.08not reported
    • The authors state that relax-trigger raises ASR on CIFAR-10 by about 24% over simple-trigger without lowering CTA; on GTSRB it raises ASR by about 30% with a slight increase in CTA; both CTA and ASR are higher than DOORPING (for the rows reported in the table above).
    • Table 1 (simple-trigger, KIP distillation): CTA and ASR rise as the trigger grows, which the authors state is consistent with Theorem 3; at 32×32, ASR is 100.00% in all four settings, and CTA is essentially on par with no trigger (None) (e.g., CIFAR-10 (100): None 42.55, 32×32 41.70).
    • DOORPING's ASR has a large standard deviation (e.g., CIFAR-10 (100) is 80.00 (40.00)); the paper does not explain why.

    Evaluation against eight defenses

    • simple-trigger (Table 3, CIFAR-10 size 100, ResNet retraining): with the 32×32 trigger, NAD's ASR is still 100.00%, and the authors state that NAD fails to remove the backdoor; although the other defenses lower ASR (e.g., SCAn 66.67, Strip 0.00), CTA drops from 28.95 for None to 22.21–28.28, which the authors state is a drop of more than 7%, judging these defenses ineffective.
    • simple-trigger at other scales (Tables 5–7, Appendix A.8): at CIFAR-10 size 500, SCAn's ASR is still 100.00%; the authors state that SS, Strip, ABL, STRIP, and FP markedly harm CTA, with similar conclusions on GTSRB, and they consider that defenses may be more effective when the distilled dataset is larger.
    • relax-trigger (Table 8, Appendix A.8): the authors state that none of the eight defenses can effectively remove the backdoor. At CIFAR-10 size 100, SCAn, AC, Strip, and ABL do not lower ASR (None 42.10, SCAn 55.63, ABL 73.30); NAD's ASR is 21.67, which the authors state is still about 50% of None. At GTSRB size 2150, SCAn's ASR is 70.51 (None 65.28) and FP is 68.73; the authors state that SCAn, ABL, and FP even raise ASR.

    Appendix ablations

    • ImageNet (Table 9): 10 subclasses, 128×128; simple-trigger and relax-trigger both have ASR 100.00% at IPC 10 and 50, with CTA 15.00–17.00.
    • Effect of IPC (Tables 10, 11): as IPC goes from 10 to 50, CTA and ASR gradually rise; relax-trigger has ASR 100 at all IPC values on CIFAR-10 and about 94.85–95.84 at all IPC values on GTSRB; DOORPING has ASR 100.00 at GTSRB IPC 30 and 90.00 at IPC 10.
    • Cross-model (Table 12): distilled data are used to train a 3-layer MLP and a 3-layer ConvNet; CTA and ASR rise as IPC increases, and the authors state that the cross-model problem may be alleviated when IPC is sufficiently large (e.g., relax-trigger IPC 50: CTA 93.13, ASR 82.80 on CNN).
    • Transferability (Tables 13, 14): with FRePo and DM distilling the poisoned data, the trigger remains effective (e.g., simple-trigger + FRePo, CIFAR-10 IPC 10: CTA 60.32, ASR 83.10; DM + MLP ASR 76.04–77.03 across settings).
    • NAS and CL (Tables 15, 16): under NAS, simple-trigger ASR 100.00 and relax-trigger 86.23; under CL, simple-trigger ASR 100.00 and relax-trigger 60.94 (baseline 43.11).
    • Direct training without distillation (Table 17): on a 3-layer ConvNet, simple-trigger (m=1) ASR 100.00 and relax-trigger (m=0.3) ASR 99.80/99.82 (CIFAR-10/GTSRB).
  5. What are some points that can be further explored?

    The paper does not specifically discuss limitations; the experiments cover KIP distillation, two main datasets, eight defenses, and several appendix ablations.

    Limitations and future directions noted by the authors

    • The paper does not specifically discuss limitations; there is no Limitations or Future Work section.
    • In the Conclusion, the authors call for better defenses against such attacks ("calls for better defenses").
    • Section 2 of the main text states that this paper studies only performance-matching dataset distillation, using KIP as an example; the paper explicitly does not discuss the construction or selection of the kernel.

    Scope of experimental coverage

    • Distillation methods: the main-text experiments use only KIP (performance-matching); Appendix B.4 additionally uses FRePo and DM for transferability experiments.
    • Datasets: CIFAR-10, GTSRB; ImageNet only as 10 random subclasses resized to 128×128 (Appendix B.1).
    • Defense evaluation: eight in total—SCAn, AC, SS, Strip, ABL, NAD, STRIP, FP—with implementations taken from backdoor-toolbox, and the retrained model being that tool's default ResNet.
    • Each KIP-based attack is run independently 3 times, reporting mean and standard deviation; the paper does not report the specific time cost or number of iterations for relax-trigger's trigger generation (the STEP value is not given).
    • The only attack baseline compared is DOORPING, and in Table 2 DOORPING has only two rows: CIFAR-10 (100) and GTSRB (430).
  6. Summarize the main content of the paper

    A theoretical framework for backdoor attacks based on the KIP kernel method and two triggers, which the authors state can bypass all eight tested defenses.

    A backdoor attack paper targeting dataset distillation (ICLR 2024), whose core is to ground the attack in kernel method theory.

    • Problem: In backdoor attacks that first poison and then distill, the trigger may be diluted during distillation; the existing attack DOORPING lacks a theoretical explanation of distillation robustness and relies on time-consuming bi-level optimization.
    • Method: Represented by KIP, it uses closed-form solutions in an RKHS to decompose the backdoor risk into conflict loss, projection loss, and generalization gap and gives upper bounds (Theorem 1–3); based on this, it proposes simple-trigger (an all-white trigger of the same size as the image, exploiting that the generalization gap shrinks as the trigger grows) and relax-trigger (mask 0.3, replacing the inner optimization with SA and then optimizing the trigger in a single level according to Eq. 21).
    • Main results:
      • simple-trigger 32×32 achieves ASR 100.00% after KIP distillation at both scales on CIFAR-10 and GTSRB, with CTA essentially on par with no trigger (Table 1).
      • relax-trigger achieves ASR 100.00% on CIFAR-10 (100/500) and 95.26%/95.08% on GTSRB, both higher than the reported DOORPING rows (Table 2).
      • Defense evaluation (ResNet retraining): simple-trigger 32×32 under CIFAR-10 size 100 still has ASR 100.00% for NAD (Table 3); the authors state that relax-trigger defeats all eight defenses, with some defenses even raising ASR (Table 8).
      • Appendix: ASR 100.00% on a ten-class subset of ImageNet (Table 9); the trigger transfers to FRePo and DM distillation (Tables 13, 14).
    • Authors' conclusion: The authors state that the framework explains which backdoors can survive distillation, that relax-trigger reveals a new risk of dataset distillation backdoors, and they call for better defenses.

Related papers

Show 3 more papers
Read originalarxiv.org