Poisoning the Search Space in Neural Architecture Search

Robert Wu, Nayan Saxena, Rohan Jain

TL;DR

While traditional adversarial poisoning attacks manipulate training data, this paper introduces Search Space Poisoning (SSP)—a data-agnostic attack that injects ineffective operations directly into the candidate pool of Neural Architecture Search (NAS). By exploiting the weight-sharing mechanism of Efficient NAS (ENAS), the authors show that adversarial search spaces can degrade child network accuracy dramatically, driving classification error on CIFAR-10 from ~25% up to ~82%.

What Problem Does This Paper Address?

Neural Architecture Search (NAS) automates the engineering of neural networks by discovering top-performing topologies from a predefined space of operations (e.g., convolutions, pooling). However, the human design of this search space represents an unexamined security vulnerability.

Existing poisoning attacks focus heavily on contaminating training sets (e.g., injecting mislabeled points), which requires direct access to data and knowledge of the underlying task. This paper investigates whether an adversary can instead manipulate the search space itself—without touching or even seeing the training data—to trick the search algorithm into producing broken or severely degraded architectures.

Methods

The authors target Efficient NAS (ENAS) under a macro-search setting, where an LSTM controller autoregressively samples directed acyclic sub-graphs (DAGs) representing child models while sharing weights across iterations.

To break this process, the authors introduce:

  1. Search Space Poisoning (SSP): Candidate operations are augmented such that $\mathcal{S} := \hat{\mathcal{S}} \cup \mathcal{P}$, where $\hat{\mathcal{S}}$ is the original operation set and $\mathcal{P}$ contains deliberately ineffective operations:
  2. Identity Operations ($\mathcal{P}_1$): Pure pass-through operations (not skip connections) that consume computational capacity without transforming features.
  3. Transposed Convolutions ($\mathcal{P}_2$): $3\times3$ and $5\times5$ transposed convolutions that act as approximate inverses to the forward convolutions in $\hat{\mathcal{S}}$, neutralizing feature extraction.
  4. Severe Dropout Layers ($\mathcal{P}_3$): Dropout layers with an extreme dropout rate ($p = 0.9$), causing massive information loss.
  5. Grouped Operations ($\mathcal{P}_4$): A combination of all three ($\mathcal{P}_1 \cup \mathcal{P}_2 \cup \mathcal{P}_3$).
  6. Multiple-Instance Poisoning Attacks: Because an RL controller might eventually learn to avoid a single bad operation, the authors duplicate poisoned operations using an instance factor $q \in \mathbb{N}^{>0}$. This skews the sampling distribution so that the controller is statistically compelled to draw bad operations more frequently: $$\Pr[o_{\mathcal{P}}] = \frac{q}{|\hat{\mathcal{S}}| + q|\mathcal{P}|} > \Pr[o_{\hat{\mathcal{S}}}] = \frac{1}{|\hat{\mathcal{S}}| + q|\mathcal{P}|}$$

Datasets

  • CIFAR-10: Used for training and evaluating ENAS over 300 epochs per experiment. No new datasets were introduced.

Key Insights and Ideas

  • Exploiting Weight Sharing: Computationally efficient NAS algorithms like ENAS share weights across all child models to avoid training each candidate from scratch. However, when poor operations are repeatedly interleaved with normal operations, the shared parameter updates corrupt the shared weights. The controller fails to disentangle the performance of good vs. bad operations.
  • Diversity Beats Raw Volume: Grouping different types of ineffective operations ($\mathcal{P}_4$) achieves poisoning saturation much faster than heavily multiplying a single bad operation. Mixing identity, transposed convolutions, and dropout degraded performance at much lower duplication factors.
  • Catastrophic Information Bottlenecks: High-probability dropout ($p = 0.9$) proved to be the most damaging individual operation, as it fundamentally starves child networks of forward signal and gradient flow during the search phase.

Key Results

All evaluations were conducted across 300 search epochs on CIFAR-10:

  • Baseline: Clean ENAS achieved a validation error of 19.53% and a test error of 25.33%.
  • Identity Poisoning ($\mathcal{P}_1$): A single identity instance ($q=6$) increased test error marginally to 27.28%, but scaling up to $q=300$ caused test error to soar to 69.19% (validation error 72.60%).
  • Transposed Convolutions ($\mathcal{P}_2$): At an instance factor of 50 ($q=50$), test error rose to 65.41% (validation error 68.63%).
  • High Dropout ($\mathcal{P}_3$): The most devastating single-operation attack; at $q=300$, test error escalated to 82.07% (validation error 83.69%).
  • Grouped Operations ($\mathcal{P}_4$): Saturated quickly; with only $q=20$, test error hit 65.55%, matching the damage of 300 identity operations.

Limitations and Future Work

  • Scope of Evaluation: Experiments were limited to CIFAR-10 and specifically targeted ENAS under a macro search strategy; the paper does not test micro (cell-based) search or other NAS paradigms (such as DARTS or evolutionary algorithms without weight sharing).
  • Defenses Not Evaluated: The work focuses entirely on the attack vector and demonstrates the vulnerability without proposing explicit detection or defense mechanisms.
  • Future Directions: The authors emphasize the need for research into robust controller designs and search space validation methods that can prevent parameter corruption under contaminated search spaces.

Summary updated

BibTeX
@inproceedings{wu2021poisoning,
  author = {Robert Wu and Nayan Saxena and Rohan Jain},
  title = {{Poisoning the Search Space in Neural Architecture Search}},
  booktitle = {AML @ ICML},
  year = {2021},
  url = {https://openreview.net/forum?id=fB3z4GrHCYv},
}
Figure