Attacking Data Transforming Learners at Training Time

Scott Alfeld, Ara Vartanian, Lucas Newman-Johnson, Benjamin I. P. Rubinstein

Abstract

This paper presents a modular framework for executing training-time poisoning attacks against machine learning models that employ data transformations. By leveraging matrix differential calculus, we demonstrate how an adversary can optimally perturb raw input data to influence a learner, even when individual perturbations propagate through multiple features and labels simultaneously. We specifically address the complexities of autoregressive modeling where data points are interconnected across the training set.

Introduction

Adversarial machine learning research often assumes that attackers can directly manipulate the final feature vectors and labels used for training. However, real-world data pipelines typically involve significant preprocessing transformations, such as normalization, polynomial expansion, or windowing for time-series forecasting. These transformations create a dependency structure where a single change in the raw input can affect multiple training instances.

We address the scenario where a defender (Bob) transforms raw data before training a model, and an attacker (Alice) seeks to find an optimal perturbation $\delta$ to the raw data to minimize the distance between Bob's learned model and Alice's target model. This is particularly challenging in autoregressive (AR) modeling, where a single value in a time series may serve as a feature in several windows and a target in another.

Methodology

The proposed framework utilizes Matrix Differential Calculus (MDC) to solve a bi-level optimization problem. Alice's goal is to minimize her loss function $L_A(\theta(\delta))$, where $\theta(\delta)$ represents the parameters Bob learns from the poisoned data.

Bi-level Optimization and the Chain Rule

To compute the gradient of her loss with respect to the perturbation, Alice employs the chain rule for matrices to decompose the problem into two distinct parts:

  1. The Learner Gradient: How the model parameters change with respect to the transformed data.
  2. The Transform Gradient: How the transformed data changes with respect to the raw input.

This modularity allows for "plug-and-play" application across different transformations. The paper provides mathematical derivations for three common cases: prepending bias terms, Vandermonde transforms for polynomial features, and Hankel transforms for converting time series into overlapping windows.

Experimental Evaluation

The framework was evaluated using synthetic stationary autoregressive models of degree $d=7$. Sequences of length $n=100$ were generated to simulate a week of daily data. This controlled environment allowed for precise measurement of how different attack budgets ($C$) and the distance to the target model ($r$) affected the attack's success.

Results and Discussion

The experiments reveal that the proposed attack is highly efficient. Even with a minimal perturbation budget, the attacker can significantly shift the learned model parameters toward the target.

Attacker loss across varying budgets (C) and target distances (r).

As shown in the table above, increasing the attack budget $C$ consistently reduces the attacker's loss, indicating a well-behaved loss landscape for these regression tasks. Conversely, as the target model distance $r$ increases, the loss grows at a faster rate, suggesting that more distant targets are significantly harder to reach.

A key insight is the multiplicative effect of poisoning in time-series data. Because transformations like the Hankel transform map a single raw value to multiple positions in the training matrix, Alice can manipulate both features and targets simultaneously and optimally, which is far more effective than traditional methods that treat them as independent.

Conclusion and Future Work

This work provides a unified language for training-time attacks on data-transforming learners. While highly effective in white-box settings using Ordinary Least Squares (OLS), future research should explore black-box scenarios where the transformation is unknown, and extend the framework to more complex learners like Deep Neural Networks. Additionally, moving beyond $\ell_2$ norms to domain-specific budget constraints remains a critical area for practical application.

Summary updated

BibTeX
@inproceedings{alfeld2019attacking,
  author = {Scott Alfeld and Ara Vartanian and Lucas Newman-Johnson and Benjamin I. P. Rubinstein},
  title = {{Attacking Data Transforming Learners at Training Time}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.1609/aaai.v33i01.33013167},
}
Figure